Robert Story wrote:

On Wed, 08 Jun 2005 09:36:07 -0700 John wrote:
JH> I'll give it a try, but I got a fix from the Squid folks that's been
JH> working for me.  See bug #1317 in the Squid Bugzilla database.
JH> The Net-SNMP agent receives the getnext for the last OID returned
JH> by my code and gives it back to my code.  I respond with NULL
JH> because I don't have anything after that OID, so the agent turns
JH> around and gives the same OID to Squid, which is registered
JH> for the lexically next group of OIDs.  Squid broke things by returning
JH> no-such-name.  With the Squid patch it responds with its first OID and
JH> the walk proceeds happily down the Squid tree.
Interesting.. does it survive getting out of the squid tree and move onto the
next OID?  i.e. what does squid return for a get-next on its last object, and
does net-snmp handle that case?

Unfortunately not, but for another reason. Squid's SNMP agent code (built into the Squid application) returns some table entries in non-lexical order, which breaks the walk inside of Squid's MIB. One table is indexed by the IP address, but Squid always returns the entry for 127.0.0.1 first, regardless of the IP address of the
server.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to