Previous Topic: dpmvc-distributedswitch Command--Manage Virtual Distributed Switches (Funclet)Next Topic: dpmvc-exitmaintenancemode Command--Exit the Maintenance Mode (Funclet)


dpmvc-entermaintenancemode Command--Set to the Maintenance Mode (Funclet)

The dpmvc-entermaintenancemode command sets an ESX host to the maintenance mode

This command has the following format:

dpmvc-entermaintenancemode
-esx_host_name esxhostname
-vc_server vcservername
-timeout timeout
[-evacuate_powered_off_vm {no | yes}]
-esx_host_name esxhostname

Specifies the VMware ESX server where the VM resides.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-timeout timeout

Specifies the timeout time to enter or exit the maintenance mode in seconds.

-evacuate_powered_off_vm {no | yes}

(Optional) Specifies whether to exit after the VM stops.

Example: Enter Maintenance Mode

This example sets an ESX host into maintenance mode.

dpmvc-entermaintenancemode -esx_host_name esx1 -vc_server myvcserver -timeout 60