Hi, 

> Try running the master agent using
>
>     snmpd  -f -Le -d -Dagentx
>
> and run your subagent to register against this master.
> When the registration conversation has settled down, issue a single "snmpget" 
> command for an OID handled by your subagent.

> What is the full output from the master agent for this query?


---------------

registered debug token agentx, 1
agentx_register_app_config_handler: registering .conf token for "agentxsocket"
agentx_register_app_config_handler: registering .conf token for "agentxperms"
agentx_register_app_config_handler: registering .conf token for "agentxRetries"
agentx_register_app_config_handler: registering .conf token for "agentxTimeout"
netsnmp_assert x failed ..\..\agent\agent_registry.c:536 netsnmp_assert x 
failed ..\..\agent\agent_registry.c:536 netsnmp_assert x failed 
..\..\agent\agent_registry.c:536 netsnmp_assert x failed 
..\..\agent\agent_registry.c:536 Turning on AgentX master support.
agentx/config: port spec: TCP:localhost:705
agentx/master: initializing...
agentx/master: initializing...   DONE
NET-SNMP version 5.4.1
agentx/master: unexpected callback op 4

Received 44 bytes from TCP: [127.0.0.1]:2789
0000: 01 01 00 00  00 00 00 00  00 00 00 00  01 00 00 00    ................
0016: 18 00 00 00  05 00 00 00  01 00 00 00  00 00 00 00    ................
0032: 07 00 00 00  52 6F 63 68  61 64 65 00                 ....Rochade.

agentx/master: handle pdu (req=0x1,trans=0x0,sess=0x0)
agentx/master: open 00A527D8
agentx/master: opened 00A076C8 = 6 with flags = a0
agentx/master: send response, stat 0 (req=0x1,trans=0x0,sess=0x0)
agentx_build: packet built okay

Sending 52 bytes to TCP: [127.0.0.1]:2789
0000: 01 12 00 00  06 00 00 00  00 00 00 00  01 00 00 00    ................
0016: 20 00 00 00  09 07 00 00  00 00 00 00  04 00 00 00     ...        
...........
0032: 01 00 00 00  00 00 00 00  07 00 00 00  52 6F 63 68    ............Roch
0048: 61 64 65 00                                           ade.


Received 52 bytes from TCP: [127.0.0.1]:2789
0000: 01 03 08 00  06 00 00 00  00 00 00 00  01 00 00 00    ................
0016: 20 00 00 00  06 00 00 00  70 75 62 6C  69 63 00 00     .......public..
0032: 05 7F 00 00  03 04 00 00  01 00 00 00  CC 12 00 00    ............Ì...
0048: 01 00 00 00                                           ....

agentx/master: handle pdu (req=0x1,trans=0x0,sess=0x6)
agentx/master: in register_agentx_list
agentx/master: registered ok
agentx/master: send response, stat 0 (req=0x1,trans=0x0,sess=0x6)
agentx_build: packet built okay

Sending 48 bytes to TCP: [127.0.0.1]:2789
0000: 01 12 00 00  06 00 00 00  00 00 00 00  01 00 00 00    ................
0016: 1C 00 00 00  0B 07 00 00  00 00 00 00  05 00 00 00    ................
0032: 03 04 00 00  01 00 00 00  CC 12 00 00  01 00 00 00    ........Ì.......

-----------------
This was the registration and now follows the SNMP request
-----------------

Received 44 bytes from UDP: [127.0.0.1]:2791
0000: 30 2A 02 01  01 04 06 70  75 62 6C 69  63 A0 1D 02    0*.....public ..
0016: 02 7C F7 02  01 00 02 01  00 30 11 30  0F 06 0B 2B    .|÷......0.0...+
0032: 06 01 04 01  A5 4C 01 02  01 06 05 00                 ....¥L......

Received SNMP packet(s) from UDP: [127.0.0.1]:2791
  GET message
    -- SNMPv2-SMI::enterprises.4812.1.2.1.6

Sending 44 bytes to UDP: [127.0.0.1]:2791
0000: 30 2A 02 01  01 04 06 70  75 62 6C 69  63 A2 1D 02    0*.....public¢..
0016: 02 7C F7 02  01 00 02 01  00 30 11 30  0F 06 0B 2B    .|÷......0.0...+
0032: 06 01 04 01  A5 4C 01 02  01 06 80 00                 ....¥L......

----------------

Regards,
Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to