使用 CLI 检查光纤通道和以太网端口的状态
您可以使用命令行界面 (CLI) 来检查光纤通道和以太网端口的状态。
id fc_io_port_id port_id type port_speed node_id node_name WWPN nportid status attachment cluster_use adapter_location adapter_port_id
0 1 1 fc 8Gb 1 node1 500507680140BADD 0E2411 active switch local_partner 1 1
1 2 2 fc 8Gb 1 node1 500507680130BADD 0E2412 active switch local_partner 1 2
2 3 3 fc N/A 1 node1 500507680110BADD 000000 inactive_unconfigured none partner 1 3
3 4 4 fc N/A 1 node1 500507680120BADD 000000 inactive_unconfigured none none 1 4
4 5 3 ethernet 10Gb 1 node1 500507680150BADD 0E2413 active switch local 2 1
5 6 4 ethernet 10Gb 1 node1 500507680160BADD 0E2414 inactive_configured switch local 2 2
6 1 1 fc N/A 2 node2 500507680140BADE 000000 inactive_unconfigured none local_partner 2 3
7 2 2 fc N/A 2 node2 500507680130BADE 000000 inactive_unconfigured none local_partner 2 4
8 3 3 fc N/A 2 node2 500507680110BADE 000000 inactive_unconfigured none partner 3 1
9 4 4 fc N/A 2 node2 500507680120BADE 0E2414 active switch none 3 2
10 5 3 ethernet 10Gb 2 node2 500507680150BADE 0E2415 active switch local 3 3
11 6 4 ethernet 10Gb 2 node2 500507680160BADE 0E2416 active switch local 3 4
可以使用命令行界面 (CLI) 来检查以太网端口的状态。
输入以下 CLI 命令来检查以太网端口的状态:
lsportip id node_id node_name IP_address mask gateway IP_address_6 prefix_6 gateway_6 MAC duplex state speed failover link_state host remote_copy host_6 remote_copy_6 remote_copy_status remote_copy_status_6 vlan vlan_6 adapter_location adapter_port_id lossless_iscsi lossless_iscsi6 storage storage_6 host_port_grp_id rdma_type
1 1 node1 192.0.2.102 255.255.255.0 192.0.2.1 6c:ae:8b:3e:f3:82 Full configured 1Gb/s no active yes 0 0 0 1 off yes 2
1 1 node1 6c:ae:8b:3e:f3:82 Full unconfigured 1Gb/s yes active 0 0 0 1 0
2 1 node1 192.51.100.102 255.255.255.0 192.0.2.1 6c:ae:8b:3e:f3:83 Full configured 1Gb/s no active yes 0 0 0 2 off yes 2
2 1 node1 6c:ae:8b:3e:f3:83 Full unconfigured 1Gb/s yes active 0 0 0 2 0
3 1 node1 6c:ae:8b:3e:f3:84 unconfigured no inactive 0 0 0 3 0
3 1 node1 6c:ae:8b:3e:f3:84 unconfigured yes inactive 0 0 0 3 0
4 1 node1 192.51.100.99 255.255.255.0 192.51.100.1 24:8a:07:1e:34:26 Full configured 25Gb/s no active yes 0 0 1 1 off yes 1 RoCE
4 1 node1 24:8a:07:1e:34:26 Full unconfigured 25Gb/s yes active 0 0 1 1 0 RoCE
5 1 node1 24:8a:07:1e:34:27 Full unconfigured 25Gb/s no active 0 0 1 2 0 RoCE
5 1 node1 24:8a:07:1e:34:27 Full unconfigured 25Gb/s yes active 0 0 1 2 0 RoCE
6 1 node1 00:07:43:39:84:60 unconfigured no inactive 0 0 2 1 0 iWARP
6 1 node1 00:07:43:39:84:60 unconfigured yes inactive 0 0 2 1 0 iWARP
7 1 node1 00:07:43:39:84:68 unconfigured no inactive 0 0 2 2 0 iWARP
7 1 node1 00:07:43:39:84:68 unconfigured yes inactive 0 0 2 2 0 iWARP
上一个示例显示以太网端口的信息。 对于每个端口,link_state 状态显示端口状态,state 状态显示是否配置端口。 在此示例中,端口显示了链接状态 active 和 inactive 以及 configured 和 unconfigured 状态。