On Wed, 24 Jan 2007, Makavy, Erez (Erez) wrote:

> P.S:
> --------
> I didn't really understand what you ment here:
> ********************
> "I'm kind of thinking that get_target_sessions ought to create one
> session per tag after all if it's going to use the cached engine ID in
> this way, because even if you skip probing at creation until you know
> you're going to send an inform to the target, the target could actually
> have been configured to send both a trap and an inform (by listing two
> snmpNotifyTag values - one for each)."
> **********************

Sorry, there's a couple different things I was alluding to here:

1. If an snmpTargetAddrTagList instance has the value "A B", for example, 
and you have snmpNotifyTable rows with snmpNotifyTag values "A" and "B", 
with "A" set to send traps and "B" set to send informs, then the target 
should receive both a trap and an inform for the same notification.  [Why 
would you want to?  I don't know.  I think snmpNotifyTable was a mistake.]

2. There was a bug in get_target_sessions that I submitted a patch for. 
It was creating one session for each tag in snmpTargetAddrTagList, but 
then elsewhere expecting only one per snmpTargetAddrTable row (such as in 
cleanup, or building the linked list to be returned as the result). 
Consequently, the linked list could be corrupted, with stale sessions 
being kept around (maybe attached to the wrong target), etc.  The result 
was extra notifications, and possibly notifications going to the wrong 
target(s), if you had any snmpTargetAddrTagList instances with multiple 
tags.

--
Michael Kirkham
President & CEO
Muonics, Inc.
http://www.muonics.com/

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

Reply via email to