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 the
    vSphere SDK for Perl Installation Guide
    for 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.
  1. At a command prompt, change to the
    /apps/general
    directory.
    C:\Program Files\VMware\VMware vSphere CLI\Perl\apps\general /usr/lib/vmware-vcli/apps
  2. Run
    connect.pl
    .
    connect.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword
    The 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
    --help
    to display information about its parameters.