Hi Magnus,

 Looks like I have pasted some chunk no way related my work :-( 

a) What debug levels do you have activated on both the agent and the
  subagent?

-D dump

b) Are there more logs?

I am not sure on what log you are looking for. Can you please elaborate?
 
Looks like while pasting logs I had done some mistake.

Actually my subagent logs of dump code looks like this 

trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 613:
dumph_send: AgentX Header
dumpx_send:  01 01 00 00
dumpv_send:    Version: 1
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 616:
dumpv_send:     Command:        1 (Open)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 619:
dumpv_send:     Flags:  00
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 622:
dumph_send:   Session ID
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 631:
dumph_send:   Transaction ID
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 640:
dumph_send:   Request ID
dumpx_send:    A5 7C 20 3B
dumpv_send:      Integer:       991984805 (0x3B207CA5)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 649:
dumph_send:   Dummy Length :-(
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 716:
dumph_send: AgentX Payload
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 735:
dumph_send:   Open Timeout
dumpx_send:    00 00 00 00
dumpv_send:      Timeout:       0
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 741:
dumph_send:   Open ID
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 224:
dumpv_send:     OID: NET-SNMP-TC::linux
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 265:
dumph_send:     OID Header
dumpx_send:      05 04 00 00
dumpv_send:        # subids:    5 (0x05)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 269:
dumpv_send:         prefix:     4 (0x04)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 271:
dumpv_send:         inclusive:  0 (0x00)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 275:
dumph_send:     OID Segments
dumpx_send:      01 00 00 00
dumpv_send:        Integer:     1 (0x01)
dumpx_send:      88 1F 00 00
dumpv_send:        Integer:     8072 (0x1F88)
dumpx_send:      03 00 00 00
dumpv_send:        Integer:     3 (0x03)
dumpx_send:      02 00 00 00
dumpv_send:        Integer:     2 (0x02)
dumpx_send:      0A 00 00 00
dumpv_send:        Integer:     10 (0x0A)
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 750:
dumph_send:   Open Description
trace: agentx_realloc_build_string(): mibgroup/agentx/protocol.c, 303:
dumph_send:     Build String
trace: agentx_realloc_build_string(): mibgroup/agentx/protocol.c, 304:
dumph_send:       length
dumpx_send:        19 00 00 00
dumpv_send:          Integer:   25 (0x19)
dumpx_send:        4E 65 74 2D 53 4E 4D 50 20 41 67 65 6E 74 58 20
73 75 62 2D 61 67 65 6E 74 00 00 00
dumpv_send:          String:    Net-SNMP AgentX sub-agent
dumpx_send:3C 00 00 00
dumpv_send:  Integer:   60 (0x3C)

Thanks,
Princy



________________________________
From:Magnus Fromreide <ma...@lysator.liu.se>
To:Princy Gift <ajpri...@yahoo.co.in>
Cc:net-snmp-coders@lists.sourceforge.net
Sent:Wed, 8 December, 2010 3:21:20 AM
Subject:Re: Master-Agentx Registration fails

On Tue, 2010-12-07 at 16:12 +0530, Princy Gift wrote:
> Hi Wes,
> 
> 
> Thanks. But, I figured out that some of the MIBs where not present in
> the mibs directory. Once these MIBs are copied my master comesup with
> no issues.
> 
> 
> But my sub agent is not able to get attached 
> 
> 
> THis is my debug trace of the master
> 
> 
> NET-SNMP version 5.4.3
> dumpx_recv:3C 00 00 00
> dumpv_recv:  Integer:   60 (0x3C)
> dumph_recv: AgentX Header
> dumph_recv:   Version
> dumpx_recv:    01
> dumpv_recv:      Version:       1
> dumph_recv:   Command
> dumpx_recv:    01
> dumpv_recv:      Command:       1 (Open)
> dumph_recv:   Flags
> dumpx_recv:    00
> dumpv_recv:      Flags: 0x0
> dumph_recv:   Reserved Byte
> dumpx_recv:    00
> dumpv_recv:      Reserved:      0x0
> dumph_recv:   Session ID
> dumpx_recv:    00 00 00 00
> dumpv_recv:      Integer:       0 (0x00)
> dumph_recv:   Transaction ID
> dumpx_recv:    00 00 00 00
> dumpv_recv:      Integer:       0 (0x00)
> dumph_recv:   Packet ID
> dumpx_recv:    D1 5B 36 10
> dumpv_recv:      Integer:       271997905 (0x10365BD1)
> dumph_recv:   Payload Length
> dumpx_recv:    3C 00 00 00
> dumpv_recv:      Integer:       60 (0x3C)
> dumph_recv:   PDU
> dumph_recv:       Subagent OID
> dumph_recv:         OID Header
> dumpx_recv:          05 04 00 00
> dumpv_recv:            # subids:        5 (0x05)
> dumpv_recv:             prefix:         4 (0x04)
> dumpv_recv:             inclusive:      0 (0x00)
> dumph_recv:         OID Segments
> dumpx_recv:          01 00 00 00
> dumpv_recv:            Integer: 1 (0x01)
> dumpx_recv:          88 1F 00 00
> dumpv_recv:            Integer: 8072 (0x1F88)
> dumpx_recv:          03 00 00 00
> dumpv_recv:            Integer: 3 (0x03)
> dumpx_recv:          02 00 00 00
> dumpv_recv:            Integer: 2 (0x02)
> dumpx_recv:          0A 00 00 00
> dumpv_recv:            Integer: 10 (0x0A)
> dumpv_recv:         OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
> dumph_recv:       Subagent Description
> dumpx_recv:        19 00 00 00
> dumpv_recv:          Integer:   25 (0x19)
> dumpx_recv:        19 00 00 00 4E 65 74 2D 53 4E 4D 50 20 41 67 65
> 6E 74 58 20 73 75 62 2D 61 67 65 6E 74 00 00 00
> dumpv_recv:        String: Net-SNMP AgentX sub-agent...

> This is the debug trace of my subagent that is hanging during start
> upis below


trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 613:
dumph_send: AgentX Header
dumpx_send:  01 01 00 00
dumpv_send:    Version: 1
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 616:
dumpv_send:     Command:        1 (Open)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 619:
dumpv_send:     Flags:  00
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 622:
dumph_send:   Session ID
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 631:
dumph_send:   Transaction ID
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 640:
dumph_send:   Request ID
dumpx_send:    A5 7C 20 3B
dumpv_send:      Integer:       991984805 (0x3B207CA5)
trace: agentx_realloc_build_header(): mibgroup/agentx/protocol.c, 649:
dumph_send:   Dummy Length :-(
dumpx_send:    00 00 00 00
dumpv_send:      Integer:       0 (0x00)
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 716:
dumph_send: AgentX Payload
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 735:
dumph_send:   Open Timeout
dumpx_send:    00 00 00 00
dumpv_send:      Timeout:       0
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 741:
dumph_send:   Open ID
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 224:
dumpv_send:     OID: NET-SNMP-TC::linux
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 265:
dumph_send:     OID Header
dumpx_send:      05 04 00 00
dumpv_send:        # subids:    5 (0x05)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 269:
dumpv_send:         prefix:     4 (0x04)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 271:
dumpv_send:         inclusive:  0 (0x00)
trace: agentx_realloc_build_oid(): mibgroup/agentx/protocol.c, 275:
dumph_send:     OID Segments
dumpx_send:      01 00 00 00
dumpv_send:        Integer:     1 (0x01)
dumpx_send:      88 1F 00 00
dumpv_send:        Integer:     8072 (0x1F88)
dumpx_send:      03 00 00 00
dumpv_send:        Integer:     3 (0x03)
dumpx_send:      02 00 00 00
dumpv_send:        Integer:     2 (0x02)
dumpx_send:      0A 00 00 00
dumpv_send:        Integer:     10 (0x0A)
trace: _agentx_realloc_build(): mibgroup/agentx/protocol.c, 750:
dumph_send:   Open Description
trace: agentx_realloc_build_string(): mibgroup/agentx/protocol.c, 303:
dumph_send:     Build String
trace: agentx_realloc_build_string(): mibgroup/agentx/protocol.c, 304:
dumph_send:       length
dumpx_send:        19 00 00 00
dumpv_send:          Integer:   25 (0x19)
dumpx_send:        4E 65 74 2D 53 4E 4D 50 20 41 67 65 6E 74 58 20
73 75 62 2D 61 67 65 6E 74 00 00 00
dumpv_send:          String:    Net-SNMP AgentX sub-agent
dumpx_send:3C 00 00 00
dumpv_send:  Integer:   60 (0x3C)

Ouch. This is right before the interesting part starts - the subagent
knows that it should connect to the AgentX port and are just about to do
it. The trouble is that in the agent logs above it shows that the
subagent sent the Open-PDU so I'd like to know

a) What debug levels do you have activated on both the agent and the
   subagent?
b) Are there more logs?

/MF

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to