View previous topic :: View next topic |
Author |
Message |
Svend
Joined: 23 Sep 2005 Posts: 38
|
Posted: Mon Nov 23, 2009 9:54 pm Post subject: Using Perl Scripts to gather data |
|
|
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? |
|
Back to top |
|
|
Svend
Joined: 23 Sep 2005 Posts: 38
|
Posted: Mon Nov 23, 2009 11:48 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Svend
Joined: 23 Sep 2005 Posts: 38
|
Posted: Tue Nov 24, 2009 12:21 am Post subject: |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Nov 24, 2009 6:01 am Post subject: |
|
|
Quote: | 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 |
|
Back to top |
|
|
|