Server Management - Systems Insight Manager
1833551 Members
3354 Online
110061 Solutions
New Discussion

Shipping PATH to a Custom Tool

 
SOLVED
Go to solution
David J. Nelson
Advisor

Shipping PATH to a Custom Tool

I wrote a Perl script that I snapped into SIM under Custom Tools. When I run the script from the command line, everything works. When I run it from SIM, nothing works.

After toiling for a while, I found that if I front-end my Perl script with batch file that sets up PATH information, it works.

Any ideas?
3 REPLIES 3
David Claypool
Honored Contributor

Re: Shipping PATH to a Custom Tool

Which OS are we talking about? If it's *nix the $PATH may need to be exported.
David J. Nelson
Advisor

Re: Shipping PATH to a Custom Tool

Ahh... if it were only *nix! :)

This is Windows 2003...
David Claypool
Honored Contributor
Solution

Re: Shipping PATH to a Custom Tool

Okay, how are you using it? For example:

CustomTool1: set

[When run shows the values of all environment variables including path]

CustomTool2: path

[When run shows the value of the current path]

CustomTool3: joe.bat (which contains 'echo %PATH%')

[When run shows the value of the current path]

CustomTool4: echo %path%

[When run shows '192.168.1.1:5989ath' because %p is a reserved replaceable parameter for HP SIM for the IP address of the WBEM proxy (See online help for HP SIM at https://localhost:50000/mxhelp/mxportal/en/useTools_customTools_ref.html#SubstitutionTable or the HP SIM User Guide)]

CustomTool5: echo %PATH%

[When run shows error dialog "One of the tool's parameterized strings failed to expand."]