Displaying information about HBAs
How to display HBA information
The following table lists the commands available for displaying information about HBAs. The output varies depending on the FCP cfmode setting and the storage system model.
If you want to display...
|
Use this command...
|
|
Information for all adapters in the system, including firmware level, PCI bus width and clock speed, node name, cacheline size, Fibre Channel packet size, link data rate, SRAM parity, and various states
|
storage show adapter
|
|
All adapters (including HBAs, NICs, and switch port) configuration and status information
|
sysconfig [-v] [adapter]
adapter is a numerical value only, for example, 5.
-v displays additional information about all adapters.
|
|
Disks, disk loops, and options configuration information that affects coredumps and takeover
|
sysconfig -c
|
|
FCP cfmode setting
|
fcp show cfmode
|
|
FCP Traffic information
|
sysstat -f
|
|
How long FCP has been running
|
uptime
|
|
Initiator HBA port address, port name, node name, and igroup name 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.
|
|
Service statistics
|
availtime
|
|
Target HBAs configuration information
|
fcp config
|
|
Target HBAs node name, port name, and link state
|
fcp show adapter [-p] [-v]
[adapter&portnumber]
-p displays information about adapters running on behalf of the partner node.
-v displays additional information about target adapters.
adapter&portnumber is the slot number with the port number, a or b; for example, 5a.
|
|
Target HBAs statistics
|
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.
|
|
Information about traffic from the B ports of the partner storage system
|
sysstat -b
|
|
WWNN (node name) of the target HBA
|
fcp nodename
|
Displaying information about all adapters
To display information about all adapters installed in the storage system, complete the following step.
Step
|
Action
|
|
1
|
At the storage system, 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.
Note In the output, in 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.
Note The output varies according to storage system model. For example, if you have a FAS270, the target port is displayed as slot 0: Fibre Channel Target Host Adapter 0c. Example
A partial display of information about a target HBA installed in slot 7 appears as follows:
slot 7: Fibre Channel Target Host Adapter 7a
(Dual-channel, QLogic 2312 (2352) rev. 2, 64-bit, <ONLINE>)
Firmware rev: 3.2.18
Host Port Addr: 170900
Cacheline size: 8
SRAM parity: Yes
FC Nodename: 50:0a:09:80:86:87:a5:09 (500a09808687a509)
FC Portname: 50:0a:09:83:86:87:a5:09 (500a09838687a509)
Connection: PTP, Fabric
slot 7: Fibre Channel Target Host Adapter 7b
(Dual-channel, QLogic 2312 (2352) rev. 2, 64-bit, <ONLINE>)
Firmware rev: 3.2.18
Host Port Addr: 171800
Cacheline size: 8
SRAM parity: Yes
FC Nodename: 50:0a:09:80:86:57:11:22 (500a098086571122)
FC Portname: 50:0a:09:8c:86:57:11:22 (500a098c86571122)
Connection: PTP, Fabric
|
Displaying brief target HBA information
To display configuration information about target HBAs, and to quickly detect whether they are active and online, complete the following step.
The output of the fcp config command depends on the storage system model and cfmode setting. For examples, see Chapter 8, Managing FCP in a clustered environment."
Step
|
Action
|
|
1
|
At the storage system, enter the following command.
fcp config
Sample output
7a: ONLINE <ADAPTER UP> PTP Fabric
host address 170900
portname 50:0a:09:83:86:87:a5:09 nodename 50:0a:09:80:86:87:a5:09
mediatype ptp partner adapter 7a
7b: ONLINE <ADAPTER UP> PTP Fabric
host address 171800
portname 50:0a:09:8c:86:57:11:22 nodename 50:0a:09:80:86:57:11:22
mediatype ptp partner adapter 7b
Sample output for FAS270
For the FAS270, the fcp config command displays the target virtual local, standby, and partner ports.
0c: ONLINE <ADAPTER UP> Loop Fabric
host address 0100da
portname 50:0a:09:81:85:c4:45:88 nodename 50:0a:09:80:85:c4:45:88
mediatype loop partner adapter 0c
0c_0: ONLINE Local
portname 50:0a:09:81:85:c4:45:88 nodename 50:0a:09:80:85:c4:45:88
loopid 0x7 portid 0x0100da
0c_1: OFFLINED BY USER/SYSTEM Standby
portname 50:0a:09:81:85:c4:45:91 nodename 50:0a:09:80:85:c4:45:91
loopid 0x0 portid 0x000000
0c_2: ONLINE Partner
portname 50:0a:09:89:85:c4:45:91 nodename 50:0a:09:80:85:c4:45:91
loopid 0x9 portid 0x0100d6
Sample output for FAS3000:
The fcp config command displays information about the onboard ports connected to the SAN:
0c: ONLINE <ADAPTER UP> PTP Fabric
host address 010900
portname 50:0a:09:81:86:f7:a8:42 nodename 50:0a:09:80:86:f7:a8:42
mediatype ptp partner adapter 0d
0d: ONLINE <ADAPTER UP> PTP Fabric
host address 010800
portname 50:0a:09:8a:86:47:a8:32 nodename 50:0a:09:80:86:47:a8:32
mediatype ptp partner adapter 0c
|
Displaying detailed target HBA information
To display the node name, port name, and link state of all target HBAs, complete the following step. Notice that the port name and node name are displayed with and without the separating colons. For Solaris hosts, you use the WWPN without separating colons when you map adapter port names (or these target WWPNs) to the host.
Step
|
Action
|
|
1
|
At the storage system, enter the following command:
fcp show adapter
Sample output for F8xx or FAS9xx series systems
The following sample output displays information for the HBA in slot 7:
Slot: 7a
Description: Fibre Channel Target Adapter 7a (Dual-channel, QLogic 2
312 (2352) rev. 2)
Adapter Type: Local
Status: ONLINE
FC Nodename: 50:0a:09:80:86:87:a5:09 (500a09808687a509)
FC Portname: 50:0a:09:83:86:87:a5:09 (500a09838687a509)
Standby: No
Slot: 7b
Description: Fibre Channel Target Adapter 7b (Dual-channel, QLogic 2
312 (2352) rev. 2)
Adapter Type: Partner
Status: ONLINE
FC Nodename: 50:0a:09:80:86:57:11:22 (500a098086571122)
FC Portname: 50:0a:09:8c:86:57:11:22 (500a098c86571122)
Standby: No
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.
Note For the FAS270, the fcp show adapter command displays the target virtual local (0c_0), standby (0c_1), and partner (0c_2) ports.
|
Displaying initiator HBA information
To display the port name and igroup name of initiator HBAs connected to target HBAs, complete the following step.
Step
|
Action
|
|
1
|
At the storage system, enter the following command:
fcp show initiator
Result
The following output is displayed:
Initiators connected on adapter 7a:
Portname Group
10:00:00:00:c9:39:4d:82 sunhost_1
50:06:0b:00:00:11:35:62 hphost
10:00:00:00:c9:34:05:0c sunhost_2
10:00:00:00:c9:2f:89:41 aixhost
Initiators connected on adapter 7b:
Portname Group
10:00:00:00:c9:2f:89:41 aixhost
10:00:00:00:c9:39:4d:82 sunhost_1
50:06:0b:00:00:11:35:62 hphost
10:00:00:00:c9:34:05:0c sunhost_2
|
Displaying statistics
To display information about the activity on target HBAs, complete the following step.
Step
|
Action
|
|
1
|
Enter the following command:
fcp stats -i interval [-c count] [-a | adapter]
-i interval is the interval, in seconds, at which the statistics are displayed.
-c count is the number of intervals. For example, the lun stats -i 10 -c 5 command displays statistics in ten-second intervals, for five intervals.
-a shows statistics for all adapters.
adapter is the slot and port number of a specific target HBA.
Example output
fcp stats -i 1
r/s w/s o/s ki/s ko/s asvc_t qlen hba
0 0 0 0 0 0.00 0.00 7a
110 113 0 7104 12120 9.64 1.05 7a
146 68 0 6240 13488 10.28 1.05 7a
106 92 0 5856 10716 12.26 1.06 7a
136 102 0 7696 13964 8.65 1.05 7a
Explanation of output
Each column displays the following information:
r/s--The number of SCSI read operations per second.
w/s--The number of SCSI write operations per second.
o/s--The number of other SCSI operations per second.
ki/s-- Kilobytes per second of received traffic
ko/s--Kilobytes per second send traffic.
asvc_t--Average time in milliseconds to process a request
qlen--The average number of outstanding requests pending.
hba--The HBA slot and port number.
|
Displaying FCP traffic information
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 Disk kB/s FCP kB/s Cache
in out read write in out age
81% 0 0 6600 0 0 105874 56233 40148 232749 1
78% 0 0 5750 0 0 110831 37875 36519 237349 1
78% 0 0 5755 0 0 111789 37830 36152 236970 1
80% 0 0 5732 0 0 111222 44512 35908 235412 1
81% 0 0 7061 0 0 107742 49539 42651 232778 1
78% 0 0 5770 0 0 110739 37901 35933 237980 1
79% 0 0 5693 0 0 108322 47070 36231 234670 1
79% 0 0 5725 0 0 108482 47161 36266 237828 1
79% 0 0 6991 0 0 107032 39465 41792 233754 1
80% 0 0 5945 0 0 110555 48778 36994 235568 1
78% 0 0 5914 0 0 107562 43830 37396 235538 1
Explanation of FCP statistics
The following columns provide information about FCP statistics.
CPU--The percentage of the time that one or more CPUs were busy.
FCP--The number of FCP operations per second.
FCP KB/s--The number of kilobytes per second of incoming and outgoing FCP traffic.
|
Displaying information about traffic from the partner
If you have a cluster and your system's cfmode setting is partner, mixed, or dual_fabric, you might want to obtain information about the amount of traffic coming to the system from its partner.
To display information about traffic from the partner (FCP ops/s, KB/s), complete the following step.
Step
|
Action
|
|
1
|
Enter the following command:
sysstat -b
Result
The following columns display information about partner traffic:
- Partner--The number of partner operations per second
- Partner KB/s--The number of kilobytes per second of incoming and outgoing partner partner traffic.
|
Displaying how long FCP has been running
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, 2609 CIFS ops, 0 HTTP ops, 0 DAFS ops,
1933084 FCP ops, 0 iSCSI ops
|
Displaying FCP service statistics
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
|
Displaying the HBA's WWNN
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)
|
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01094_B0
File: c12mgt-4.htm
Last updated: 08-Dec-2005 13:25:43