Redhat:
# grep scsi /proc/scsi/qla2300/1
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0,scsi_retry_q= 0
scsi-qla0-adapter-node=200000e08b9aaa61;
scsi-qla0-adapter-port=210000e08b9aaa61;
就可以查到系統第一塊HBA卡的WWNN和WWPN号.
------
# cat/sys/class/fc_host/hostx/port_name
你找對了,WWN就是 /sys/class/fc_host/hostX/port_name
狀态是 /sys/class/fc_host/hostX/port_state
目前接口速率是 /sys/class/fc_host/hostX/speed
目前接口類型是 /sys/class/fc_host/hostX/port_type