> Hi all:
>
> In RHEL 4.x to view the status of the link (hardware conectivity)
>
> [r...@xxxx ~]# cat /proc/scsi/qla2xxx/0  | grep -i "loop state"
> Host adapter:loop state = <READY>, flags = 0x45a03
> [r...@mirlo ~]#
>
> On RHEL 5.x the most similar i've found is:
>
> [r...@xxxx host0]# pwd
> /sys/class/fc_host/host0
> [r...@xxxx host0]# cat port_state
> Online
>
> Might I to assume they mean the same?
> If not, how can I check the link status?
>
>
> Best regards Alf.

Yes, it is the same information.

Using QLogic HBAs you can download from their website the CLI Linux Tools
and even the SANsurferCLI. First one has a scripts which gathers lots of
informations from your system:

# /opt/QLogic_Corporation/Linux-Tools/ql-hba-snapshot-1.14/ql-hba-snapshot.sh
QLogic HBA-Snapshot Utility.
QLogic HBA Host3 Information
WWPN: 0x210000...
WWNN: 0x200000...
Driver Version: 8.03.00.1.05.05-k
Model: QLE2460
Firmware Version: 4.04.09 (486)
Link State: Link Up - F_Port
Device Information
Device : 0
Vendor: NETAPP
Model: LUN
WWPN: 0x500a...
Port ID: 0x020000
Number of LUNs: 1
Device : 1
Vendor: NETAPP
Model: LUN
WWPN: 0x500a...
Port ID: 0x020800
Number of LUNs: 1

QLogic HBA Host4 Information
WWPN: 0x210000...
WWNN: 0x200000...
Driver Version: 8.03.00.1.05.05-k
Model: QLE2460
Firmware Version: 4.04.09 (486)
Link State: Link Up - F_Port
Device Information
Device : 0
Vendor: NETAPP
Model: LUN
WWPN: 0x500a...
Port ID: 0x020000
Number of LUNs: 1
Device : 1
Vendor: NETAPP
Model: LUN
WWPN: 0x500a...
Port ID: 0x020800
Number of LUNs: 1

The SANsurfer's scli can produce output like

--------------------------------------------------------------------------------
Host Name                         : foo
HBA Instance                      : 1
HBA Model                         : QLE2460
HBA Description                   : QLE2460 PCI Express to 4Gb FC Single
Channel
HBA ID                            : 1-QLE2460
HBA Alias                         :
HBA Port                          : 1
Port Alias                        :
Node Name                         : 20-00-00-...
Port Name                         : 21-00-00-...
Port ID                           : 01-0B-00
Serial Number                     : RFC...
Driver Version                    : 8.03.00.1.05.05-k
BIOS Version                      : 2.02
Driver Firmware Version           : 4.04.09 (486)
Flash BIOS Version                : 2.02
Flash FCode Version               : 2.00
Flash EFI Version                 : 2.00
Flash Firmware Version            : 4.03.01
Actual Connection Mode            : Point to Point
Actual Data Rate                  : 4 Gbps
PortType (Topology)               : NPort
Target Count                      : 2
PCI Bus Number                    : 38
PCI Device Number                 : 0
PCIe Max Bus Width                : x4
PCIe Max Bus Speed                : 2.5 Gbps
PCIe Negotiated Width             : x4
PCIe Negotiated Speed             : 2.5 Gbps
HBA Status                        : Online
--------------------------------------------------------------------------------

Regards

Alexander


_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to