Press "Enter" to skip to content

ESXi CLI Commands General

Get ESXi Version

vmware -vl
esxcli system version get

Get system hostname

esxcli system hostname get

Set Host in maintenance mode

esxcli system maintenanceMode set –enable true

Reboot ESXi

esxcli system shutdown reboot -d 10 -r “Upgrade”

Disable or Enable Firewall

esxcli network firewall set –enabled true | false

Get installed VIBs

esxcli software vib list

Remove VIB

esxcli software vib remove -n <vib-name>

Get Installation Date

esxcli system stats installtime get

Check the SNMP configuration

esxcli system snmp get

check for the hosts locking the VM files

ls | while read x; do vmfsfilelockinfo -p $x| grep -i "is locked"; done

check which process is open for a VM

lsof | grep -i VM_Name 

search by the process id

esxcli vm process list | less 

Was this page helpful?