查看FC HBA卡的WWN号ide
通常是在/sys/class/fc_host/host*/目录下oop
[root@localhost ~]#cat /sys/class/fc_host/host2/port_nameit
0x2100001b329240d7class
[root@localhost ~]#cat /sys/class/fc_host/host*/port_namefabric
0x2100001b329240d7端口
查看当前port的状态di
[root@localhost ~]#cat /sys/class/fc_host/host2/port_stateview
Onlineloop
查看PORT的端口IDpoi
[root@localhost ~]#cat /sys/class/fc_host/host2/port_id
0x000001
查看port支持的速率
[root@localhost ~]#cat /sys/class/fc_host/host2/supported_speeds
1 Gbit, 2 Gbit, 4 Gbit
[root@localhost ~]#cat /sys/class/fc_host/host2/supported_classes
Class 3
在FC HBA没有插上光纤时
[root@localhost ~]#cat /sys/class/fc_host/host2/speed
unknow
[root@localhost ~]#cat /sys/class/fc_host/host2/port_type
unknow
给FC HBA卡插上光纤线,和其余HBA卡相连时。
[root@localhost ~]#cat /sys/class/fc_host/host2/speed
4 Gbit
[root@localhost ~]#cat /sys/class/fc_host/host2/port_type
LPort (private loop)
和光纤交换机相连时
[root@localhost ~]#cat /sys/class/fc_host/host2/port_type
NPort (fabric via point-to-point)