On Thu, 2005-07-28 at 05:22 -0700, jigar contractor wrote: > I want to send some of information along with snmp trap command to the > trap listener. How would I add description to snmp trap PDU so that I > can send it to trap listener.
By adding one or more varbinds to the end of the standard varbind list. For example - the snmptrap command given in the tutorial (http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html) is: snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps localhost 6 17 '' SNMPv2-MIB::sysLocation.0 s "Just here" This is the *minimum* payload that must be send with this trap. But it's perfectly OK to add other varbinds as well: snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps localhost 6 17 '' SNMPv2-MIB::sysLocation.0 s "Just here" SNMPv2-MIB::sysContact.0 s "Dave" Dave ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
