NAME

sharesmanager.pl - Display or modify shares for memory, CPU, and disk for specified virtual machines.


SYNOPSIS

 sharesmanager.pl --vmname <name of virtual machine> [options]


DESCRIPTION

This command provides an interface for modifying shares for memory, CPU, and disk for specified virtual machine.


OPTIONS

vmname

Required. The name of the source virtual machine. The shares of the specified virtual machine will be displayed and updated for different resources.

memory

Optional. Value of memory share [Integral Value|low|normal|high]. The memory allocation share will be updated accordingly.

cpu

Optional. Value of CPU share [Integral Value|low|normal|high]. The CPU allocation share will be updated accordingly.

diskvalue

Optional. Value of disk share [Integral Value|low|normal|high]

diskname

Required if <diskvalue> option is specified. Name of disk whose shares need to be updated.


EXAMPLES

Display Memory and CPU Share of virtual machine:

 sharesmanager.pl --url <https://<IP Address>:<Port>/sdk/vimService>
                  --username user --password mypassword
                  --vmname VM123

Display Disk Share of virtual machine:

 sharesmanager.pl --url <https://<IP Address>:<Port>/sdk/vimService>
                  --username user --password mypassword
                  --vmname VM123 --diskname "Hard Disk 1"

Update Memory Share of a virtual machine to low:

 sharesmanager.pl --url <https://<IP Address>:<Port>/sdk/vimService>
                  --username user --password mypassword
                  --vmname VM123 --memory low

Update CPU Share of a virtual machine to high:

 sharesmanager.pl --url <https://<IP Address>:<Port>>/sdk/vimService>
                  --username user --password mypassword
                  --vmname VM123 --cpu high

Update Disk Share of a virtual machine to 100:

 sharesmanager.pl --url <https://<IP Address>:<Port>/sdk/vimService>
                  --username user --password mypassword
                  --vmname VM123 --diskvalue 100
                  --diskname "Hard Disk 1"