在Linux下查看FC HBA卡的速率和狀態

查看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)

相關文章
相關標籤/搜索