This example script demonstrates the Lab Manager API call ListMachines(). This call returns an array of machine objects that are found within the configuration provided.
Data::Dumper is used to print the returned array of objects.
--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.