Using Perl Scripts to gather data

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Svend
Posts: 38
Joined: Fri Sep 23, 2005 5:00 pm

Using Perl Scripts to gather data

Post by Svend »

I have some perl scripts installed that I can execute on my Hostmon server to query my VMWare ESXi server. I have cut the scripts down so that they only output the exact detail I want to query.

I have been having trouble executing them as an external command and also I cannot import them as a Shell Script. They run fine in a command window on the hostmon server.

Is there some way I can go about using them?
Svend
Posts: 38
Joined: Fri Sep 23, 2005 5:00 pm

Post by Svend »

I was looking at your documentation for Microsoft ActiveScripting sounds like I should get Perl listed in the language dropdown when Perl is installed on the server. However I still only see VBScript and JScript as opitions in the dropdown box for Language.

When I test it it returns a VBScript or JScript compilation error, depending on whichever I have selected.

Should I see Perl in the dropdown?

P.S. Many of the links in the Active Script documentation no longer work.
Svend
Posts: 38
Joined: Fri Sep 23, 2005 5:00 pm

Post by Svend »

I think I have it working now as a ShellScript by calling "cmd /c perl.exe %script% %params%"

Just need to hack the script now to produce outputs that satisfy hostmon.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I was looking at your documentation for Microsoft ActiveScripting sounds like I should get Perl listed in the language dropdown when Perl is installed on the server. However I still only see VBScript and JScript as opitions in the dropdown box for Language.
if you have ActivePerl installed and you want to use Active Script test method, you may type language name manually.
However I would recommend to use Shell Script test method instead.
You may use command line like cmd /c cscript /B /E:PerlScript %Script% %Params%

Regards
Alex
Post Reply