Library Table of Contents Index Previous Next Comments

Managing the FCP SAN

Displaying information about FCP adapters

How to display HBA adapter information  Top

You can display information and manage HBA adapters in a variety of ways, depending on what you are trying to accomplish. For some commands, you can display additional information by using the -v flag, or you can specify which adapter to display information about by entering the adapter number (either the number of the slot it is installed in, or the slot and port number).

If you want to display...

Use this command...

The WWNN (node name) of the target HBA

fcp nodename

Configuration and status information about all adapters (including HBAs, NICs, and switch port information)

sysconfig [-v] [ adapter ]

adapter is a numerical value only, for example, 5.

-v displays additional information about all adapters.

Configuration information about disks, disk loops, and options that affect coredumps and takeover

sysconfig -c

Configuration information about target HBAs

fcp config

The node name, port name, and link state of target HBAs

fcp show adapter [ -p ] [-v][ 
adapter&portnumber] 

-p displays information about adapters running on behalf of the partner node (filer).

-v displays additional information about target adapters.

adapter&portnumber is the slot number with the port number, a or b; for example, 5a.

Adapter information, including firmware level, PCI bus width and clock speed, node name, cacheline size, FC packet size, link data rate, SRAM parity, and various states

storage show adapter

The port address, port name, node name, and initiator group name of initiator HBAs connected to target HBAs

fcp show initiator [-v] [adapter&portnumber]

-v displays the Fibre Channel host address of the initiator.

adapter&portnumber is the slot number with the port number, a or b; for example, 5a.

Statistics for target HBAs

fcp stats [-z] [adapter&portnumber]

-z zeros the statistics.

adapter&portnumber is the slot number with the port number, a or b; for example, 5a.

FCP traffic information

sysstat -f

How long FCP has been running

uptime

Service statistics

availtime

Displaying the HBA's WWNN  Top

To display the WWNN of a target HBA, complete the following step.

Step

Action

1

Enter the following command:

fcp nodename

Result

Fibre Channel nodename: 50:a9:80:00:02:00:8d:b2 (50a9800002008db2)

Displaying information about all adapters  Top

To display information about all adapters installed in the filer, complete the following step.

Step

Action

1

At the filer, enter the following command to see information about all adapters.

sysconfig -v

Result

System configuration information and adapter information for each slot that is used is displayed on the screen. Look for "Fibre Channel Target Host Adapter" to get information about target HBAs.

Example

A partial display of information about a target HBA installed in slot 4 appears as follows:

slot 4: Fibre Channel Target Host Adapter 4a
                (Dual-channel, QLogic 2312 (2342) rev. 2, 64-bit, <ONLINE>)
                Firmware rev:   3.1.15
                Host Port Addr: 060200
                Cacheline size: 8
                SRAM parity:    Yes
                Link Data Rate:  1 Gbit

                FC Nodename:    50:a9:80:00:02:00:b6:18 (50a980000200b618)
                FC Portname:    50:a9:80:01:02:00:b6:18 (50a980010200b618)
                Connection:     PTP, Fabric
slot 4: Fibre Channel Target Host Adapter 4b
                (Dual-channel, QLogic 2312 (2342) rev. 2, 64-bit, <ONLINE>)
                Firmware rev:   3.1.15
                Host Port Addr: 060300
                Cacheline size: 8
                SRAM parity:    Yes
                Link Data Rate: 1 Gbit
                FC Nodename:    20:01:00:e0:8b:26:39:b7 (200100e08b2639b7)
                FC Portname:    20:01:00:e0:8b:26:39:b7 (200100e08b2639b7)
                Connection:     PTP, Fabric, Standby

Note
In the display, the information about the Dual-channel QLogic HBA, the value 2312, does not specify the model number of the HBA; it refers to the device ID set by QLogic.

If the adapter is attached to a switch, switch port information is displayed immediately following SRAM parity, as follows:

Switch Port:    brcd:1
brcd:5.6 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.5 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.4 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.3 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.2 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.1 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.0 : NETAPP   X225_ST336704FC  NA08 34.5GB ( 71687368 512B/sect) 
brcd:5.shelf0 : VEM  Kernel Version : 2.5 App. Version : 3.0

Displaying brief target HBA information  Top

To display configuration information about target HBAs, and to quickly detect whether they are active and online, complete the following step.

Step

Action

1

At the filer, enter the following command.

fcp config
Result

4a: ONLINE <ADAPTER UP>  PTP  Fabric
        host address 060200
        portname 50:a9:80:01:02:00:b6:18  nodename 50:a9:80:00:02:00:b6:18
        mediatype ptp  partner adapter None
4b: ONLINE <ADAPTER UP>  PTP  Fabric  Standby
        host address 060300
        portname 20:01:00:e0:8b:26:39:b7  nodename 20:01:00:e0:8b:26:39:b7
        mediatype auto  partner adapter None

Displaying detailed target HBA information  Top

To display the nodename, portname, and link state of all target HBAs, complete the following step. Notice that the portname and nodename are displayed with the separating colons, and without. For Solaris hosts, you use the WWPN without separating colons when you map adapter portnames (or these target WWPNs) to the host.

Step

Action

1

At the filer, enter the following command:

fcp show adapter
Result

The following information is displayed for all target HBAs. This example displays information for the HBA in slot 4:

slot:              4a
Description        Fibre Channel Target Adapter 4a (Dual-channel, QLogic 2312 
rev.2

 
Status:       ONLINE

FC Nodename:   50:a9:80:00:02:c7:15 (50a9800002c715)
FC Portname:   50:a9:80:01:02:c7:15 (50a9800102c715)
Standby        No

 
slot:          4b
Description    Fibre Channel Target Adapter 4a (Dual-channel, Qlogic 2312 rev.2

 
Status:       LINK NOT CONNECTED

FC Nodename:   20:01:00:e0:8b:27:b2:a8 (200100e08b27b2a8)
FC Portname:   20:01:00:e0:8b:27:b2:a8 (200100e08b27b2a8)
Standby        YES

Displaying initiator HBA information  Top

To display the portname and group name (of the initiator group) of initiator HBAs (host) connected to target HBAs, complete the following step.

Step

Action

1

At the filer, enter the following command:

fcp show initiator
Result

The following output is displayed:

Initiators connected on adapter 4a:
Portname                      Group
10:00:00:00:c9:2b:fc:bf
10:00:00:00:c9:2b:fe:fe
10:00:00:00:c9:2b:cc:ca
10:00:00:00:c9:2b:fd:2d

 
Adapter 4b is running on behalf of the partner.
Use the partner command to view this adapter when in takeover mode.

 
Initiators connected on adapter 5a:
Portname                      Group
10:00:00:00:c9:2b:8e:29
10:00:00:00:c9:2b:83:41
10:00:00:00:c9:2b:8d:fc
10:00:00:00:c9:2b:9f:15

 
Adapter 5b is running on behalf of the partner.
Use the partner command to view this adapter when in takeover mode.

Displaying statistics  Top

To display information about the activity on target HBAs, complete the following step.

Step

Action

1
Enter the following command:
fcp stats [adapter]

adapter is the slot and port number where the target HBA is installed.

Example

Statistics for adapter 4a
Adapter Resets:         0
Frame Overruns:         0
Frame Underruns:        0
Initiators Connected:   4
Link Breaks:            0
LIP Resets:             0
Scsi Requests Dropped:  0
Spurious Interrupts:    65
Total Logins:           40
Total Logouts:          36
CRC Errors:             0
 
Adapter 4b is running on behalf of the partner.
Use the partner command to view this adapter when in takeover mode.
 
Statistics for adapter 5a
Adapter Resets:         0
Frame Overruns:         0
Frame Underruns:        0
Initiators Connected:   0
Link Breaks:            0
LIP Resets:             0
Scsi Requests Dropped:  0
Spurious Interrupts:    0
Total Logins:           0
Total Logouts:          0
CRC Errors:             0
 
Adapter 5b is running on behalf of the partner.
Use the partner command to view this adapter when in takeover mode.

Displaying FCP traffic information  Top

To display FCP traffic information (FCP ops/s, KB/s), complete the following step.

Step

Action

1

Enter the following command:

sysstat -f
Result

The following output is displayed:

CPU   NFS   CIFS   FCP   Net   kB/s   diskB/s        FCP   kB/s     Cache
                         in    out    read  write    in    out      age
 1%    0     0     0      2     0      8      20     0      0       >60
 1%    0     0     0      1     0     19      40     0      0       >60
 1%    0     0     0      2     0      8      27     0      0       >60

Displaying how long FCP has been running  Top

To display information about how long FCP has been running, complete the following step.

Step

Action

1

Enter the following command:

uptime
Result

The following output is displayed:

12:46am up 2 days, 8:59 102 NFS ops, 0 CIFS ops, 0 HTTP ops, 0 DAFS ops, 2 FCP 
ops, 0 iSCSI ops

Displaying FCP service statistics  Top

To display FCP service statistics, complete the following step.

Step

Action

1

Enter the following command:

availtime
Result

The following output is displayed:

Service statistics as of Mon Jul 1 00:28:37 GMT 2002
System (UP). First recorded (3894833) on Thu May 16 22:34:44 GMT 2002
        P   28, 230257, 170104, Mon Jun 10 08:31:39 GMT 2002
        U   24, 131888, 121180, Fri Jun  7 17:39:36 GMT 2002
NFS    (UP). First recorded (3894828) on Thu May 16 22:34:49 GMT 2002
        P   40, 231054, 170169, Mon June 10 08:32:44 GMT 2002
        U   36, 130363, 121261, Fri Jun   7 17:40:57 GMT 2002
FCP     P   19, 1417091, 1222127, Tue Jun 4 14:48:59 GMT 2002
        U   6, 139051, 121246, Fri Jun 7 17:40:42 GMT 2002

Library Table of Contents Index Previous Next Comments