>首先是在EXSI要打开SSH Shell端口
> 通过SSH可以登陆EXSI后端,而且可以通过命令 #dcui进入界面进行简单的操作(很多其他软件都没有这个功能)
# dcui //进入remote control页面
>> # 选择F12进入 shutdown/restart 页面,然后选择F11 restart
>> # 选择F进入查看和设置页面。
>>> 您可以在本页查看系统信息Logs,还可以对OS重启或关闭
>>> 若要重启控制端(Bare Metal Control), 可以点击F然后输入密码,进入System Customization -> Restart Management Network.
密码、网络等也可以重新设置。
> 然后按[Esc]返回控制端, 在 /bin 有许多可执行的工具可以在目录下看到,例如 esx开头工具等。
[root@localhost:/bin]ls esxcfg*esxcfg-advcfg esxcfg-info esxcfg-mpath esxcfg-resgrp esxcfg-vmknicesxcfg-dumppart esxcfg-init esxcfg-nas esxcfg-route esxcfg-volumeesxcfg-fcoe esxcfg-ipsec esxcfg-nics esxcfg-scsidevs esxcfg-vswitchesxcfg-hwiscsi esxcfg-module esxcfg-rescan esxcfg-swiscsi// 查看版本[root@localhost:/bin]vmware -vVMware ESXi 6.5.0 build-7388607// 查看硬件信息[root@localhost:~]esxcfg-info -a Host : \\== Hardware Info : |----BIOS UUID...0x8a 0x68 0x 50 0x87 0xfe 0x3d 0x11 0xe6 0x86 0xbd 0xd0 0x74 0x8 0xec 0x2a 0x20 |----BIOS Vendor...Lenovo |----BIOS Version...PSE517L-1.78 |----BIOS ReleaseDate...2019-12-20T0 0:00:00 |----BIOS Asset Tag...none |----Product Name...ThinkSystem SR950 |----Vendor Name...FOXCONN |----Serial Number...PROT4A1A9E |----Hardware Uptime...230707437574 75 |----Ipmi Supported...true |----BMC Version...3.路由网34 \\== PCI Info : \\== All Pci Devices : \\== PCI Device : |----Segment...0x0000 |----Bus...0x00 |----Slot...0x00// 查看当前虚拟交换机的配置[root@localhost:/bin]esxcfg-vswitch -lSwitch Name Num Ports Used Ports Configured Ports MTU UplinksvSwitch0 10752 37 128 1500 vmnic0 PortGroup Name VLAN ID Used Ports Uplinks VM Network 0 33 vmnic0 Management Network 0 1 vmnic0Switch Name Num Ports Used Ports Configured Ports MTU UplinksvSwitchUSB0 10752 4 128 1500 vusb0 PortGroup Name VLAN ID Used Ports Uplinks IMM_Network0 0 1 vusb0// 查看EXSI的网卡信息[root@localhost:/bin]esxcfg-nics -lName PCI Driver Link Speed Duplex MAC Address MTU Descriptionvmnic0 0000:1a:00.0 i40en Up 1000Mbps Full 08:94:ef:3f:ed:xc 1500 Intel(R) Ethernet Connection X722 for 1GbEvmnic1 0000:1a:00.1 i40en Down 0Mbps Half 08:94:ef:3f:ed:xd 1500 Intel(R) Ethernet Connection X722 for 1路由知识GbEvmnic2 0000:3f:00.0 elxnet Down 0Mbps Half 00:10:9b:16:88:x0 1500 Emulex Corporation Emulex OneConnect OCe14000 NICvmnic3 0000:3f:00.1 elxnet Down 0Mbps Half 00:10:9b:16:88:x8 1500 Emulex Corporation Emulex OneConnect OCe14000 NICvusb0 Pseudo cdce Up 100Mbps Full 0a:94:ef:3f:ec:xf 1500 IBM XClarity Controller// 查看磁盘信息[root@localhost:/bin]ls -l /vmfs/devices/diskstotal 20468037685-rw------- 1 root root 1200243695616 Oct 9 16:44 naa.5000039738391031-rw------- 1 root root 1200240984576 Oct 9 16:44 naa.5000039738391031:3-rw------- 1 root root 1200243695616 Oct 9 16:44 naa.5000039738398995-rw------- 1 root root 134217728 Oct 9 16:44 naa.5000039738398995:1-rw------- 1 root root 1200107814912 Oct 9 16:44 naa.5000039738398995:2-rw------- 1 root root 300000000000 Oct 9 16:44 naa.5000039798114b8d-rw------- 1 root root 134217728 Oct 9 16:44 naa.5000039798114b8d:1-rw------- 1 root root 299864424448 Oct 9 16:44 naa.5000039798114b8d:2// 检查接口存储设置[root@localhost:/bin]esxcli storage san sas list Device Name: vmhba1 SAS Address: 60:1e:52:26:0d:e8:a2:31 Physical ID: 0 Minimum Link Rate: 0 Mbps Maximum Link Rate: 0 Mbps Negotiated Link Rate: 0 Mbps Model Description: Hardware Version: OptionROM Version: Firmware Version: 50.0.1-0372 Driver Name: lsi_mr3 Driver Version: 7.703.51.00// 直接输入vmsvc查看哪些参数[root@localhost:/bin]vim-cmd vmsvc/Commands available under vmsvc/:acquiremksticket get.snapshotinfoacquireticket get.spaceNeededForConsolidationcreatedummyvm get.summarydestroy get.tasklistdevice.connection getallvmsdevice.connusbdev gethostconstraints...// 检查部署了什么OS,可以利用 vim-cmd, 参数很多,例如 vmsvc/getallvms[root@localhost:/bin]vim-cmd vmsvc/getallvmsSkipping invalid VM '307'Vmid Name File Guest OS Version Annotation125 MD-1.40[datastore1]Hasin-GD-1.40/Hasin-GD-1.40.vmx rhel6_64Guest vmx-07150 CentOS8[DataStorage-1]Hasin-CentOS8/-CentOS8.vmx coreos64Guest vmx-13169 Win8.1[DataStorage-2]Win8-old-1/Win8-old-1.vmx windows8_64Guest vmx-13// 查看宿主机的网络信息[root@localhost:/bin]vim-cmd hostsvc/net/vnic_info(vim.host.VirtualNic)[ (vim.host.VirtualNic){ device = "vmk0", key = "key-vim.host.VirtualNic-vmk0", port
gr