This is a discussion on regarding snmp trap PDU within the SNMP Coders forums, part of the Networking and Network Related category; --0-1013585217-1122554238=:76848 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, That I know ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--0-1013585217-1122554238=:76848
Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, That I know but I want to send some description of error messages along with snmp trap pdu. Is it possible to send such type of error descrption with snmp trap ? How NMS will identify that this is the error snmp trap pdu ? Jigar. Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote: 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/tut.../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 --------------------------------- Start your day with Yahoo! - make it your home page --0-1013585217-1122554238=:76848 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <DIV><BR>Hi,</DIV> <DIV> </DIV> <DIV> That I know but I want to send some description of error messages along with snmp trap pdu. Is it possible to send such type of error descrption with snmp trap ? How NMS will identify that this is the error snmp trap pdu ?</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>Jigar.</DIV> <DIV><BR><B><I>Dave Shield <D.T.Shield@csc.liv.ac.uk></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Thu, 2005-07-28 at 05:22 -0700, jigar contractor wrote:<BR>> I want to send some of information along with snmp trap command to the<BR>> trap listener. How would I add description to snmp trap PDU so that I<BR>> can send it to trap listener.<BR><BR>By adding one or more varbinds to the end of the standard varbind list.<BR><BR>For example - the snmptrap command given in the tutorial<BR>(http://www.net-snmp.org/tutorial/tut.../snmptrap.html) is:<BR><BR>snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps<BR>localhost 6 17 ''<BR>SNMPv2-MIB::sysLocation.0 s "Just here"<BR><BR><BR>This is the *minimum* payload that must be send with this trap.<BR>But it's perfectly OK to add other varbinds as well:<BR><BR><BR>snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps<BR>localhost 6 17 ''<BR>SNMPv2-MIB::sysLocation.0 s "Just here"<BR>SNMPv2-MIB::sysContact.0 s "Dave"<BR><BR><BR>Dave<BR><BR></BLOCKQUOTE><p> <hr size=1> <a href="http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs">Start your day with Yahoo! - make it your home page </a> --0-1013585217-1122554238=:76848-- ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |