J.AgentX subagent

"Baltazar Francois" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I am having trouble to set up an agentX with the J.AgentX implementation.
This implementation use the udp protocol, so I set the snmpd.conf with this parameters : 

master  agentx
agentXSocket udp:705

The registering of the subagent is OK as show this output log : 

Received 52 bytes from UDP: [192.168.10.83]:4477
0000: 01 01 10 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
0016: 00 00 00 20  03 00 00 00  00 00 00 00  00 00 00 12    ... ............
0032: 4D 79 20 53  69 6D 70 6C  65 20 53 75  62 41 67 65    My Simple SubAge
0048: 6E 74 00 00                                           nt..

agentx/master: handle pdu (req=0x0,trans=0x0,sess=0x0)
agentx/master: open 0x8d89540
agentx/master: opened 0x8d8a078 = 6 with flags = b0
agentx/master: send response, stat 0 (req=0x0,trans=0x0,sess=0x0)
agentx_build: packet built okay

Sending 60 bytes to UDP: [192.168.10.83]:4477
0000: 01 12 10 00  00 00 00 06  00 00 00 00  00 00 00 00    ................
0016: 00 00 00 28  00 00 04 E9  00 00 00 00  00 04 00 00    ...(............
0032: 00 00 00 00  00 00 00 12  4D 79 20 53  69 6D 70 6C    ........My Simpl
0048: 65 20 53 75  62 41 67 65  6E 74 00 00                 e SubAgent..

agentx/master: FAILED 0 0

Received 44 bytes from UDP: [192.168.10.83]:4477
0000: 01 03 10 00  00 00 00 06  00 00 00 00  00 00 00 01    ................
0016: 00 00 00 18  03 7F 00 00  04 04 00 00  00 00 00 01    ................
0032: 00 00 05 33  00 00 00 0B  00 00 00 01                 ...3........

agentx/master: handle pdu (req=0x1,trans=0x0,sess=0x6)
agentx/master: in register_agentx_list
register_mib: registering "AgentX subagent 6, session 0x8d89540, subsession 0x8d8a078" at SNMPv2-SMI::enterprises.1331.11.1 with context "(null)"
agentx/master: registered ok
agentx/master: send response, stat 0 (req=0x1,trans=0x0,sess=0x6)
agentx_build: packet built okay

But when I'm requesting an OID value the agent seem to don´t know where to send the request : 

Received 46 bytes from UDP: [192.168.10.83]:4479
0000: 30 2C 02 01  00 04 06 70  75 62 6C 69  63 A0 1F 02    0,.....public...
0016: 04 46 C0 AA  78 02 01 00  02 01 00 30  11 30 0F 06    .F..x......0.0..
0032: 0B 2B 06 01  04 01 8A 33  0B 01 01 00  05 00          .+.....3......

Received SNMP packet(s) from UDP: [192.168.10.83]:4479
  GET message
    -- SNMPv2-SMI::enterprises.1331.11.1.1.0
agentx/master: agentx master handler starting, mode = 0xa0
agentx/master: request for variable (SNMPv2-SMI::enterprises.1331.11.1.1.0)
agentx: sending pdu (req=0x3,trans=0x2,sess=0x6)
agentx_build: packet built okay

Sending 52 bytes to UDP: unknown
0000: 01 05 10 00  00 00 00 06  00 00 00 02  00 00 00 03    ................
0016: 00 00 00 20  06 04 00 00  00 00 00 01  00 00 05 33    ... ...........3
0032: 00 00 00 0B  00 00 00 01  00 00 00 01  00 00 00 00    ................
0048: 00 00 00 00                                           ....


What I'm doing wrong?

Regards.
François BALTAZAR

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.