Re: How can I define my own trap?
"Nikos Balkanas" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <003901c98543$467e38b0$02b2a8c0@tardis> |
Maybe you should consider using smilint. It proofreads your MIB syntax. BR, Nikos ----- Original Message ----- From: "Dave Shield" <[email protected]> To: "Ignasi Paredes Oliva" <[email protected]> Cc: <[email protected]> Sent: Monday, February 02, 2009 2:42 PM Subject: Re: How can I define my own trap? > 2009/2/2 Ignasi Paredes Oliva <[email protected]>: >> Definition: >> Time OBJECT-TYPE >> SYNTAX STRING > > That doesn't look like a valid definition. > The SMI syntax is "OBJECT STRING", not "STRING". > > So unless you've got a private TC definition, > that may well be confusing the MIB parser. > > (And MIB object names must start with a lower-case letter, > so the name isn't strictly valid either) > > > >> Command: (omitting all the other attributes of the trap) >> snmptrap -v 2c -c public 127.0.0.1 "" TESTING-TRAP-NOTIFICATION::trapTEST >> Time s "19:55:67" > > Try using the MIB-qualified name - i.e. MY-MIB::Time > Or with a fully-numeric OID instead. > > Dave > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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