List the WWN of Fiber card ports on RedHat / CentOs (6.X and higher)

Permanently deleted user -

 

List the available FC ports:

# ls -l /sys/class/fc_host
lrwxrwxrwx 1 root root 0 May  6 16:45 host3 -> ../../devices/pci0000:00/0000:00:08.0/0000:05:00.0/host3/fc_host/host3
lrwxrwxrwx 1 root root 0 May  6 16:45 host4 -> ../../devices/pci0000:00/0000:00:08.0/0000:05:00.1/host4/fc_host/host4

Output the WWN of the ports:

# cat /sys/class/fc_host/host*/port_name
0x21000024ff53e41e
0x21000024ff53e41f

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.