VMware {code} Community
BennyJ
Contributor
Contributor

Web Enabling the VI Perl Toolkit on Windows

I'm trying to access the VI Perl Toolkit on a Windows 2003 server through IIS6 to enable some reporting options and start looking at some provisioning type services. Perl itself is working fine but I'm struggling to find a way to pass variables to the Perl scripts via CGI.

So basically I have a script that I run via the command line as per the below

perl script.pl --server vcserver --username user --password password

If I add all the appropriate code so that CGI works (Content Type, headers, formatting etc) how can I call the script via a web page? I've written a basic form to take the server, username and password variables but I can't find a nice way to pass these to the VI Perl Toolkit as you do for command line scripts. I guess I could write a function within VILib.pm to do this but I'd rather use a pre-existing method if there is one.

Thanks

0 Kudos
0 Replies