Linux Scroll

Just another WordPress.com site

fcinfo – Display information on HBA ports

fcinfo – Fibre Channel HBA Port Command Line Interface

# fcinfo hba-port

HBA Port WWN: 2200201b321c1643
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3355-02
Firmware Version: 4.2.2
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 2200201b321c1643

HBA Port WWN: 2204204e621d1683
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
Model: 375-3355-02
Firmware Version: 4.2.2
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;
Type: N-port
State: offline
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: not established
Node WWN: 2204204e621d1683

The following command lists information for  the  HBA  ports and the link statistics for those ports:

# fcinfo hba-port -l 210000e08b074cb5 210100e08b274cb5 

       HBA Port WWN: 210000e08b074cb5
              OS Device Name: /dev/cfg/c1
              Manufacturer: QLogic Corp.
              Model: 375-3108-xx
              Firmware Version: 3.3.116
              FCode/BIOS Version: 1.13.08
              Type: N-port
              State: online
              Supported Speeds: 1Gb 2Gb
              Current Speed: 2Gb
              Node WWN: 200000e08b074cb5
              Link Error Statistics:
                       Link Failure Count: 0
                      Loss of Sync Count: 0
                      Loss of Signal Count: 0
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0
       HBA Port WWN: 210100e08b274cb5
              OS Device Name: /dev/cfg/c2
              Manufacturer: QLogic Corp.
              Model: 375-3108-xx
              Firmware Version: 3.3.116
              FCode/BIOS Version: 1.13.08
              Type: N-port
              State: online
              Supported Speeds: 1Gb 2Gb
              Current Speed: 2Gb
              Node WWN: 200100e08b274cb5
              Link Error Statistics:
                      Link Failure Count: 0
                      Loss of Sync Count: 0
                      Loss of Signal Count: 0
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0

-l, --linkstat
         Lists the link error statistics information for the port
         referenced    by    the    specified   HBA_port_WWN   or
         REMOTE_port_WWN.

Only show HBA Port WWN (WWpN)and Node WWN (WWnN)

# fcinfo hba-port | grep WWN

The following command lists all remote ports that are visible through the given HBA port:

# fcinfo remote-port -p 210100e08b274cb5

       Remote Port WWN: 50020f230000b4af
              Active FC4 Types: SCSI
              SCSI Target: yes
              Node WWN: 50020f200000b4af

       Remote Port WWN: 210000e08b07daa6
              Active FC4 Types: SCSI
              SCSI Target: no
              Node WWN: 200000e08b07daa6

       Remote Port WWN: 20030003ba27c788
              Active FC4 Types: SCSI
              SCSI Target: yes
              Node WWN: 10000003ba27c788

       Remote Port WWN: 210000e08b096a60
              Active FC4 Types: SCSI,IP
              SCSI Target: no
              Node WWN: 200000e08b096a60

-p HBA_port_WWN, --port HBA_port_WWN

The following command lists information for the remote ports
and the link statistics for those ports:

# fcinfo remote-port -l -p 210100e08b272ab5

       Remote Port WWN: 210100e08b296a60
              Active FC4 Types: SCSI,IP
              SCSI Target: no
              Node WWN: 200100e08b296a60
              Link Error Statistics:
                      Link Failure Count: 0
                      Loss of Sync Count: 0
                      Loss of Signal Count: 0
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0

       Remote Port WWN: 20030003ba27d56d
              Active FC4 Types: SCSI
              SCSI Target: yes
              Node WWN: 10000003ba27d56d
              Link Error Statistics:
                      Link Failure Count: 0
                      Loss of Sync Count: 4765165
                      Loss of Signal Count: 4765165
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0
-l, --linkstat
         Lists the link error statistics information for the port
         referenced    by    the    specified   HBA_port_WWN   or
         REMOTE_port_WWN.
-p HBA_port_WWN, --port HBA_port_WWN

The following command lists all remote ports as well as the link statistics and scsi-target information:

# fcinfo remote-port  -sl -p 210100e08b272ab5

       Remote Port WWN: 210100e08b296a60
              Active FC4 Types: SCSI,IP
              SCSI Target: no
              Node WWN: 200100e08b296a60
              Link Error Statistics:
                      Link Failure Count: 0
                      Loss of Sync Count: 0
                      Loss of Signal Count: 0
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0

       Remote Port WWN: 20030003ba27d56d
              Active FC4 Types: SCSI
              SCSI Target: yes
              Node WWN: 10000003ba27d56d
              Link Error Statistics:
                      Link Failure Count: 0
                      Loss of Sync Count: 4765165
                      Loss of Signal Count: 4765165
                      Primitive Seq Protocol Error Count: 0
                      Invalid Tx Word Count: 0
                      Invalid CRC Count: 0

              LUN: 0
                Vendor: SUN
                Product: T4
                OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd0s2
              LUN: 1
                Vendor: SUN
                Product: T4
                OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd1s2
-l, --linkstat
         Lists the link error statistics information for the port
         referenced    by    the    specified   HBA_port_WWN   or
         REMOTE_port_WWN.
-p HBA_port_WWN, --port HBA_port_WWN
-s, --scsi-target

The following command lists all remote ports as well as the
scsi-target information:

# fcinfo remote-port -s -p 210100e08b272ab5

       Remote Port WWN: 210100e08b296a60
              Active FC4 Types: SCSI,IP
              SCSI Target: no
              Node WWN: 200100e08b296a60
       Remote Port WWN: 20030003ba27d56d
              Active FC4 Types: SCSI
              SCSI Target: yes
              Node WWN: 10000003ba27d56d
              LUN: 0
                Vendor: SUN
                Product: T4
                OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd0s2
              LUN: 1
                Vendor: SUN
                Product: T4
                OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd1s2

-p HBA_port_WWN, --port HBA_port_WWN
-s, --scsi-target
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: