Re: trap information interchange: in text format
Joao Miguel Ferreira <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2007-03-21 at 15:54 +0000, Dave Shield wrote: > On 21/03/07, Joao Miguel Ferreira <[email protected]> wrote: > > I need to find a suitable string format for receiving information to be > > sent as traps. > > Are you looking at generating SNMPv1-style traps, or SNMPv2 > notifications? Will you need to specify version information > (including community/SNMPv3 user settings), or just the "payload" > of the trap? Only the payload. I do not need to specify trapsinks because I will use the agent to send the traps to all the trapsinks defined in snmpd.conf. I think this is the most correct approach. Any issue with this ? > > At a minimum, you'll need to be able to handle: > > SNMPv1) trap type (2 integers) > enterprise (OID) > + arbitrary varbind list I guess the agent will take care of all the details if I use send_v2trap. Is this correct ? > > SNMPv2) trap OID > + arbitrary varbind list > > You may wish to be able to specify uptime and (v1) agent as well, > but this is going to be the bare minimum. > > > > > > TRAP_OID=".1.3.6.1.2.1.1.x.y.z" TRAP_TYPE="Integer" TRAP_VALUE="1234" > > A single OID is probably sufficient here (assuming v2-style) > TRAP_TYPE is redundant. > TRAP_VALUE is misleading (and either insufficient, or redundant) > There is really no such thing as a TRAP_VALUE... is there ? > > > VARBIND_OID=".1.3.6.1.2.1.a.b.c.d.e" > > VARBIND_TYPE="Integer" > > VARBIND_VALUE="1000" > > VARBIND_OID=".1.3.6.1.2.13.45.w.v.z.q" > > VARBIND_TYPE="Srting" VARBIND_VALUE="Hello World" > > That should work, yes > > How would you handle string values containing a " character? > ??? well I have to give it more thought. Thanks for pointing that. > Do you have a full list of acceptable TYPE tokens? > If not, then I'd suggest using the standard SYNTAX types from > the SNMP specification, rather than inventing your own. That was my intention. I will do that. thx. joao jmf > > Dave > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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