Previous Topic: dpmec2 createImage--Create AMI Image

Next Topic: dpmec2 getimages Command--Get Amazon EC2 Images


dpmec2 ec2jobcheck Command--Get Amazon EC2 Job Status

The dpmec2 ec2jobcheck command retrieves the job status for a specific instance.

This command has the following format:

dpmec2 ec2jobcheck [-sc sc_url] {-instance instanceID -operation reboot|run|terminate|start|stop|createImage | -image imageID -operation createImage} [-region region] [-pre] [-post][-locale iso639value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-instance instanceID -operation reboot|run|terminate|start|stop |
-image imageID -operation createImage

Specifies the operation for retrieving job status for an instance or image.

-instance instanceID

Defines the instance ID.

-operation reboot|run|terminate|start|stop

Defines the operation for which you want to check the instance job status. Valid entries: reboot, run, terminate, start, or stop.

-image imageID

Defines the image ID.

-operation createImage
-region region

Defines any of the regions supported and defined by Amazon.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(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: Get Job Status for Instance Reboot

This example retrieves the job status of the reboot of instance i-1234abcd.

dpmec2 ec2jobcheck -instance i-1234abcd -operation reboot