The dpmvc getresources command retrieves CPU or memory share limits or reservations.
This command has the following format:
dpmvc getresources [-sc sc_url] -vm_name vmname -datacenter_name datacentername -resource {all|cpulimit|cpureserv|memlimit|memresrv} [-vc_server vcserver] [-pre] [-post] [-ws_user wsuser] [-ws_password wspassword] [-prompt {yes|no}] [-locale iso639value]
(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
Specifies the VM.
Specifies the data center where the VM is located.
Specifies whether a specific resource is retrieved or all resources. Options include the following:
Retrieves all CPU and memory share limits and reservations for the VM.
Retrieves the limit for the number of shares of CPU for the VM.
Retrieves the number of shares of CPU reserved for the VM.
Retrieves the limit for the number of shares of memory for the VM.
Retrieves the number of shares of memory reserved for the VM.
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
(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 the web service user name to connect to the VC Platform Management Module (PMM).
(Optional) Specifies the password for the web service user to connect to the VC Performance Management Module (PMM).
(Optional) Specifies whether you are prompted for the web service user ID and password.
Default: Yes
(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: Get all Resources for a VM
This example retrieves all resources for usa-vm2.
dpmvc getresources -resource all -datacenter_name MyCity -vm_name usa-vm2
Example: Get the CPU Limit for a VM
This example retrieves the individual resource cpulimit for vm uss-vm3.
dpmvc getresources -resource cpulimit -datacenter_name MyCity -vm_name uss-vm3 -vc_server vc_server_1
Copyright © 2013 CA. All rights reserved. |
|