The dpmhyperv ImportVMEx command copies and imports an already exported VM to a Hyper-V host.
This command has the following format:
dpmhyperv ImportVMEx [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -path location [dest dest_location] [-name vm_name] [-noNewID] [-async] [-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 name of the Hyper-V host.
Defines the location of the server.
(Optional) Defines the destination location of the imported file.
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: Copy and Import a VM to a Hyper-V host
This example imports an exported VM to a Hyper-V host and does not generate a new ID for it.
dpmhyperv ImportVMEx -ws_user admin -ws_password #test# -hypervHost hserver -path C:\data\Export\test -name test-vm01-imported -noNewID
Copyright © 2013 CA. All rights reserved. |
|