Wednesday, September 9, 2009
Welcome to N IT Consulting
Welcome to N-IT Consulting Blog
I am also doing a freelancer IT Consulting so if you ever come across this blog and having a need SuseLinux/HPUX/Solaris consulting. I do infrastructure/networking/OS/EMC Storage from ground up to production, please feel free to contact me. I also do phone coaching and support. We can also discuss the flat rate fee or per case requests. Also I am in the middle of writing UNIX Guides for Beginner eBook and it will be available for purchase.
View my profile at https://www.linkedin.com/pub/nancy-pham/25/85a/a3b
Labels:
Consulting,
HPUX,
IT,
Solaris,
Suse Linux,
UNIX
Saturday, February 28, 2009
How to find fiber HBA WWN - HPUX
Use the commands
ioscan -fnC fc to get the HBA path
fcmsutil [HBA path] to get the full info
fcmsutil [HBA path] to get the full info
Sample output below..and guess what? I have two HBAs installed
# ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
================================================================
fc 2 0/3/1/0 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd2
fc 3 0/3/1/1 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
/dev/fcd3
# fcmsutil /dev/fcd2
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
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000069b1d9
N_Port Port World Wide Name = 0x50060b000069b1d8
Switch Port World Wide Name = 0x200500051e05b304
Switch Node World Wide Name = 0x100000051e05b304
N_Port Symbolic Port Name = odevux34_fcd2
N_Port Symbolic Node Name = odevux34_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/3/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
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
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000069b1d9
N_Port Port World Wide Name = 0x50060b000069b1d8
Switch Port World Wide Name = 0x200500051e05b304
Switch Node World Wide Name = 0x100000051e05b304
N_Port Symbolic Port Name = odevux34_fcd2
N_Port Symbolic Node Name = odevux34_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/3/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
# fcmsutil /dev/fcd3
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
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000069b1db
N_Port Port World Wide Name = 0x50060b000069b1da
Switch Port World Wide Name = 0x200500051e05940a
Switch Node World Wide Name = 0x100000051e05940a
N_Port Symbolic Port Name = odevux34_fcd3
N_Port Symbolic Node Name = odevux34_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/3/1/1
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
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
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000069b1db
N_Port Port World Wide Name = 0x50060b000069b1da
Switch Port World Wide Name = 0x200500051e05940a
Switch Node World Wide Name = 0x100000051e05940a
N_Port Symbolic Port Name = odevux34_fcd3
N_Port Symbolic Node Name = odevux34_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/3/1/1
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
#Monday, February 9, 2009
How to find fiber HBA WWN - Linux
LINUX: Finding Fiber HBA WWN
The info is in
/sys/class/scsi_host/hostN/device/fc_host/hostN/port_name
Where “N” is the number of device for your fiber HBAs.
Unfortunately, you may have a large number of listings depending on the different cards (besides fiber HBA) that you have on your system. In my example, I have six listings:
host0
host1
host2
host3
host4
host5
but only two represent a fiber HBA.
So you may have to do some digging. In my case they are
host4
host5
(I have two HBAs installed)
So …
[root@centos63node01 ~]# cat /sys/class/scsi_host/host4/device/fc_host/host4/port_name
0x5001438003af1ffc
[root@centos63node01 ~]# cat /sys/class/scsi_host/host5/device/fc_host/host5/port_name
0x5001438003af1b9e
[root@centos63node01 ~]#
Here’s my shortcut bash command if you don’t want to look around. This command is executed in the/sys/class/scsi_host directory.
[root@centos63node01 scsi_host]# for i in 0 1 2 3 4 5; do cat host$i/device/fc_host/host$i/port_name; done
cat: host0/device/fc_host/host0/port_name: No such file or directory
cat: host1/device/fc_host/host1/port_name: No such file or directory
cat: host2/device/fc_host/host2/port_name: No such file or directory
cat: host3/device/fc_host/host3/port_name: No such file or directory
0x5001438003af1ffc
0x5001438003af1b9e
[root@centos63node01 scsi_host]#
Subscribe to:
Posts (Atom)
