The dpmvc-getshares command lets you view how many shares of CPU or memory are allocated to a VM.
This command has the following format:
dpmvc-getshares {-datacenter_name datacentername | -vc vcenterservername} -vm_name vmname [-share {cpu | memory}]
Displays how many shares of CPU or memory are allocated to a VM. Shares are used to determine which VMs are given more of the available physical resources proportionally to other running VMs. If you allocate more shares to a VM, more physical resources are given to that VM. If you allocate fewer shares to a VM, fewer physical resources are given to that VM.
Specifies that CPU values are being retrieved.
Specifies that memory values are being retrieved.
Specifies the data center where the VM is located.
Specifies the vCenter Server where the VM is located.
Specifies the VM.
Example: Get the CPU Values for a VM
This example retrieves CPU values for usa-vm2.
dpmvc-getshares -resource cpu -datacenter_name MyCity -vm_name usa-vm2
Copyright © 2013 CA. All rights reserved. |
|