Placing ESX Host into maintenance mode

This post tells about the various methods to Place ESX host into maintenance mode via vSphere client and service console commands.


Using vSphere Client

Common Method to place an ESX host into maintenance mode is via the vSphere client. Connect to ESX by using the vSphere Client direct connection to ESX host or by connecting to the vCenter Server.

Right Click the ESX host and Select “Enter Maintenance Mode” to enter.

Now, Our ESX server in in Maintenenace Mode.

To Exit from Maintenance mode, Right click the ESX host and select “Exit Maintenance Mode”

Using Service Console

There are 2 different commands in the service console can be used to place the ESX host in maintenance mode.

 vmware-vim-cmd

 Command to place the ESX host in maintenance mode using vmware-vim-cmd

[root@vmware-arena ~]# vmware-vim-cmd /hostsvc/maintenance_mode_enter


Command to verify the host entered into maintenance mode

[root@vmware-arena ~]# vmware-vim-cmd hostsvc/hostsummary|grepi maintenance


You can see the output similar to the above one “inMaintenanceMode = true,”  to confirm the host entered into maintenance mode

Command to exit the ESX host from maintenance mode using vmware-vim-cmd

[root@vmware-arena ~]# vmware-vim-cmd /hostsvc/maintenance_mode_exit

Command to verify the host exited from maintenance mode

[root@vmware-arena ~]vmware-vim-cmd hostsvc/hostsummary|grep –i maintenance

You can see the output similar to the above one “inMaintenanceMode = false,”  to confirm the host entered into maintenance mode

Vimsh

Another method to place the ESX host via service console is by using vimsh commands
 Command to place the ESX host in maintenance mode using vimsh
[root@vmware-arena ~]# vimsh -n -e /hostsvc/maintenance_mode_enter



 Command to Exit the ESX host from maintenance mode using vimsh


Thanks For Reading !!!!