When you run the samples, you must specify connection options. See vSphere SDK for Perl Common Options. For example, you can specify connection options on the command line as follows:If --server is not specified, it defaults to localhost. If you are connecting to a remote host and do not specify a user name and password, you are prompted.
The WS-Management library consists of the WSMan::Basic and WSMan::GenericOps classes, and the StubOps.pm object-oriented wrapper for generic operations. The following sections discuss each library component.