Tag: esxcli
-
ESXi: Entering and exiting maintenance mode via command line
Following on from yesterday’s post, here is how to enter or leave maintenance mode on an ESXi host via SSH: vim-cmd hostsvc/maintenance_mode_enter to go into maintenance mode – and to leave it: vim-cmd hostsvc/maintenance_mode_exit If you’re interested in other useful commands, you can see more hostsvc options by running: …
-
ESXi: Determining maintanance mode status from the command line
If you need to know if a host is in maintenance mode via the command line, SSH into your server and run the following: vim-cmd hostsvc/hostsummary | grep -i maintenance This will return the following line (in this example the host is NOT in maintenance mode): inMaintenanceMode = false, To see…
-
How to find which version of ESXi you’re running from the command line?
If you’re remotely logging in to a server to apply the latest patch but can’t remember whether you’re running 4, 4.1, 5.0 or 5.1 – and it can certainly happen when you’re managing quite a few of them remotely – there is a handy command to see which version and build number you’re actually…