VMware {code} Community
carteran
Contributor
Contributor

Sample script documentation for VIPERL toolkit V1.6

Greetings,

I have downloaded the VMware-VIPerl-1.6.0-104313.x86_64.tar.gz and compiled it on a Solaris host. The sample scripts are installed to a set of subdirectories under /usr/local/doc/samples. I was able to run the script /usr/local/doc/samples/discovery/datacentrelisting.pl as described in the installation PDF under "Validating the VI PERL Toolkit installaltion" and it works fine, however....

The VIPerl1.6 documentation on the VMware website (http://www.vmware.com/support/developer/viperltoolkit/viperl16/doc/perl_toolkit_utilities_idx.html) includes a HTML which outlines how to use the included utilities but the scripts which it refers to are different to those installed from the source tarball which I have listed below.

root@maitprodsys# ls -l samples/*

samples/WSMan:

total 38

-r-xr-xr-x 1 root root 8161 Jul 13 2008 checksensorhealth.pl

-r-xr-xr-x 1 root root 2384 Jul 13 2008 firmwarerevisions.pl

-r-xr-xr-x 1 root root 2032 Jul 13 2008 listfrus.pl

-r-xr-xr-x 1 root root 5568 Jul 13 2008 listpowersupplies.pl

samples/discovery:

total 6

-r-xr-xr-x 1 root root 1480 Jul 13 2008 datacenterlisting.pl

-r-xr-xr-x 1 root root 690 Jul 13 2008 windowsvm.pl

samples/host:

total 20

-r-xr-xr-x 1 root root 1926 Jul 13 2008 evacuate.pl

-r-xr-xr-x 1 root root 6665 Jul 13 2008 hostops.pl

drwxr-xr-x 2 root root 512 Jan 9 15:05 multiops

samples/performance:

total 54

-r-xr-xr-x 1 root root 9485 Jul 13 2008 counter.pl

-r-xr-xr-x 1 root root 5405 Jul 13 2008 performance.pl

-r-xr-xr-x 1 root root 10650 Jul 13 2008 utilization_report.pl

samples/scheduled_task:

total 4

-r-xr-xr-x 1 root root 2006 Jul 13 2008 vm_snapshot_schedule.pl

samples/session:

total 10

-r-xr-xr-x 1 root root 782 Jul 13 2008 load_session.pl

-r-xr-xr-x 1 root root 2624 Jul 13 2008 multisession.pl

-r-xr-xr-x 1 root root 888 Jul 13 2008 save_session.pl

samples/vm:

total 82

-r-xr-xr-x 1 root root 2695 Jul 13 2008 diskfree.pl

-r-xr-xr-x 1 root root 6211 Jul 13 2008 guestvars.pl

-r-xr-xr-x 1 root root 5009 Jul 13 2008 powerops.pl

-r-xr-xr-x 1 root root 4093 Jul 13 2008 removabledevices.pl

-r-xr-xr-x 1 root root 755 Jul 13 2008 snapshot.pl

-r-xr-xr-x 1 root root 16933 Jul 13 2008 vmprovision.pl

-r-xr-xr-x 1 root root 2525 Jul 13 2008 vmregister.pl

-r-xr-xr-x 1 root root 851 Jul 13 2008 vmunregister.pl

root@maitprodsys#

Can anyone direct me to the sample script documentation for the scripts included in VMware-VIPerl-1.6.0-104313.x86_64.tar.gz archive.

Many thanks

Tony

0 Kudos
1 Reply
njain
Expert
Expert

Hi Tony,

The scripts listed by you are the sample scripts that should typically get installed at the path /usr/<user>/doc/vmware-viperl/samples. In your case, it is /usr/local/doc/samples.

The scripts mentioned under the link http://www.vmware.com/support/developer/viperltoolkit/viperl16/doc/perl_toolkit_utilities_idx.html are the utility applications. These should get installed under /usr/lib/vmware-viperl/apps folder. Otherwise, you can search for the folder "apps" and once you locate it, the utility applications will be present under this.

Please note, the supported platforms for the VI Perl Toolkit package installation are:

Windows:

- Windows Vista SP 1 (32-bit and 64-bit)

- Windows XP SP 2 (32-bit and 64-bit)

Linux:

- Red Hat Enterprise Linux (RHEL) 5.1 (32-bit and 64-bit)

- Ubuntu Desktop 7.10

http://www.vmware.com/support/developer/viperltoolkit/viperl16/doc/viperl_install.pdf

Neha

0 Kudos