![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1966051.1 : SL500 - How To Check World Wide Port Names(WWPN) of HBA Ports in Linux
In this Document
Applies to:Sun StorageTek SL500 Modular Library System - Version All Versions to All Versions [Release All Releases]Linux x86-64 GoalUnderstand how to check FC Port status and WWPN of HBA Port in Linux OS. SolutionFirst Way: Check file /sys/class/fc_host/host*/port_nameView file /sys/class/fc_host/host*/port_state can know FC port link status. [root@sky4200 host2]# more /sys/class/fc_host/host*/port_state
:::::::::::::: /sys/class/fc_host/host2/port_state :::::::::::::: Linkdown :::::::::::::: /sys/class/fc_host/host3/port_state :::::::::::::: Online [root@sky4200 host2]# View file /sys/class/fc_host/host*/port_name can know WWPN of HBA Port. [root@sky4200 host2]# more /sys/class/fc_host/host*/port_name
:::::::::::::: /sys/class/fc_host/host2/port_name :::::::::::::: 0x2100001b320543c5 :::::::::::::: /sys/class/fc_host/host3/port_name :::::::::::::: 0x2101001b322543c5 [root@sky4200 host2]# Second Way: Use command systoolIf your Linux system don't have systool, then first yum install libsysfs.x86_64 and sysfsutils.x86_64 [root@sky4200 host2]# which systool
/usr/bin/which: no systool in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root@sky4200 host2]# [root@sky4200 host2]# yum install libsysfs.x86_64 [root@sky4200 host2]# yum install sysfsutils.x86_64 [root@sky4200 host2]# which systool /usr/bin/systool [root@sky4200 host2]# [root@sky4200 host2]# systool -c fc_host -v | grep port_name port_name = "0x2100001b320543c5" port_name = "0x2101001b322543c5" [root@sky4200 host2]#
References<NOTE:1966053.1> - How To Check World Wide Port Names(WWPN) of Tape Drives Attached to LinuxAttachments This solution has no attachment |
||||||||||||||||||||
|