This example script demonstrates the Lab Manager private API call priv_MachineUpgradeVirtualHardware(). This upgrades the virtual hardware on the given machine if it is out of date. (For example, when upgrading from LabMan 3.x to 4.x, the virtual hardware of each VM should be upgraded from v4 to v7.)
--server - LabManager server to connect to
--username - Username to use to perform this action with
--password - Password for the above username
--config - Name of the configuration to upgrade virtual hardware for
To install VMware::API::LabManager, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.