On 31 March 2010 13:36, Harendra Pratap Singh <[email protected]> wrote: > I am using suse linux and I snmpd as master agent. I want to write a > sub-agent which sends trap upon removing one power cable(there are two slots > available both can be connected at the same time).
First step - forget about SNMP for the moment. How would you detect this happening? Can you write code to receive an alert when the power cable is disconnected? (and simply write a message to a log file, or stdout) Failing that, can you write code to determine whether each power cable is connected? (Again, just display a status message) If you can do either of those, then it's relatively straightforward to extend this to generate an SNMP trap. But the first task is definitely to look at how to detect this situation in the first place. Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
