exsi 命令
vSphere Esxi主机如何用命令查看插了几根内存
[root@VSAN08:~] smbiosDump|grep "Size: "
Size: 0x00018
ROM Size: 8192 kB
Max. Size: 768 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Max. Size: 768 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
查看网卡
[root@VSAN08:~] esxcfg-vmknic -l
Interface Port Group/DVPort/Opaque Network IP Family IP Address Netmask Broadcast MAC Address MTU TSO MSS Enabled Type NetStack
vmk0 Management Network IPv4 10.65.17.27 255.255.255.0 10.65.17.255 9c:c2:c4:2b:73:81 1500 65535 true STATIC defaultTcpipStack
vmk0 Management Network IPv6 fe80::9ec2:c4ff:fe2b:7381 64 9c:c2:c4:2b:73:81 1500 65535 true STATIC, PREFERRED defaultTcpipStack
vmk1 vsan IPv4 192.168.17.27 255.255.255.0 192.168.17.255 00:50:56:6d:26:5f 1500 65535 true STATIC defaultTcpipStack
vmk1 vsan IPv6 fe80::250:56ff:fe6d:265f 64 00:50:56:6d:26:5f 1500 65535 true STATIC, PREFERRED defaultTcpipStack
查宿主机下每个对应的mac
[root@VSAN08:~] net-stats -l
PortNum Type SubType SwitchName MACAddress ClientName
33554434 4 0 vSwitch0 9c:c2:c4:2b:73:81 vmnic5
33554436 4 0 vSwitch0 9c:c2:c4:2b:74:2f vmnic7
33554438 3 0 vSwitch0 9c:c2:c4:2b:73:81 vmk0
50331656 4 0 vSwitch1 9c:c2:c4:2b:73:88 vmnic2
50331658 4 0 vSwitch1 9c:c2:c4:2b:74:2e vmnic6
50331660 3 0 vSwitch1 00:50:56:6d:26:5f vmk1
67108866 4 0 vSwitch2 6c:92:bf:52:b1:5a vmnic0
67108868 4 0 vSwitch2 6c:92:bf:52:b1:5b vmnic1
83886082 4 0 vSwitch3 9c:c2:c4:2b:73:89 vmnic3
83886084 4 0 vSwitch3 9c:c2:c4:2b:73:80 vmnic4
83886209 5 9 vSwitch3 00:50:56:b6:00:5a oracle_test_3.200
83886210 5 9 vSwitch3 00:50:56:b6:63:8a oracle19c-3.51
83886211 5 9 vSwitch3 00:50:56:b6:6f:24 oraclelinux_12c2_test_3.210
列出有一个活动网络端口的虚拟机的网络信息。
[root@VSAN08:~] esxcli network vm list
World ID Name Num Ports Networks
-------- --------------------------- --------- ----------
25310286 oracle19c-3.51 1 Vlan3_Port
28718066 oracle_test_3.200 1 Vlan3_Port
28718251 oraclelinux_12c2_test_3.210 1 Vlan3_Port