Sunday, August 17, 2014

Using iblinkinfo to report link infomation for all links in the fabric

The command iblinkinfo is a useful command to give a good overview of link information for all links in the fabric

[root@node-h00 ~]# iblinkinfo
CA: node-c27 HCA-1:
      0xxxxxxxxxxxxxxx     24    1[  ] ==( 4X          10.0 Gbps Active/ ..... 
CA: node-c26 HCA-1:
      0xyyyyyyyyyyyyyyy    22    1[  ] ==( 4X          10.0 Gbps Active/ ..... 
CA: node-c25 HCA-1:
      0xzzzzzzzzzzzzzzz     29    1[  ] ==( 4X          10.0 Gbps Active/ .....
CA: node-c24 HCA-1:
      0xaaaaaaaaaaaaaaa     28    1[  ] ==( 4X          10.0 Gbps Active/ .....
CA: node-c25 HCA-1:
      0xsssssssssssssss     27    1[  ] ==( 4X          10.0 Gbps Active/ .....
...................
...................
...................

Step 2: Print all information on each node on one single line
[root@node-h00 ~]# iblinkinfo -l 

0xaaaaaaaaaaaaaaaa "          node-c26 HCA-1"     22    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   29[  ] "IBM HSSM" ( )
0xvvvvvvvvvvvvvvvv "          node-c25 HCA-1"     29    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   28[  ] "IBM HSSM" ( )
0xbbbbbbbbbbbbbbbb "          node-c24 HCA-1"     28    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   27[  ] "IBM HSSM" ( )
0xcccccccccccccccc "          node-c23 HCA-1"     27    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   26[  ] "IBM HSSM" ( )
0xdddddddddddddddd "          node-c20 HCA-1"     26    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   25[  ] "IBM HSSM" ( )
0xeeeeeeeeeeeeeeee "          node-c21 HCA-1"     23    1[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>  0xswitchfa     19   24[  ] "IBM HSSM" ( )

.....
.....
.....


Step 3: List Down Ports in the Fabric
[root@strawberry-h00 ~]# iblinkinfo -d

Switch: swswswswswswss IBM HSSM:
          19   16[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          19   19[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          19   23[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          19   31[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          19   32[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          19   33[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          19   34[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          19   35[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          19   36[  ] ==(                Down/Disabled)==>             [  ] "" ( )
Switch: swswswswswswswsw IBM HSSM:
          16   31[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          16   32[  ] ==(                Down/ Polling)==>             [  ] "" ( )
          16   33[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          16   34[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          16   35[  ] ==(                Down/Disabled)==>             [  ] "" ( )
          16   36[  ] ==(                Down/Disabled)==>             [  ] "" ( )


For all information:
  1. iblinkinfo(8) - Linux man page  

No comments: