I would match the interesting cause ids and call external script place at the same location as SetScript as follows
If [ "$CAUSE" = "10701" ] then ./externalscript $CAUSE $IPADDRESS fi In the external script depending on the cause code I will take action. You can use multiple cause code in the if statement based on the requirements and pass more parameters. I would do all my operations work in the external script. Saurabh Bohra From: Calvin Lane [mailto:[email protected]] Sent: Monday, August 15, 2011 3:55 PM To: spectrum Subject: [spectrum] SetScript examples Hello everyone, I'm looking for setscript examples that show calling an external sript/application from the setscript. For example, I have a box that that the snmp service frequently shuts down on. When that happens I get the obvious "Device Has Stopped Responding To Polls" alarm. Once SANM picks up that alarm in the filter, I want the setscript to go to the box in question and then restart snmp. I have an idea how I want to do it, I'd just like to know what the experience of others has been with similar requirements. Has anyone done that or something similar to it before? Thanks. Calvin Lane * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected]<mailto:[email protected]> ________________________________ Please consider the environment before printing this e-mail. --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
