net-snmp seems to ignore my AgentX subagent

Daniel Gudlat <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <413D422BB635D11197D200600814DE363CEBAE@EBP-SERVER>
Hello,

I'm at the end of my wits regarding net-snmp 5.2.1 configured as an
AgentX master and my own java-based AgentX subagent, both running under
Suse 9.3. Snmpd is configured to use port 705/udp for AgentX
communication (but the behaviour is the same when using 705/tcp), and
things seem to work just fine until it becomes time to query any value
in the subtree registered for the subagent. The answer from snmpd will
invariably be "noSuchName", without even consulting the subagent.

Here is a transcript of one such session with the -d and
-Dagentx,sess_async_send,register_mib options:

[...]
NET-SNMP version 5.2.1

Received 64 bytes from UDP: [194.175.136.235]:1170
0000: 01 01 10 00  00 00 00 00  00 00 00 00  00 00 00 01    ................
0016: 00 00 00 2C  03 00 00 00  00 00 00 00  00 00 00 20    ...,...........
0032: 64 65 2E 65  62 70 2E 69  6C 6D 2E 63  6F 6D 6D 6F    de.ebp.ilm.commo
0048: 6E 2E 73 6E  6D 70 2E 53  4E 4D 50 41  67 65 6E 74    n.snmp.SNMPAgent

agentx/master: handle pdu (req=0x1,trans=0x0,sess=0x0)
agentx/master: open 0x8120908
agentx/master: opened 0x8133288 = 5 with flags = b0
agentx/master: send response, stat 0 (req=0x1,trans=0x0,sess=0x0)
agentx_build: packet built okay

Sending 72 bytes to UDP: [194.175.136.235]:1170
0000: 01 12 10 00  00 00 00 05  00 00 00 00  00 00 00 01    ................
0016: 00 00 00 34  00 00 16 93  00 00 00 00  00 04 00 00    ...4............
0032: 00 00 00 00  00 00 00 20  64 65 2E 65  62 70 2E 69    ....... de.ebp.i
0048: 6C 6D 2E 63  6F 6D 6D 6F  6E 2E 73 6E  6D 70 2E 53    lm.common.snmp.S
0064: 4E 4D 50 41  67 65 6E 74                              NMPAgent


Received 64 bytes from UDP: [194.175.136.235]:1170
0000: 01 03 18 00  00 00 00 05  00 00 00 00  00 00 00 02    ................
0016: 00 00 00 2C  00 00 00 06  70 75 62 6C  69 63 00 00    ...,....public..
0032: 03 7F 00 00  06 04 00 00  00 00 00 01  00 00 07 7F    ................
0048: 00 00 00 01  00 00 00 05  00 00 00 03  00 00 00 01    ................

agentx/master: handle pdu (req=0x2,trans=0x0,sess=0x5)
agentx/master: in register_agentx_list
register_mib: registering "AgentX subagent 5, session 0x8120908, subsession
0x8133288" at SNMPv2-SMI::enterprises.1919.1.5.3.1
register_mib: registering "" at ccitt
register_mib: registering "" at iso
register_mib: registering "" at joint-iso-ccitt
agentx/master: registered ok
agentx/master: send response, stat 0 (req=0x2,trans=0x0,sess=0x5)
agentx_build: packet built okay

Sending 60 bytes to UDP: [194.175.136.235]:1170
0000: 01 12 10 00  00 00 00 05  00 00 00 00  00 00 00 02    ................
0016: 00 00 00 28  00 00 16 94  00 00 00 00  00 05 00 00    ...(............
0032: 06 04 00 00  00 00 00 01  00 00 07 7F  00 00 00 01    ................
0048: 00 00 00 05  00 00 00 03  00 00 00 01                 ............


Received 48 bytes from UDP: [194.175.136.235]:32876
0000: 30 2E 02 01  00 04 06 70  75 62 6C 69  63 A0 21 02    0......public.!.
0016: 04 63 02 FA  0A 02 01 00  02 01 00 30  13 30 11 06    .c.........0.0..
0032: 0D 2B 06 01  04 01 8E 7F  01 05 03 01  00 00 05 00    .+..............

Connection from UDP: [194.175.136.235]:32876
Received SNMP packet(s) from UDP: [194.175.136.235]:32876
  GET message
    -- SNMPv2-SMI::enterprises.1919.1.5.3.1.0.0

Sending 48 bytes to UDP: [194.175.136.235]:32876
0000: 30 2E 02 01  00 04 06 70  75 62 6C 69  63 A2 21 02    0......public.!.
0016: 04 63 02 FA  0A 02 01 02  02 01 01 30  13 30 11 06    .c.........0.0..
0032: 0D 2B 06 01  04 01 8E 7F  01 05 03 01  00 00 05 00    .+..............


The last exchange results from the following command:

> snmpget -v 1 -c public -m ALL -M /usr/share/snmp/mibs ilmclt02
SNMPv2-SMI::enterprises.1919.1.5.3.1.0.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: RPGTT-MIB::softwareVersion.0

This should, as I understand things, at least cause snmpd to ask my
subagent for the value, but nothing happens. When I do the same using
a different, java-based AgentX master (J.AgentX from
http://eden.dei.uc.pt/agentx/), things work fine. But this is not an
option for the final deployment of the software, where things have to
work with net-snmp.

So, what am I doing wrong?

Thanks in advance,
-- 
Daniel Gudlat
Ernst Basler + Partner GmbH
Tuchmacherstraße 47
14482 Potsdam
Tel: (0331) 74 75 9-0
Direkt: (0331) 74 75 9-71
Fax: (0331) 74 75 9-90 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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.