in HPUX we have inbuilt utilities/commands to find HBA details. The easy way to find HBA details is by using "fcmsutil" command.
1.fcmsutil - Fibre Channel Mass Storage Utility Command for Fibre Channel Host Bus Adapters.
Usage:-
/opt/fcms/bin/fcmsutil device_file [options]
The device_file specifies the Fibre Channel device special file associated with the Fibre Channel HBA port. The device file has the format /dev/FC_driverX, where X is the instance number of the Fibre Channel HBA port, as reported by the ioscan output.
2.ioscan - scan the I/O system
Usage:-
/usr/sbin/ioscan [-N] [-k-u] [-e] [-d driver -C class] [-I instance][-H hw_path] [-l] [-A] [ -f[-n]-F[-F][-n] ] [devfile]
the main options associated with this usage are
-C class Restrict the output listing to those devices belonging to the specified class.
-f Generate a full listing, displaying the module's class, instance number, hardware path, driver,software state, hardware type, and a brief description.
-n List device file names in the output. Only special files in the /dev directory and its subdirectories are listed. Must be used with either the -f or the -F option.
The process to find out HBA details in an HPUX machine is as follows:
1, Use ioscan command to find the FC device files associated with that server.
# ioscan -fnC fc
2, Use fcmsutil command to find the HBA details associated with GC devices.
# fcmsutil /dev/fcd4
Example:-
[root@hpux:/root]
# ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
fc 4 0/0/10/1/0 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) /dev/fcd4
fc 5 0/0/10/1/1 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2) /dev/fcd5
fc 6 0/0/12/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp6
fc 7 0/0/12/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp7
fc 16 1/0/12/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp16
fc 17 1/0/12/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp17
[root@hpux:/root]
# fcmsutil /dev/fcd4
Vendor ID is = 0x1077
Device ID is = 0x2422
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x12D7
PCI Mode = PCI-X 133 MHz
ISP Code version = 4.4.4
ISP Chip version = 3
Previous Topology = UNINITIALIZED
Link Speed = UNKNOWN
Local N_Port_id is = None
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x5001438004bd4d7d
N_Port Port World Wide Name = 0x5001438004bd4d7c
Switch Port World Wide Name = 0
Switch Node World Wide Name = 0
N_Port Symbolic Port Name = hpux_fcd4
N_Port Symbolic Node Name = hpux_HP-UX_B.11.31
Driver state = AWAITING_LINK_UP
Hardware Path is = 0/0/10/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0903 Dec 14 2008
[root@hpux:/root]
# fcmsutil /dev/fclp17 | grep -i "N_Port Port World Wide Name"
N_Port Port World Wide Name = 0x5001438004bd2946
No comments :
Post a Comment