The dpmhyperv ChangeVMState command changes the state of a VM on a Hyper-V host.
This command has the following format:
dpmhyperv ChangeVMState [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -vm vm_name|-vguid vm_ID -state {Start|Suspend|Stop|Pause|Shutdown|Reboot} -[pre] [-post] [-locale iso639value]
(Optional) Specifies the CA Virtual Assurance user name.
(Optional) Specifies the CA Virtual Assurance user password.
(Optional) Indicates whether the CA Virtual Assurance password is encrypted.
Specifies the name of the Hyper-V host.
Specifies the VM name.
Specifies the unique GUID of the VM.
Specifies the state of the VM. Options include the following:
Turns on the VM.
Suspends the VM temporarily.
Stops the VM.
Stops the VM temporarily.
Shuts down the VM.
Performs a hard reset of the VM.
(Optional) Generates an event before the operation is complete.
(Optional) Generates an event after the operation is complete.
(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: Change the State of a VM
This example sets the state of the VM, "vmtest" to enabled.
dpmhyperv ChangeVMState -ws_user admin -ws_password #test# -hypervHost hvserver -vm vmtest -state start
Copyright © 2015 CA Technologies.
All rights reserved.
|
|