The dpmhyperv ImportVM command lets you import a VM to a Hyper-V hypervHost.
This command has the following format:
dpmhyperv ImportVM [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -path location [-name vm_name] [-noNewID] [-async] [-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 name of the Hyper-V host.
Defines the location of the imported VM.
Specifies the VM name.
(Optional) Indicates not to generate a new VM GUID. In this case, the imported VM and the imported from VM have the same GUID. We recommend not to use this option to avoid potential conflicts with other VMs.
(Optional) Runs the command in the asynchronous mode.
(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: Import a VM to a Hyper-V Host
This example imports the VM, "test-vm01-imported" to the Hyper-V host, "hserver." This command does not generate a new ID.
dpmhyperv ImportVM -ws_user admin -ws_password #test# -hypervHost hserver -path C:\data\Export\test-vm01 -name test-vm01-imported -noNewID.
Copyright © 2013 CA. All rights reserved. |
|