Re: regarding snmp trap PDU

This is a discussion on Re: regarding snmp trap PDU within the SNMP Coders forums, part of the Networking and Network Related category; On Thu, 2005-07-28 at 05:22 -0700, jigar contractor wrote: > I want to send some of information ...


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
Dave Shield
 
Posts: n/a
Default Re: regarding snmp trap PDU

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



-------------------------------------------------------
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 03:41 AM.


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