The dpmvc setcpu command sets the number of CPUs for a VM.
This command has the following format:
dpmvc setcpu [-datacenter_name datacentername] -vm_name vmname -vc_server vcservername -set_cpu number [-sc sc_url] [-wait timeout] [-pre] [-post] [-locale iso639value]
Specifies the data center where the VM is located.
Specifies the VM.
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
(Optional) Define the number of CPUs for the cloned VM. This value overrides the value specified in the template.
(Optional) Defines the URL for the service controller host.
Example: https://hostname:port/...
Defines the fully qualified host where the service controller is installed.
Example: localhost.ca.com
Defines the listening port for the service controller server.
Example: 80
(Optional) Indicates whether to display the status of the job and not return until the operation completes, fails, or the timeout period is met (if you specify a timeout value). If you do not specify this option, the CLI returns without waiting for completion. If there is no response, the optional timeout value defines the timeout period in minutes. If you enter the wait option with no timeout value, the CLI uses the default wait time from the caimgconf.cfg file or defaults to 120 minutes. In addition to any positive integer, the following timeout values are also possible:
No timeout value.
Wait indefinitely.
(Optional) Specifies whether to generate an event before the operation is performed.
(Optional) Specifies whether to generate an event after the operation is performed.
(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: Set CPUs for a VM
This example sets the number of four CPUs for the myvm VM.
dpmvc setcpu -vm_name myvm -vc_server myvcserver -set_cpu 4
Copyright © 2013 CA. All rights reserved. |
|