NAME

sharesmanager.pl - Display / modify shares for memory, cpu and disk for specified virtual machine.


SYNOPSIS

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


DESCRIPTION

This VI Perl command-line utility provides an interface for modifying shares for memory, cpu and disk for specified virtual machine.


OPTIONS

GENERAL OPTIONS

vmname

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.

memory

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

cpu

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

disk

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

diskname

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


EXAMPLES

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>


SUPPORTED PLATFORMS

All operations work with VMware VirtualCenter 2.0 or later.

All operations works with VMware ESX Server 3.0 or later.