sharesmanager.pl - Display or modify shares for memory, CPU, and disk for specified virtual machines.
sharesmanager.pl --vmname <name of virtual machine> [options]
This command provides an interface for modifying shares for memory, CPU, and disk for specified virtual machine.
Required. The name of the source virtual machine. The shares of the specified virtual machine will be displayed and updated for different resources.
Optional. Value of memory share [Integral Value|low|normal|high]. The memory allocation share will be updated accordingly.
Optional. Value of CPU share [Integral Value|low|normal|high]. The CPU allocation share will be updated accordingly.
Optional. Value of disk share [Integral Value|low|normal|high]
Required if <diskvalue> option is specified. Name of disk whose shares need to be updated.
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"