regarding snmp trap PDU

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2005
jigar contractor
 
Posts: n/a
Default regarding snmp trap PDU

--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>&nbsp;&nbsp; </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jigar.</DIV>
<DIV><BR><B><I>Dave Shield &lt;D.T.Shield@csc.liv.ac.uk&gt;</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>&gt; I want to send some of information along with snmp trap command to the<BR>&gt; trap listener. How would I add description to snmp trap PDU so that I<BR>&gt; 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0