Server Management - Systems Insight Manager
1833704 Members
3433 Online
110062 Solutions
New Discussion

Re: SIM, Custom Commands and Variables

 
Jonathan Colbert
Occasional Contributor

SIM, Custom Commands and Variables

Hello,

I am using a NT CMD file to execute external commands - that bit works OK! But I need to know if Custom Commands, when used with Automatic Event Handling and New Event ETC, can be passed Variables such as system name and the actual event (IE Disk or PSU failure) that triggered the Event?

Many thanks.
2 REPLIES 2
Seth Kelly
Advisor

Re: SIM, Custom Commands and Variables

Have you checked out the SIM scripting forum? (http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=495)
There is not a whole lot of activity there, but take a look at Tim McGue's submissions. His scripts are good examples of reading the event log and taking an action based on it. Also, I have a question at the top of the forum that is very similar to yours, and I'm hoping it'll get spotted soon by someone who can give a definitive answer.
Alain Staelen
Advisor

Re: SIM, Custom Commands and Variables

I'm currently lauching a batchfile as a automatic event handling response to certain events.
The batchfile is executed on the HPSIM server via SSL under the same account HPSIM was installed and just reads out environment variables set by HPSIM.
These environment variables are set by HPSIM and I am using them to write a custom logfile that is then picked up by another application. I had practically the same batchfile running under IM7.