Hi Dave, Thanks a lot for the response.
Here is what we have observed when a Getnext is sent with Oid less than What subagent has registered for: 1. Master agent is sending one getnext with BaseOid. 2. Subagent is seeing one get with BaseOid and One Getnext with BaseOid. Sending Get and GetNext must be happening in the sub-agent library. From the logs we could see that master is sending only one getnext with BaseOid the subagent has registered with. This is in-line with your explanation. Please give your inputs on our handling of Get and Getnext requests: 1. Whenever Get request is received, respond back with "NOSUCHNAME" (Our mgmt station doesn't send a get). 2. Whenever a GetNext request with the baseoid is received, respond back with "NOSUCHNAME" if the request has come from anybody other than our mgmt station. Does the above implementation can cause any issues to other subagents or the master agent or other mgmt stations. Regards, -Murali. --- On Mon, 1/28/13, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote: > From: Dave Shield <d.t.shi...@liverpool.ac.uk> > Subject: Re: > To: "Chilukuri Murali" <murali_...@yahoo.com> > Cc: net-snmp-users@lists.sourceforge.net > Date: Monday, January 28, 2013, 3:49 PM > On 28 January 2013 10:00, Chilukuri > Murali <murali_...@yahoo.com> > wrote: > > We are observing that all Get/Get-next requests with > Oid lexographically > > less than what subagent has registered for, are getting > received by > > subagent. > > You shouldn't be receiving GET requests for a different OID > tree, > but that could certainly happen with GETNEXT (or GETBULK) > requests. > > > > Our expectation is "Subagent will receive requests with > Oid's under > > the subtree it has registered for." > > No - the subagent will receive the OID from the incoming > request. > > For GetNext requests, if there is another module (either > within the > master agent itself, or another subagent), that is > registered for that > particular OID tree, or one in between, then that module > will process > the request. > But if your subagent is the first relevant > registration, then it will > be called - with the requested OID. The > agent processing framework > doesn't try to tweak the requested OID on the fly. > > Your code needs to be able to recognise "too early" OIDs, > and return > the first valid instance. I would have thought > that the standard template > code should handle this automatically. > > Dave > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ 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