Many of us know that we can use kdb command to get the vio server & vhost information in aix 6.1 or later.
testserver:/root # echo “cvai” | kdb | grep vscsi
read vscsi_scsi_ptrs OK, ptr = 0x4640E10
vscsi0     0x000007 0x0000000000 0x0                testvio->vhost5
vscsi1     0x000007 0x0000000000 0x0                testvio2->vhost5
testserver:/root #
Likewise, Most of us think that we can not use kdb command to fetch the vio server & vhost information in AIX 5.3
Actaully, It is possible. Lets see how
Step 1: Login and get into root prompt
kdb
Step 2: Load the cvscsi autoload function (note: this function is already loaded by default on AIX 6.1 systems)
cvscsi
Step 3: Then we can check the vscsi adapter details, using the cvai function
cvai
The above output would be larger. Therefore, I request you to run as below
cvai |grep -E “partition_name|host_name|host part_name”
Example
labserver1:/ # kdb
The specified kernel file is a 64-bit kernel.
Preserving 1410708 bytes of symbol table
First symbol __mulh
           START              END <name>
0000000000001000 0000000003DF7050 start+000FD8
F00000002FF47600 F00000002FFDC940 __ublock+000000
000000002FF22FF4 000000002FF22FF8 environ+000000
000000002FF22FF8 000000002FF22FFC errno+000000
F100070F00000000 F100070F10000000 pvproc+000000
F100070F10000000 F100070F18000000 pvthread+000000
PFT:
PVT:
id………………..0002
raddr…..0000000000718000 eaddr…..F200800030000000
size…………..00080000 align………….00001000
valid..1 ros….0 fixlmb.1 seg….0 wimg…2
        ERROR: Unable to acess nfs_syms
(0)> cvscsi
Autoload function /usr/lib/ras/autoload/cvscsi64.kdb was successfully executed
(0)> cvai |grep -E “partition_name|host_name|host part_name”
unit_id: 0x30000027     partition_num: 0x16     partition_name: labserver1
priv_cap: 0x1  host_capability: 0x0  host_name: vhost7 host_location:
host part_number: 0x2   os_type: 0x3    host part_name: testvio3
unit_id: 0x3000003B     partition_num: 0x16     partition_name: labserver1
priv_cap: 0x1  host_capability: 0x0  host_name: vhost7 host_location:
host part_number: 0x3   os_type: 0x3    host part_name: testvio4
(0)> q
labserver1:/ #