On Tue, Aug 23, 2011 at 3:28 AM, anand anand <hianandh...@gmail.com> wrote:
> Hello all > > While performing a snmpbulkget on nstAgentSubagentObject, which is > provided as part of the agentx tutorial i get the below output > > - > > ... snip ... > > - Whenever we are using the snmpbulkget , the agentx receives the PDU > type as "6" which is getnext. But the getBulk PDU in agentx is 7. I read > in > an earlier mail archive with subject "snmp extension agent" as below > > If you're working with AgentX, > then a GETBULK request may either be > passed through as-is (including > non-repeaters and max-repetitions), or > else converted into a sequence of > GETNEXT requests. > If you're working with SMUX, then > this pre-dates SNMPv2, so only > supports GETNEXT. A GETBULK > request will be converted into a sequence > of GETNEXTs by the master agent. > > > > > We wanted to test the getBulk part in the agentx > implementation. How to do that ? > I just went through this with the AgentX sub-agent bulder/libraries I just finished in native Perl and Java ... 'You don't test it.' At least not with Net-SNMP, because Net-SNMP translates the getBulk into multiple getNext's, so your AgentX sub-agent will never see getbulk... so you don't have to implement getBulk (when connecting your AgentX stuff to Net-SNMP). I was worried about implementing and testing _my_ getBulk support too. But when I realized that Net-SNMP doesn't forward it, I ignored implementing it. ...because I decided: What other master agents might be used? None, Net-SNMP is _IT_! So I'll worry about it, if and when it ever happens that I need it. Fulko
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ 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