Server Management - Systems Insight Manager
1833553 Members
3420 Online
110061 Solutions
New Discussion

Not able to pass variables, to Telalert, through HPSIM.

 
SOLVED
Go to solution
David Claussen
Regular Advisor

Not able to pass variables, to Telalert, through HPSIM.

Command =
c:\telalertc

Parameters =
-host 10.140.20.23 -i myemail -subject "* * HPSIM Alert * *" -m DEVICENAME

I get an email with the correct subject, but the message is DEVICENAME instead of the device's name.I have tried it with and without quotes.

I do not know where to go from here.
3 REPLIES 3
David Claypool
Honored Contributor
Solution

Re: Not able to pass variables, to Telalert, through HPSIM.

Windows variable substitution requires the use of the % symbol on each side of the variable but not when it is set, as in:

set hp=invent
echo %hp%

...which should print the word 'invent'
David Claussen
Regular Advisor

Re: Not able to pass variables, to Telalert, through HPSIM.

You've done it again! Adding the % to the begining and end of the variable has made it work.

Thank you very much!
David Claussen
Regular Advisor

Re: Not able to pass variables, to Telalert, through HPSIM.

I'm back! Everything was working fine until I upgraded to HP SIM 5.0 sp2. Now, the same commands that worked in 4.x are giving me errors in 5.0. Errors like ... One of the tool's parameterized strings failed to expand. Invalid "%D" token found in the parameterized string at column 51.

I did find in the help that you can now use " %n " for the server name AND that does work, but there is no variable for the actual error.

Please help.