Previous Topic: ism-listSystemPolicies Command--List all Policies (Funclet)

Next Topic: ism-setSysEdgeLogLevel Command--Set the SystemEDGE Log Level (Funclet)


ism-setMaintenanceModeForService Command--Set the Maintenance Mode in a Service (Funclet)

The ism-setMaintenanceModeForService command sets the maintenance mode of all computer systems in a service.

This command has the following format:

ism-setMaintenanceModeForService 
-servicename service_name
[-on {true|false}]
-serviceName service_name

Specifies the name of the managed service.

Note: In the service name, use double backslash as a delimiter. Using single backslash as a delimiter is interpreted as an escape sequence. For example, specify service name as “Enterprise\\Data Center\\servicename”, instead of “Enterprise\Data Center\servicename”.

-on {true|false}

Defines whether all computer systems in the service are set to the maintenance mode. Specify false to set these systems out of the managed mode.

Default: true

Example: Set the Maintenance Mode in a Service

This example sets all hosts in the service, Enterprise\DataCenter\MyNewService to the maintenance mode.

ism-setMaintenanceModeForService -servicename Enterprise\DataCenter\MyNewService -on true