Tuesday, August 25, 2015

How to find out the vio server details from vio client on AIX 5.3?

How to find out the vio server details from vio client on AIX 5.3?


Using kdb, we can easily trace the vscsi configuration in aix. This command will save much time when we compare with the old method to do the same.

#echo "cvai" | kdb | grep vscsi

read vscsi_scsi_ptrs OK, ptr = 0x59A03C0

vscsi0 0x000007 0x0000000000 0x0 vios1->vhost8

vscsi1 0x000007 0x0000000000 0x0 vios2->vhost8


Most of us think that we cannot execute the above command to fetch the vio server information on AIX 5.3, thats wrong. Still we can use kdb command to get the information.

1. Simply executing the kdb command on the aix prompt

# kdb
You will receive a prompt like this:
0> 


2. Load the cvscsi autoload function (note: this function is already loaded by default on AIX 6.1 systems.)

0> cvscsi

read vscsi_scsi_ptrs OK, ptr = 0x59A03C0

Autoload function /usr/lib/ras/autoload/cvscsi64.kdb was
successfully executed


3. Then we can check the vscsi adapter details, using the cvai function:

0)> cvai

If you want only for a particular vscsi, we can use - cvai vscsix

Below will be the o/p:

unit_id: 0x30000001 partition_num: 0x1 partition_name: lparname

capability_level: 0x0 location_code: priv_cap: 0x1 host_capability: 0x0
host_name: vhostx
host_location:heart_beat_enabled: 0x1 sample_time: 0x1F Ping_response_time: 0x2D, Host part_number: 0x2 : 
OS_type: 0x3 
host part_name: VIO NAME
..........


Using the above output we can find out the 'host_part_name' for the hostname of the VIO server serving this adapter and host_name for the associated vhost adapter.