On Tue, Jan 22, 2013 at 11:16 AM, Claus Klein <claus.kl...@arcormail.de> wrote: > Hi, > > when I stop, and start the agentx master agent again while the agentx client > is still running, I got this messages: > > NET-SNMP version 5.4.4 > agentx/master: unexpected callback op 4 > agentx/master: handle pdu (req=0x166,trans=0x0,sess=0x0) > agentx/master: open 0x451500 > agentx/master: opened 0x451d50 = 9 with flags = a0 > agentx/master: send response, stat 0 (req=0x166,trans=0x0,sess=0x0) > agentx_build: packet built okay > agentx/master: handle pdu (req=0x167,trans=0xb0,sess=0x9) > agentx/master: in register_agentx_list > agentx/master: registered ok > agentx/master: send response, stat 0 (req=0x167,trans=0xb0,sess=0x9) > agentx_build: packet built okay > > agentx/master: handle pdu (req=0x169,trans=0xb1,sess=0x9) > agentx/master: send response, stat 0 (req=0x169,trans=0xb1,sess=0x9) > agentx_build: packet built okay > > > agentx/master: handle pdu (req=0x16b,trans=0xb2,sess=0x9) > agentx/master: send response, stat 0 (req=0x16b,trans=0xb2,sess=0x9) > agentx_build: packet built okay > > It happens, when the subagent open a new session after timeout. > I found, that the message comes from here: > > --- a/agent/mibgroup/agentx/master_admin.c > +++ b/agent/mibgroup/agentx/master_admin.c > @@ -506,6 +506,7 @@ handle_master_agentx_packet(int operation, > close_agentx_session(session, -1); > return 1; > } else if (operation != NETSNMP_CALLBACK_OP_RECEIVED_MESSAGE) { > + //FIXME NETSNMP_CALLBACK_OP_CONNECT was seen! ck > DEBUGMSGTL(("agentx/master", "unexpected callback op %d\n", > operation)); > return 1; > > I was wondering, that I could not find any case where > NETSNMP_CALLBACK_OP_CONNECT is handled?
It is just a missing case. This is one of the fixes from http://sourceforge.net/p/net-snmp/code/ci/6daff8d4addb1ee7230546180d94ab27e30a2e96/ . Bill > My environment is macos with gcc with net-snmp as master agent and agentpp > as subagent. > > > Can anyone please help? > > Thanks in advance > Best Regards > Claus > > > ------------------------------------------------------------------------------ > 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-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------------ 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-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders