vSphere SDK for Perl
Common Options
A number of options are available for any
vSphere SDK for Perl script. Most of these options allow you to specify the
host or hosts to connect to.
Most options require an option value.
perl <app_name>.pl --<option_name> <option_value>
For example, to power on a virtual machine by
using the
vmcontrol.pl
utility
application, you must specify the name of the virtual machine to power on, as
follows.
perl vmcontrol.pl --server <myserver> --username <admin> --password <mypassword> --operation poweron --vmname <virtual_machine_name>
Run any application or sample without any options
or with
--help
to see
its parameters and execution examples. Information about common and
script-specific options is included.
If the host you are targeting is in lockdown mode,
you cannot run Perl scripts against the host.