Cheat sheet

VMware — operating memo

VMware vSphere/ESXi operations reference for VMs, snapshots, datastores, networking, storage, services, logs and maintenance checks.

⌚ About 3 min read
View my favorites
VMwareIntermediate to advanced8 sections · 32 reference points

VMware vSphere/ESXi operations reference for VMs, snapshots, datastores, networking, storage, services, logs and maintenance checks.

Host status

ESXi version
vmware -vl

Confirms build before comparing compatibility or KBs.

Uptime/load
esxtop

Powerful interactive tool; use carefully and quit with q.

Hardware
esxcli hardware platform get

Shows vendor, model and host UUID.

Services
esxcli system service list

Checks ESXi services and startup policy.

Virtual machines

VM inventory
vim-cmd vmsvc/getallvms

Shows VMID, datastore and VMX path.

Power state
vim-cmd vmsvc/power.getstate VMID

Confirms state without vCenter.

VMware Tools
vim-cmd vmsvc/get.guest VMID

Depending on version, provides guest/tools information.

VM events
Review Tasks & Events dans vCenter

Correlate migrations, snapshots, resets or errors with incident time.

Snapshots

List snapshots
vim-cmd vmsvc/snapshot.get VMID

Checks snapshot presence and hierarchy.

Snapshot age
Check date de création dans vCenter

Old snapshots can grow and hurt storage/performance.

Consolidation
Check “Needs Consolidation”

Do not manually delete delta VMDKs.

Before removal
Check datastore + activité I/O + backup

Consolidation can create significant I/O load.

Datastores

Filesystem list
esxcli storage filesystem list

Shows capacity, free space, type and mount state.

Critical free space
Surveiller datastore proche saturation

A full datastore can break snapshots, VMs and consolidation.

NFS shares
esxcli storage nfs list

Checks NFS mounts.

VMFS
esxcli storage vmfs extent list

Maps VMFS datastores to devices/partitions.

Storage & paths

Devices
esxcli storage core device list

Shows devices, model and status.

Paths
esxcli storage core path list

Checks active/dead paths and multipathing.

HBAs
esxcli storage core adapter list

Lists storage adapters.

Storage errors
/var/log/vmkernel.log

Look for APD/PDL, path failures and latency.

Network

Physical NICs
esxcli network nic list

Checks link, speed, duplex and driver.

VMkernel NICs
esxcli network ip interface ipv4 get

Shows vmkernel IP configuration.

Routes
esxcli network ip route ipv4 list

Checks gateways and static routes.

vmkping
vmkping -I vmk1 192.168.20.10

Tests from a specific VMkernel interface.

Useful logs

vmkernel
/var/log/vmkernel.log

Storage, networking, drivers and kernel.

hostd
/var/log/hostd.log

Local host management and VM operations.

vpxa
/var/log/vpxa.log

Communication between ESXi and vCenter.

auth
/var/log/auth.log

Authentication and shell access depending on version.

Before maintenance

Backups
Check backup récente et restaurable

Do not confuse VMware snapshots with backups.

Capacity
Datastores + RAM + CPU + HA admission control

Ensure the cluster can absorb host evacuation.

vMotion
Tester connectivité VMkernel et compatibilité

Blocked vMotion can prevent maintenance mode.

Cluster state
Check HA/DRS/alarmes avant maintenance

Address pre-existing alarms before creating a new event.

Key points

  • A VMware snapshot is not a backup.
  • Never manually delete VMDK/delta files to free space.
  • Before maintenance, verify cluster capacity and datastore health.
  • ESXi commands vary by version and shell availability.
← All cheat sheets
♡ 0