Server Management - Systems Insight Manager
1831353 Members
3191 Online
110024 Solutions
New Discussion

Re: V5 passing SIM variables to a custom command

 

V5 passing SIM variables to a custom command

I am using Tivoli's postemsg command to open TEC events for a SIM event. The following parameters passed work fine:

-S server -r WARNING -m "Test" EVENT EVENT

If I try to pass an environment variable it won't run:

-S server -r WARNING -m "%USERNAME%" EVENT EVENT

However, if I use the same parameters at a command prompt it works fine so what gives? I've confirmed all HP SIM variables I need are passed in the environment by first testing a custom command that ran set > c:\env.txt. I did not need to specify any user variables in the custom command config at all.

Thanks!
5 REPLIES 5
David Claypool
Honored Contributor

Re: V5 passing SIM variables to a custom command

Can you post some more specifics? Errors?

Re: V5 passing SIM variables to a custom command

Sure--I've attached a screen shot of what I'm trying to do. There are no errors because the Task never runs. If I replace -m "%NOTICEPLAINTEXT%" with -m "Testing" it works fine.

Thanks for responding--Drew
David Claypool
Honored Contributor

Re: V5 passing SIM variables to a custom command

Bumped to be above moved questions...
gwarne
New Member

Re: V5 passing SIM variables to a custom command

Drew,
Did you ever figure out how to pass variables into the postemsg? I'm sitting at exactly the same spot!

Thanks in advance

Re: V5 passing SIM variables to a custom command

I ended up writing a vbscript wrapper for postemsg because I could then grab any variables needed. Doing this allows us to build some extra intelligence into it as well.

Shoot me an email if you like and I can give you more info, be glad to help!