Wednesday, September 28, 2022

How to check the the fc port status



root@sn-01:/var/log# more /sys/class/fc_host/host?/port_state
::::::::::::::
/sys/class/fc_host/host1/port_state
::::::::::::::
Offline
::::::::::::::
/sys/class/fc_host/host8/port_state
::::::::::::::
Online


command to find the portname

root@sn-01:/var/log# more /sys/class/fc_host/host?/port_name
::::::::::::::
/sys/class/fc_host/host1/port_name
::::::::::::::
0x2100f4e9d45897XX
::::::::::::::
/sys/class/fc_host/host8/port_name
::::::::::::::
0x2100f4e9d45897XX

No comments:

Post a Comment