Hi Bill,

thank you for your response.
I fixed the bug at my subagent. Everything seems right now for me, but the net-snmp master agent still creates a gen error.

I send you the agentx messages, perhaps you can see the error?

Best regards
Claus

claus-mbp:build clausklein$ egrep -wn '(Command|errstat|register_index|register_mib|registration)' destroyAfterCreateAndWait-sharedTableRow.log
55:dumpv_recv:     Command SET
80:dumpv_send:       Command: 8 (Test Set)
153:dumph_recv:     Command
155:dumpv_recv:        Command: 18 (Response)
221:agentx/master: got response errstat=0, (req=0x2c,trans=0x2b,sess=0xa)
230:dumpv_send:       Command: 9 (Commit Set)
254:dumph_recv:     Command
256:dumpv_recv:        Command: 3 (Register)
326:register_mib: registering "AgentX subagent 10, session 0x7fa4f8d27820, subsession 0x7fa4f8c575a0" at NET-SNMP-MIB::netSnmp.2.2.2.1.2--5.5.116.101.115.116.50 with context "subagent"
332:dumpv_send:       Command: 18 (Response)
358:dumpv_send:        errstat: 0
442:dumph_recv:     Command
444:dumpv_recv:        Command: 14 (Index Allocate)
500:register_index: register NET-SNMP-MIB::netSnmp.2.2.2.1.1 = STRING: "test2" for session 0x7fa4f8d27820 flags(0x00000000)
505:dumpv_send:       Command: 18 (Response)
531:dumpv_send:        errstat: 0
576:dumph_recv:     Command
578:dumpv_recv:        Command: 18 (Response)
644:agentx/master: got response errstat=0, (req=0x2d,trans=0x2b,sess=0xa)
652:dumpv_send:       Command: 11 (Cleanup Set)
782:dumpv_recv:     Command GET
908:dumpv_recv:     Command SET
933:dumpv_send:       Command: 8 (Test Set)
1006:dumph_recv:     Command
1008:dumpv_recv:        Command: 18 (Response)
1074:agentx/master: got response errstat=0, (req=0x31,trans=0x30,sess=0xa)
1083:dumpv_send:       Command: 9 (Commit Set)
1107:dumph_recv:     Command
1109:dumpv_recv:        Command: 15 (Index Deallocate)
1167:register_index: unregister NET-SNMP-MIB::netSnmp.2.2.2.1.1 = STRING: "test2" for session 0x7fa4f8d27820, remember(true)
1172:dumpv_send:       Command: 18 (Response)
1198:dumpv_send:        errstat: 0
1243:dumph_recv:     Command
1245:dumpv_recv:        Command: 4 (Unregister)
1312:register_mib: unregistering NET-SNMP-MIB::netSnmp.2.2.2.1.2--5.5.116.101.115.116.50
1313:register_mib: unload(NET-SNMP-MIB::netSnmp.2.2.2.1.2.5.116.101.115.116.50, [NIL])
1314:register_mib: unload(NET-SNMP-MIB::netSnmp.2.2.2.1.3.5.116.101.115.116.50, [NIL])
1315:register_mib: unload(NET-SNMP-MIB::netSnmp.2.2.2.1.4.5.116.101.115.116.50, [NIL])
1316:register_mib: unload(NET-SNMP-MIB::netSnmp.2.2.2.1.5.5.116.101.115.116.50, [NIL])
1321:dumpv_send:       Command: 18 (Response)
1347:dumpv_send:        errstat: 0
1431:dumph_recv:     Command
1433:dumpv_recv:        Command: 18 (Response)
1501:agentx/master: got response errstat=0, (req=0x32,trans=0x30,sess=0xa)
1517:dumpx_send:      02 01 05   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< wyh? errstat=SNMP_ERROR_GENERAL_VB_ERR(5)
claus-mbp:build clausklein$ 

On 22.11.2014, at 16:55, Bill Fenner <fen...@gmail.com> wrote:

I think that this is a valid exchange - the spec says "After carrying out the management operation, the subagent sends ..." -- and in this case, the management operation included sending an Index-Deallocate PDU, which the master agent parsed and responded to (with an indication that the index being deallocated was not allocated).  The subagent then failed to respond to retransmissions of the CommitSet, so the master agent closed the session since there's not much else to do.

There is definitely a bug in the subagent here, since it should not go silent like this - once it gets the response to the Index-Deallocate it should continue processing of the CommitSet. There may or may not be a bug in the master agent here -- if the subagent had properly allocated the index, and then got the error that the index wasn't allocated when it tried to deallocate it, that's a master agent bug.  You need to capture the tracing where the subagent sends the IndexAllocate PDU to find that out.

  Bill


Attachment: destroyAfterCreateAndWait-sharedTableRow.log
Description: Binary data

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to