Tuesday, July 2, 2013

AIX 5/L : Command to find VIO server details from VIO client,

Command to find VIO server details from VIO client. - AIX 5.3 servers :-

Most of us know, the command to find the vio server and vhost details of a particular client from the same client lpar itself. If not below is the link where you can get the details.


http://aixdeepdive.blogspot.com/2013/06/command-to-find-vhost-and-vio-server.html

But at the same time we must know that, command provided in the aboce link, works for AIX6.1 version onwards. But to find the similar details for the AIX 5.3 servers, the same KDB utility can be used. Below are the details.

FOR AIX 5.3 servers - To find VIO server details along with vhost info, from VIO client,

Here is the command :



echo "cvscsi\ncvai" | kdb | grep vscsi

 O/P will be : 

 (0)> cvscsi
read vscsi_scsi_ptrs OK, ptr = 0x40A73C8
Autoload function /usr/lib/ras/autoload/cvscsi64.kdb was successfully executed
vscsi0     0x000004 0x0000000001 0x0                VIO1->vhostx
vscsi1     0x000004 0x0000000000 0x0                VIO2->vhosty


If we go in to more details, below is the way the command works.

1. kdb utility can be invoked, just executing 'kdb' in the AIX command prompt.

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

2. Load the cvscsi autoload function - this function is already loaded by default on AIX 6.1 systems. Hence we will not load any "cvscsi" function for AIX 6.1 servers( please refer the link mentioned above in this post).

      0>  cvscsi

Below will be the o/p:

      read vscsi_scsi_ptrs OK, ptr = 0x3ABCD10
      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(your partition name)
      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
      ......








O/P will be more descriptive, so in the above o/p, we just grep for vscsi and so we will get only the required details.
       The required information is seen in the fields 'host_part_name' for the hostname of the VIO server serving this adapter and host_name for the associated vhost adapter.


No comments:

Post a Comment