The dpmhyperv CreateTemplateFromVM command creates a template from an existing VM.
This command has the following format:
dpmhyperv CreateTemplateFromVM [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -vmname vm_name|-vmguid vm_ID -template template_name [-description template_description] [-path template_location] [-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.
Specifies the VM name.
Specifies the unique GUID of the VM.
Defines the name of the new template.
(Optional) Specifies the template description.
(Optional) Defines the full path of the directory where you want to create the template.
(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: Create a Template from a VM
This example creates the template, "MyTemplate" from the VM, "TestVM."
dpmhyperv -CreateTemplateFromVM -ws_user admin -ws_password #test# -hypervHost hvserver -vm TestVM -template MyTemplate
Copyright © 2013 CA. All rights reserved. |
|