Specifications

Table Of Contents
VMware Server Administration Guide
54 VMware, Inc.
Microsoft!Visual!Basic!6!project!that!uses!the!VmCOM!API.!The!SampleScripts!
directory!contains!VBScript!and!JScript!samples!using!the!VmCOM!API.
If!you!install!the!VmPerl!API,!a!SampleScripts!directory!is!created!in!the!VmPerl!API!
directory.!The!SampleScripts!directory!contains!sample!scripts!using!the!VmPerl!API.
Installing VmPerl API on a Linux Host
On!either!a!Linux!server!host!or!a!Linux!remote!computer,!you!can!use!only!the!VmPerl!
API.!The!VmCOM!API!cannot!be!installed!on!a!Linux!host,!although!VmCOM!API!
installed!on!a!Windows!remote!client!can!communicate!with!a!Linux!host.!You!can!
make!the!VmPerl!API!tar!archive
!available!for!download!by!customizing!the!download!
menu!on!the!Login!page!of!the!VMware!Management!Interface.!See!“Customizing!the!
Download!Menu”!on!page 82.!
NOTE There!is!no!64bit!version!of!the!VmPerl!API!available!for!installation!on!a!
64bit!Linux!host.!To!use!the!VmPerl!API!with!a!64bit!Linux!host,!install!the!
32bit!version!of!the!VmPerl!API!on!a!32bit!Linux!host!and!use!that!API!to!
control!a!64bit!host.
To install the VmPerl API on a 32-bit host or client
1 Download!the!VmPerl!API!package!from!the!VMware!Management!Interface!
Login!page!to!the!machine!on!which!you!want!to!run!the!VMware!Scripting!API.
2In!a!terminal!window,!if!you!have!not!done!so!already,!become!root!so!you!can!
carry!out!the!installation!steps.!
su -
3Untar!the!package.
tar zxf VMware-VmPerlAPI-<xxxx>.tar.gz
where!<xxxx>!is!a!series!of!numbers!representing!the!version!and!build!numbers.
4 Change!to!the!installation!directory.
cd vmware-api-distrib
5Run!the!installation!program.
./vmware-install.pl
6Press!Enter!to!read!the!end!user!license!agreement!(EULA).!You!may!page!through!
it!by!pressing!the!spacebar.!If!the!Do you accept?!prompt!doesn’t!appear,!
press!Q!
to!get!to!the!next!prompt.!Accept!the!EULA.
7Specify!the!directory!where!you!want!to!install!the!VmPerl!API!executable!files.!
The!default!is!where!Perl!is!installed!on!your!host,!typically!/usr/bin.