Table of Contents

Operating system (OS)

VMware vSphere Hypervisor (ESXi)



VMware Commands

esxcli command

Operation Commands
Check ESXi Version esxcli system version get
Check Package List esxcli software vib list
Check Maintenance Mode esxcli system maintenanceMode get
Reboot ESXi Host esxcli system shutdown reboot -r “message”


vim-cmd command

Operation Commands
List VM vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.on VMID
vim-cmd vmsvc/power.off VMID
vim-cmd vmsvc/power.reboot VMID
vim-cmd vmsvc/power.shutdown VMID
vim-cmd vmsvc/power.suspend VMID
Show VM Summary Infomation vim-cmd vmsvc/get.summary VMID
top like Linux esxtop
vmkerrcode -l


Tips

Chage from lazy zero to eager zero

  1. Shutdown guest os
  2. vmkfstools –eagerzero xxxxxx.vmdk
  3. Unattach the Disk from Guest OS
  4. Attach the Disk to Guest OS
vmkfstools --eagerzero xxxxxx.vmdk