這是本文件的舊版!
VMWare ESXI Provision - Debug常用指令
Network Related Command
Remove vmknic:
localcli network ip interface remove --interface-name=vmk1 localcli network vswitch standard remove --vswitch-name="vSwitch1" localcli network vswitch standard portgroup remove --portgroup-name="VM Network1" --vswitch-name="vSwitch1" localcli network vswitch standard portgroup remove --portgroup-name="VMKernel1" --vswitch-name="vSwitch1"Show NIC info:
[root@localhost:~] localcli network nic list Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description -------------------------------------------------------------------------------------------------------------- vmnic0 0000:03:00.0 nmlx4_en Up Down 0 Half 00:25:90:90:e2:d1 1500 Mellanox Technologies MT27500 Family [ConnectX-3] vmnic1 0000:01:00.0 igbn Up Up 1000 Full 0c:c4:7a:1a:40:62 1500 Intel Corporation I350 Gigabit Network Connection vmnic2 0000:01:00.1 igbn Up Up 1000 Full 0c:c4:7a:1a:40:63 1500 Intel Corporation I350 Gigabit Network ConnectionShow IP:
[root@localhost:~] 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.146.176.17 255.255.0.0 10.146.255.255 0c:c4:7a:1a:40:62 1500 65535 true DHCP defaultTcpipStack
SSH Service
Enable SSH,登入時不需要輸入密碼: (refer link)
/etc.init.d/SSH start
List Process with command line
~ # ps -c | grep 3600 36101 36101 sleep sleep 3600 41757 41757 grep grep 3600
List PCI info
localcli hardware pci list