vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> <strong>Programming</strong> <strong>Guide</strong><br />
Required <strong>Perl</strong> Modules<br />
The WS‐Management <strong>Perl</strong> library requires these <strong>Perl</strong> modules:<br />
SOAP::Lite – Version 0.67 ‐ version 0.69 are supported. Versions be<strong>for</strong>e 0.67 or 0.7 or later are not<br />
supported.<br />
UUID – Version 0.02 and later.<br />
Data::Dump – Version 1.07 and later.<br />
If the system you are using is behind a firewall, make sure that the http_proxy and ftp_proxy environment<br />
variables are set to match your Proxy server be<strong>for</strong>e you proceed with the following instructions <strong>for</strong> Windows<br />
or Linux.<br />
NOTE If you use one of the supported Linux distributions, the required modules are included with the<br />
<strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> and you do not have to install them.<br />
To install required <strong>Perl</strong> modules on a Windows system<br />
1 Determine which version of <strong>Perl</strong> you are using by running the perl -v command.<br />
For version 5.6, type the following at the command prompt:<br />
C:\>ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/SOAP-Lite.ppd<br />
For version 5.8, type the following at the command prompt:<br />
C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/SOAP-Lite.ppd<br />
2 Run the following command to install UUID:<br />
C:>ppm install UUID<br />
3 Run the following command to install Data::Dump:<br />
C:>ppm install Data-Dump<br />
To install required <strong>Perl</strong> modules on a Linux system<br />
1 Enter the following commands <strong>for</strong> remote access to CPAN (comprehensive <strong>Perl</strong> archive network) in a<br />
terminal window:<br />
$ sudo -s<br />
# perl -MCPAN -e shell<br />
2 Run the following command at the CPAN prompt to install SOAP::Lite:<br />
cpan> install SOAP::Lite<br />
3 Respond to the questions that appear.<br />
The module installs.<br />
4 Go to the cpan.org Web site, search <strong>for</strong> UUID, and download the latest source.<br />
5 Untar the downloaded file, open a terminal window.<br />
6 Go to the untarred directory and run the following commands to install UUID:<br />
# make<br />
# make test<br />
# make install<br />
If running make results in errors about missing items, install uuid-dev with apt-get on Debian‐based<br />
systems or e2fsprogs-dev[el] on other systems.<br />
7 Enter run the following commands to install Data::Dump:<br />
# perl -MCPAN -e shell<br />
cpan> install Data::Dump<br />
52 <strong>VMware</strong>, Inc.