Previous Topic: dpmhv-getJobInfo (Funclet) Command--Show Job InformationNext Topic: dpmhv-getPhysDisks (Funclet) Command--Show all Physical Disks


dpmhv-getJobStatus (Funclet) Command--Show Job Status

The dpmhv-getJobStatus command retrieves the status of an asynchronous job.

This command has the following format:

dpmhv-getJobStatus 
-jobref job
-jobref job

Specifies the job ID of an asynchronous job.

Note: Upon the complete execution of asynchronous job, Hyper-V holds the job information for few minutes (five) only, beyond which it becomes invalid.

Return Value

The dpmhv-getJobStatus command returns the following status information of the specified job:

Example: Show Job Status

This example displays the status of an export job.

jref = dpmhv-exportVMEx -host hvserver -vm TestVM -dest c:\Ex -async 
dpmhv-getJobState -jobref (jref)