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}]
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”.
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
Copyright © 2013 CA. All rights reserved. |
|