You can run a script to establish a connection to a host.

Prerequisites

  • 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.

Procedure

  1. At a command prompt, change to the general directory.
    • If you are using Windows use the following path.
      C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\general
    • If you are using Linux use the following path.
      /usr/lib/vmware-vcli/apps/general
  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.

    Note: You can run any utility application with --help to display information about its parameters.