Run Your First
Script
You can run a script to establish a
connection to a host.
- Verify that you have successfully installed vSphere SDK for Perl. See thevSphere SDK for Perl Installation Guidefor information.
- Verify that you have access to one of the supported vSphere hosts. Perform a connection check by using the process described in Using the Managed Object Browser to Explore Server-Side Objects.
- At a command prompt, change to the/apps/generaldirectory.C:\Program Files\VMware\VMware vSphere CLI\Perl\apps\general /usr/lib/vmware-vcli/apps
- Runconnect.pl.connect.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypasswordThe script returns an information message and the host time.You are now ready to run other scripts, or create new scripts.You can run any utility application with--helpto display information about its parameters.