NSX-T (VMware NSX) のトラブルシューティングに関するコマンド をご紹介します。今回はインストール周りのコマンド のご紹介です。
- 動作確認環境:NSX-T 4.1.1.0
インストール関連 トラブルシューティング用コマンド:NSX Manager(nsxcli)からの実行
- get transport-nodes status:トランスポートノードの状態の確認
nsxmgr> get transport-nodes status
TransportNode-ID Remote-Address Controller Manager SSL-Enabled Connection-State Supported-Versions Node-Type Name
5f6ee191-30fe-459e-8160-8e0a23cee59a 10.44.10.124:43767 797e626e-b12a-4daf-a397-132f6d7cb648 10.44.10.122 true OPENED [4.1, 4.0, 3.2] ESXi 10.44.10.124
3e320d07-10f7-475d-a1b4-cc41e8969a98 10.44.10.126:34332 797e626e-b12a-4daf-a397-132f6d7cb648 10.44.10.122 true OPENED [4.1, 4.0, 3.2] Edge edge-1
0d172681-063e-419f-8a62-0a3d92b6f6d8 10.44.10.162:51161 797e626e-b12a-4daf-a397-132f6d7cb648 10.44.10.122 true OPENED [4.1, 4.0, 3.2] ESXi 10.44.10.162
- get transport-nodes status:個別のトランスポートノードの状態の確認
nsxmgr> get transport-node 3e320d07-10f7-475d-a1b4-cc41e8969a98 status
TransportNode-ID Remote-Address Controller SSL-Enabled Connection-State Supported-Versions Node-Type Name
3e320d07-10f7-475d-a1b4-cc41e8969a98 10.44.10.126:34332 797e626e-b12a-4daf-a397-132f6d7cb648 true OPENED [4.1, 4.0, 3.2] Edge edge-1
- get transport-nodes vtep: トランスポートノードのVTEP情報
nsxmgr> get transport-node 3e320d07-10f7-475d-a1b4-cc41e8969a98 vtep
VNI IP LABEL Segment MAC TransportNode-ID MP-Encap-Type Runtime-Encap-Type
69632 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
67585 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
74752 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
73728 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
72704 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
67584 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
70656 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
69633 10.44.114.35 0x11001 10.44.114.0 00:50:56:9f:14:25 3e320d07-10f7-475d-a1b4-cc41e8969a98 TRANSPORT_BINDING_GENEVE TRANSPORT_BINDING_INVALID
インストール関連 トラブルシューティング用コマンド:ESXiから(ESXiコマンド)の実行
- esxcli software vib list | grep -e nsx -e vsip
[root@esxi01:~] esxcli software vib list | grep -e nsx -e vsip
nsx-adf 4.1.1.0.0-8.0.22224315 VMware VMwareCertified 2023-09-30 host
nsx-cfgagent 4.1.1.0.0-8.0.22224315 VMware VMwareCertified 2023-09-30 host
nsx-context-mux 4.1.1.0.0-8.0.22224315 VMware VMwareCertified 2023-09-30 host
nsx-cpp-libs 4.1.1.0.0-8.0.22224315 VMware VMwareCertified 2023-09-30 host
nsx-esx-datapath 4.1.1.0.0-8.0.22224315 VMware VMwareCertified 2023-09-30 host
- 各種User World Agentの確認
- /etc/init.d/nsx-mpa status
- /etc/init.d/nsx-proxy status
- /etc/init.d/nsx-opsagent status
[root@esxi01:~] /etc/init.d/nsx-mpa status
NSX-Management-Plane-Agent is runnnig
[root@esxi01:~] /etc/init.d/nsx-proxy status
nsx-proxy is running
[root@esxi01:~] /etc/init.d/nsx-opsagent status
opsAgent is running
- ネットワーク情報の確認
- esxcli network nic list
root@esxi01:~] esxcli network nic list
Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description
------ ------------ -------- ------------ ----------- ----- ------ ----------------- ---- -----------
vmnic0 0000:0b:00.0 nvmxnet3 Up Up 10000 Full 00:50:56:b3:29:9f 1700 VMware Inc. vmxnet3 Virtual Ethernet Controller
vmnic1 0000:13:00.0 nvmxnet3 Up Up 10000 Full 00:50:56:b3:41:f3 1700 VMware Inc. vmxnet3 Virtual Ethernet Controller
vmnic2 0000:1b:00.0 nvmxnet3 Up Down 0 Half 00:50:56:b3:33:2d 1500 VMware Inc. vmxnet3 Virtual Ethernet Controller
- esxcli network ip interface list:vmk NICの詳細情報
[root@esxi01:~] esxcli network ip interface list
vmk0
Name: vmk0
MAC Address: 00:50:56:b3:29:9f
Enabled: true
Portset: DvsPortset-0
Portgroup: N/A
Netstack Instance: defaultTcpipStack
VDS Name: VDS1
VDS UUID: 50 1f 95 b1 17 a1 6c da-77 84 35 62 0b 95 e1 23
VDS Port: 6
VDS Connection: 736142781
Opaque Network ID: N/A
Opaque Network Type: N/A
External ID: N/A
MTU: 1500
TSO MSS: 65535
RXDispQueue Size: 2
Port ID: 67108876