Previous Topic: dpmvc-removevmvnic Command--Remove Virtual NIC (Funclet)Next Topic: dpmvc-setshares Command--Set VM Shares (Funclet)


dpmvc-setresources Command--Set VM Resources (Funclet)

The dpmvc-setresources command lets you adjust CPU or memory share limits or reservations.

This command has the following format:

dpmvc-setresources
-resource {setcpulimit|setcpureserv|setmemlimit|setmemresrv}
-value value 
{-datacenter_name datacentername | -vc vcenterservername}
-vm_name vmname 
setcpulimit

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

setcpureserv

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

setmemlimit

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

setmemresrv

Defines the number of shares of memory reserved for 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.

-vm_name vmname

Specifies the VM.

-value value

Specifies the value for the resource parameter.

Example: Set Resource CPU Limit to 1000 Shares in a Single vCenter Server Environment

This example adjusts the CPU share limit for the virtual machine "MyVM1" to 1000.

dpmvc-setresources -resource setcpulimit -value 1000 -vm_name MyVM1 -datacenter_name VAS/MyCity