Re: about send_v2trap()

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 28/03/07, Joao Miguel Ferreira <[email protected]> wrote:
> Lets say:
>
> a) a network management station A has configured (SNMP-NOTIFICATION-MIB)
> it self _not_to_ receive certain traps/notifications; and
>
> b) another management station B has configured it self _to_ receive
> those traps.
>
>
> 1 - What hapens when I use send_v2trap() or when a sub-agent asks the
> master agent to send that particular trap ?

The agent will cycle through the list of trap destinations (in this
case A and B).
For each destination, it will check the trap against the filtering configured
for that particular destination.

To start with, it checks the filtering for A, and sees that the trap does
not pass this filter, so it doesn't send the trap to A.
Then it checks the filtering for B, and sees that the trap *does* pass
this filter, so it does send the trap to B.

That's exactly the purpose of trap filtering.


> 2 - How does this relate with the trapsinks/trap2sinks/informsinks
> specified in snmpd.conf ? what's the precedence ?

The various sink directives provide a simple way of setting up an
entry in the snmpNotifyTable (without any associated filtering).
That table is how the agent draws up the list of destinations to
attempt to send the trap to.

If there's a third management station (C), with filtering set up
but no entry in the snmpNotifyTable, then the agent will never
even bother looking at this filter information.

trapsink et al provide the basic configuration.
The filtering is applied *after* this, to refine whether or not to
send the trap to a particular destination.

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
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.