hbacmd - Utility is used to Manage the Emulex HBA card in linux server.
We can down load this utility from Emulex support site. This is coming with HBAnyware utility kit. Its called one command manager tool.
Installation steps:
1.Install the iocontrol module and then driver. And then reboot the server. ( This is prerequesite)
#lpfc_2.6_ioctl_module_kit-2.0.39-1.tar.tar
#lpfc_2.6_driver_kit-8.0.16.47-1.tar.tar
Extract the above files and run the installation scripts.
2. once server is up ,then install the Core kit file which contains one command manager
#elxlinuxcorekit-4.0a38-8.0.16.47-1-1.tgz
#tar -zxvf elxlinuxcorekit-4.0a38-8.0.16.47-1-1.tgz
#rpm -ivh elxlinuxcorekit-4.0a38*.rpm
Now we can use the utility. Below commands will explain how to use this utility.
1.Help menu
$ /usr/sbin/hbanyware/hbacmd -h
Usage: hbacmd { h=IP Address or Hostname{:port} }
Valid Commands:
Version
ListHBAs
HBAAttrib
PortAttrib
PortStat
ServerAttrib
TargetMapping
Reset
Download
2. List out HBA cards
$ /usr/sbin/hbanyware/hbacmd listhbas
Manageable HBA List
Port WWN : 10:00:00:00:c9:49:28:42
Node WWN : 20:00:00:00:c9:49:28:42
Fabric Name: 10:00:00:60:69:80:2d:ee
Flags : 8000f980
Host Name : server01
Mfg : Emulex Corporation
Port WWN : 10:00:00:00:c9:49:28:47
Node WWN : 20:00:00:00:c9:49:28:47
Fabric Name: 10:00:00:60:69:80:0e:fc
Flags : 8000f980
Host Name : fraudmgmt01
Mfg : Emulex Corporation
[ ..... ]
3.To view Performance metrics
#/usr/sbin/hbanyware/hbacmd PortStat 10:00:00:00:c9:49:28:47
Port Statistics for10:00:00:00:c9:49:28:47
Secs Since Last Reset : 21573
Exchange Count: 1308267
Responder Exchange Count: 363
TX Seq Count : 1315705
RX Seq Count : 6357365
TX Frame Count : 1336810
RX Frame Count : 161483066
TX Word Count : 31567104
RX Word Count : 3316320000
TX KB Count :123309
RX KB Count : 12954375
4.To view properties of HBA
$ /usr/sbin/hbanyware/hbacmd HBAAttrib 10:00:00:00:c9:49:28:47
HBA Attributes for 10:00:00:00:c9:49:28:47
Host Name : server01
Manufacturer : Emulex Corporation
Serial Number : MS51403247
Model : LP9802
Model Desc : Emulex LightPulse LP9802 2 Gigabit PCI Fibre Channel Adapter
Node WWN : 20 00 00 00 c9 49 28 47
Node Symname : Emulex LP9802 FV1.91A1 DV6.02f
HW Version : 2003806d
Opt ROM Version: 1.50a4
FW Version : 1.91A1 (H2D1.91A1)
Vender Spec ID : 80F9
Number of Ports: 1
Driver Name : lpfc
Device ID : F980
5.To view port Attributes
#/usr/sbin/hbanyware/hbacmd PortAttrib 10:00:00:00:c9:49:28:47
Port Attributes for 10:00:00:00:c9:49:28:47
Node WWN : 20 00 00 00 c9 49 28 47
Port WWN : 10 00 00 00 c9 49 28 47
Port Symname :
Port FCID : 6D0900
Port Type : Fabric
Port State : Operational
Port Service Type : 6
Port Supported FC4 : 00 00 01 20 00 00 00 01
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
=-----------------------
6.Reset HBA card
# /usr/sbin/hbanyware/hbacmd Reset 10:00:00:00:c9:49:2c:b4
Reset HBA 10:00:00:00:c9:49:2c:b4
7.Upgrade Firmware and Bios for HBA card
Upgrade firmware in HBA
# ./usr/sbin/hbanyware/hbacmd Download “Port WWN no of HBA card” /dir/ firmware file path
( Need to run this command for all HBA cards on server)
BIOS Upgrade:
Bios also need to update using the same command
#./usr/sbin/hbanyware/hbacmd Download “Port WWN no of HBA card” /dir/ bios file path
0 Comments