Re: generic snmptrap?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 12/08/07, Abraham Iglesias <[email protected]> wrote:
> I wonder if I can send a snmp trap with no OID . I mean, a generic trap
> which is not associated to any OID, It would be just an alarm for my
> program.

And how is your program expected to know that the trap is this
particular alarm, rather than a linkUp/Down trap, or an indication
that some system has rebooted, or that your house is on fire?

The trap OID is used to identify which notification is being sent.
(Assuming SNMPv2 style notifications - SNMPv1 uses a slightly
different format, but this effectively equates to an OID anyway).

So no - you can't have a trap without an identifying OID.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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.