Although most of the below have appeared in earlier posts I thought it would be good to list of common ones I use.
List running VM’s on a host
esxcli vm process listList all the Virtual Machines on a VMware ESXi Host
vm-support -VList all mounted scsi id’s
esxcfg-scsidevs -mList all volumes
esxcfg-volume -lForce mount a volume
esxcfg-volume -M orFind certain words in vmkernel log
grep "vmkernel:" /var/log/messages | grep "keyword"Find all VMs that have snapshots in ESX
find /vmfs/volumes/ -name "*delta*" -type f -print0 | xargs -0 du --human-readable --totalFind all VMs that have snapshots in ESXi
find /vmfs/volumes/ -name "*delta*" -type f -print0 | xargs -0 du -hRestart VMware ESX Service Management Agents
service mgmt-vmware restartRestart VMware ESXi Service Management Agents
/sbin/services.sh restartList network cards in ESXi
esxcfg-nics -lList all the vswitches
esxcfg-vswitch -l
Comments