1825756 Members
2331 Online
109687 Solutions
New Discussion

hba offline

 
SOLVED
Go to solution
UNIX_HP
Advisor

hba offline

Hallo,
after some issues i reboot my HP with redhat server and now i can't see my luns ,
SAN technician said me that can't see my wwn online ..
can anyone help me ?

Thanks is advance
3 REPLIES 3
Zinky
Honored Contributor
Solution

Re: hba offline

Capture in a file the following. chmod +x. Run. It should show you your FC HBAs, if they're online, speed, HBA WWID and the Switch Port each is connected to (if connected):

#!/bin/ksh
#
# Display available FC Ports and their WWIDS
echo "show_hbas.ksh"
echo "v.0.1 Alzhy MegaCruel (CopyLeft 02/2010)"
echo " "
for hba in `ls -d /sys/class/fc_host/host*`;do
FC_HOST=`basename $hba`
PortID=`cat $hba/port_id`
wwid=`cat $hba/port_name`
state=`cat $hba/port_state`
speed=`cat $hba/speed`
hba=`cat $hba/symbolic_name`
cat <FC-Host: $FC_HOST ($hba)
---------------------------------------------------------------------------
HBA WWID : $wwid PortId: $PortID
HBA State: $state Speed : $speed

EOB
done


Cheers!
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
UNIX_HP
Advisor

Re: hba offline

thaks a lot,
the cable was disconnected,
otherwise thanks for the script !!
UNIX_HP
Advisor

Re: hba offline

all ok