Previous Topic: dpmvc-getresources Command--Get VM Resources (Funclet)Next Topic: dpmvc-getsnapshots Command--List Snapshots of a VM (Funclet)


dpmvc-getshares Command--Get VM Shares (Funclet)

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}]
-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.

cpu

Specifies that CPU values are being retrieved.

memory

Specifies that memory values are being retrieved.

-datacenter_name datacentername

Specifies the data center where the VM is located.

-vc vcenterservername

Specifies the vCenter Server where the VM is located.

-vm_name vmname

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