The dpmhyperv SetClustered command either adds or removes a VM from the Hyper-V cluster.
This command has the following format:
dpmhyperv SetClustered [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -vm VM_name|-vmguid vm_ID -clustered {on|off} [-pre] [-post] [-locale iso639value]
(Optional) Specifies the CA Server Automation user name.
(Optional) Specifies the CA Server Automation user password.
(Optional) Indicates whether the CA Server Automation password is encrypted.
Specifies the host name of the Hyper-V server.
Specifies the VM name.
Specifies the unique GUID of the VM.
Indicates whether to add or remove the VM from the cluster.
Indicates to add the VM to the cluster.
Indicates to remove the VM from the cluster.
(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: Append a VM to a Hyper-V Cluster
This example appends the VM with the GUID, "38F29B6A-TEST-BFED14644376" to the Hyper-V cluster.
dpmhyperv SetClustered -ws_user admin -ws_password #test# -hypervHost hserver -vmguid 38F29B6A-TEST-BFED14644376 -clustered on
Example: Remove a VM from a Hyper-V Cluster
This example removes the VM, "test-vm01" from the Hyper-V cluster.
dpmhyperv SetClustered -ws_user admin -ws_password #test# -hypervHost hserver -vm test-vm01 -clustered off
Copyright © 2013 CA. All rights reserved. |
|