Previous Topic: dpmvc-gethosthba Command--Get Host Bus Adapters (Funclet)Next Topic: dpmvc-getshares Command--Get VM Shares (Funclet)


dpmvc-getresources Command--Get VM Resources (Funclet)

The dpmvc-getresources command retrieves CPU or memory share limits or reservations.

This command has the following format:

dpmvc-getresources 
-vm_name vmname 
{-datacenter_name datacentername | -vc vcenterservername}
[-resource {all|vm_cpulimit|vm_cpureserv|vm_memlimit|vm_memresrv}]
-vm_name vmname

Specifies the VM.

-datacenter_name datacentername

Specifies the data center where the VM is located.

-vc vcenterservername

Specifies the vCenter Server where the VM is located.

-resource {all|vm_cpulimit|vm_cpureserv|vm_memlimit|vm_memresrv}

Specifies whether a specific resource is retrieved or all resources. Options include the following:

all

Retrieves all CPU and memory share limits and reservations for the VM.

vm_cpulimit

Retrieves the limit for the number of shares of CPU for the VM.

vm_cpureserv

Retrieves the number of shares of CPU reserved for the VM.

vm_memlimit

Retrieves the limit for the number of shares of memory for the VM.

vm_memresrv

Retrieves the number of shares of memory reserved for the VM.

Example: Get all Resources for a VM in a Single vCenter Server Environment

This example retrieves all resources for usa-vm2.

dpmvc-getresources -resource all -datacenter_name MyCity -vm_name usa-vm2