The dpmec2 manage command reboots or terminates Amazon EC2 instances.
Important! Back up all important data before you issue this command to avoid permanently losing unsaved data.
This command has the following format:
dpmec2 manage -instance all|instanceID[,instanceID]} [-sc sc_url] -operation {reboot|terminate|password} [-wait [timeout]] [-region region] [-pre] [-post][-locale iso639value]
(Optional) Defines the URL for the service controller host.
Example: https://hostname:port/...
Defines the fully qualified host where the service controller is installed.
Example: localhost.ca.com
Defines the listening port for the service controller server.
Example: 80
Specifies whether all instances or specific instances are managed.
Lists all instances.
Lists the specific instances.
Specifies the action to perform on the specified list of instances.
Reboots the list of instances.
Permanently deletes the list of instances.
The Windows instance password.
Defines a time in minutes to wait for an operation to complete or fail. Valid entries: 0=wait indefinitely. If you do not specify this option, an operation updates without waiting for completion. If you enter the wait option with no timeout value, the CLI uses the default wait time from the casdaconf.cfg (dpmsd only) or caimgconf.cfg (all other CLIs) files, or defaults to 120 minutes.
Defines any of the regions supported and defined by Amazon.
(Optional) Specifies whether to generate an event before the operation is performed.
(Optional) Specifies whether to generate an event after the operation is performed.
(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".
Example: Reboot All Instances
This example reboots all instances.
dpmec2 manage -instance all -operation reboot
Copyright © 2013 CA. All rights reserved. |
|