Re: How can I define my own trap?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.