sharesmanager.pl - Display / modify shares for memory, cpu and disk for specified virtual machine.
sharesmanager.pl --vmname <name of virtual machine> [options]
This VI Perl command-line utility provides an interface for modifying shares for memory, cpu and disk for specified virtual machine.
Required. The name of the source virtual machine. It is a mandatory field. The shares of the virtual machine specified here will be updated for different resources.
Optional. Value of memory share [Value|low|normal|high]. The memory allocation share will be updated accordigly.
Optional. Value of cpu share [Value|low|normal|high]. The cpu allocation share will be updated accordingly.
Optional. Value of disk share [Value|low|normal|high]
Required if <disk> option is specified. Name of disk, whose shares need to be updated.
Display Share :
sharesmanager.pl --server <server host> --url <https://192.168.111.52/sdk/vimService>
--username <username> --password <password>
--vmname <Virtual Machine Name>
Update Memory Share :
perl sharesmanager.pl --server <server host> --url <https://192.168.111.52/sdk/vimService>
--username <username> --password <password>
--vmname <Virtual Machine Name> --memory [Value|low|normal|high]
Update CPU Share :
perl sharesmanager.pl --server <server_host> --url <https://192.168.111.52/sdk/vimService>
--username <username> --password <password>
--vmname <Virtual Machine Name> --cpu [Value|low|normal|high]
Update Disk Share :
perl sharesmanager.pl --server <server_host> --url <https://192.168.111.52/sdk/vimService>
--username <username> --password <password>
--vmname <Virtual Machine Name> --disk [Value|low|normal|high]
--diskname <Name of disk>
All operations work with VMware VirtualCenter 2.0 or later.
All operations works with VMware ESX Server 3.0 or later.