I am sorry to repost, I was writing from a browser at it made a mess...
--
Hi Net-SNMP Users,
I am asking for your help to devise a solution to a problem which has
been haunting me for a couple of days.
I have been through a lot of posts in this forum, but there is no
obvious solution I can find. So I write for your assistance.
I have successfully compiled a Net-SNMP agent version 5.7.2 using
Windows SDK 7.1, then porting a subagent which does work under several
flavours of Linux. The target platform is Windows 7, 64 bits.
It happens that the subagent starts and connects via the AgentX
protocol with the master agent - I can see pings every 15 seconds and it
says it is connected (the master answers) - but I am not able to cause a
SNMP GET, SET or whatever to transfer to the subagent. The answer is
empty, like this: No such object available on this
agent at this OID.
Could it be a problem on the subagent management of loaded MIBs?
Thinking that somewhat could be wrong for the procedure I used to
compile, I downloaded and installed a precompiled Net-SNMP version
5.5.0, 64 bits, from SourceForge. The result is the same, i.e.
connection to master, but no result.
The command snmpget can obtain values such as sysUpTime.0, so I guess
it is not involving authentication (authNoPriv, SHA).
The agent is configured in snmpd.conf with:
master agentx
agentxsocket tcp:localhost:705
whereas the subagent is launched with -x tcp:localhost:705. Both snmpd
and the subagent are launched in a Windows console and I can see their
dialog; the following is a snippet from "snmpd -Le -f -d", when I am
trying to snmpget some variable:
<--- CUT --->
Received SNMP packet(s) from UDP: [127.0.0.1]:57479->[0.0.0.0]
GET message
-- SNMPv2-SMI::enterprises.33762.4.1.8.11.0
Sending 136 bytes to UDP: [127.0.0.1]:57479->[0.0.0.0]
0000: 30 81 85 02 01 03 30 0F 02 02 6D 03 02 03 00 FF
0.....0...m....ÿ
0016: E3 04 01 01 02 01 03 04 37 30 35 04 11 80 00 1F
ã.......705.....
0032: 88 80 2A 69 00 00 81 F0 96 50 00 00 00 00 02 01
..*i...ð-P......
0048: 02 02 02 01 06 04 09 61 64 6D 69 6E 5F 67 64 73 ......
admin_gd
s
0064: 04 0C 77 30 54 1E D9 BE B6 10 66 03 62 E1 04 00
..w0T.Ù¾¶.f.bá..
0080: 30 36 04 11 80 00 1F 88 80 2A 69 00 00 81 F0 96
06.......*i...ð-
0096: 50 00 00 00 00 04 00 A2 1F 02 02 20 A7 02 01 00 P......¢...
§...
0112: 02 01 00 30 13 30 11 06 0D 2B 06 01 04 01 82 87
...0.0...+....'╬
0128: 62 04 01 08 0B 00 80 00 b.......
Received 20 bytes from TCP: [127.0.0.1]:50344
0000: 01 0D 00 00 0A 00 00 00 00 00 00 00 7A 6D 00 00 ............zm..
0016: 00 00 00 00 ....
Sending 28 bytes to TCP: [127.0.0.1]:50344
0000: 01 12 00 00 0A 00 00 00 00 00 00 00 7A 6D 00 00 ............zm..
0016: 08 00 00 00 33 68 00 00 00 00 00 00 ....3h......
Received 20 bytes from TCP: [127.0.0.1]:50344
0000: 01 0D 00 00 0A 00 00 00 00 00 00 00 7F 6D 00 00 .............m..
0016: 00 00 00 00 ....
Sending 28 bytes to TCP: [127.0.0.1]:50344
0000: 01 12 00 00 0A 00 00 00 00 00 00 00 7F 6D 00 00 .............m..
0016: 08 00 00 00 10 6E 00 00 00 00 00 00 .....n......
<--- END OF CUT --->
What it follows is the same request from "snmpd -Le -f -D dump"
<--- CUT --->
dumph_recv: GET
dumpv_recv: Command GET
dumph_recv: request_id
dumpx_recv: 02 02 39 48
dumpv_recv: Integer: 14664 (0x3948)
dumph_recv: error status
dumpx_recv: 02 01 00
dumpv_recv: Integer: 0 (0x00)
dumph_recv: error index
dumpx_recv: 02 01 00
dumpv_recv: Integer: 0 (0x00)
dumph_recv: VarBindList
dumph_recv: VarBind
dumph_recv: Name
dumpx_recv: 06 0D 2B 06 01 04 01 82 87 62 04 01 08 0B 00
dumpv_recv: ObjID: SNMPv2-SMI::enterprises.33762.4.1.8.11.0
dumph_recv: Value
dumph_send: SNMPv3 Message
dumph_send: RESPONSE
dumph_send: VarBind
dumph_send: Value
dumpx_send: 80 00
dumpv_send: NULL
dumph_send: Name
dumpx_send: 06 0D 2B 06 01 04 01 82 87 62 04 01 08 0B 00
dumpv_send: ObjID: SNMPv2-SMI::enterprises.33762.4.1.8.11.0
dumph_send: error index
dumpx_send: 02 01 00
dumpv_send: Integer: 0 (0x00)
dumph_send: error status
dumpx_send: 02 01 00
dumpv_send: Integer: 0 (0x00)
dumph_send: request_id
dumpx_send: 02 02 39 48
dumpv_send: Integer: 14664 (0x3948)
dumph_send: ScopedPdu
dumph_send: contextName
dumpx_send: 04 00
dumpv_send: String: [NULL]
dumph_send: contextEngineID
dumpx_send: 04 11 80 00 1F 88 80 2A 69 00 00 81 F0 96 50 00
00 00 00
dumpv_send: String: .....*i...ð-P....
dumph_send: msgSecurityModel
dumpx_send: 02 01 03
dumpv_send: Integer: 3 (0x03)
dumph_send: msgFlags
dumpx_send: 04 01 01
dumpv_send: String: .
dumph_send: msgMaxSize
dumpx_send: 02 03 00 FF E3
dumpv_send: Integer: 65507 (0xFFE3)
dumph_send: msgID
dumpx_send: 02 02 31 A2
dumpv_send: Integer: 12706 (0x31A2)
dumph_send: SNMP Version Number
dumpx_send: 02 01 03
dumpv_send: Integer: 3 (0x03)
dumph_send: SM msgSecurityParameters
dumph_send: msgPrivacyParameters
dumpx_send: 04 00
dumpv_send: String: [NULL]
dumph_send: msgAuthenticationParameters
dumpx_send: 04 0C 00 00 00 00 00 00 00 00 00 00 00 00
dumpv_send: String: ............
dumph_send: msgUserName
dumpx_send: 04 09 61 64 6D 69 6E 5F 67 64 73
dumpv_send: String: admin_gds
dumph_send: msgAuthoritativeEngineTime
dumpx_send: 02 01 0C
dumpv_send: Integer: 12 (0x0C)
dumph_send: msgAuthoritativeEngineBoots
dumpx_send: 02 01 02
dumpv_send: Integer: 2 (0x02)
dumph_send: msgAuthoritativeEngineID
dumpx_send: 04 11 80 00 1F 88 80 2A 69 00 00 81 F0 96 50 00
00 00 00
dumpv_send: String: .....*i...ð-P....
<--- END OF CUT --->
Well, picture me rookie, but I cannot understand why the GET command
is not transferred to the subagent, obtaining a NULL response from
snmpd. In fact, I fail to see a request from snmpd directed to the
subagent when the GET is issued.
Can you help me, if you see something obviously wrong with what I
reported here?
Thank you in advance,
Antonio
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
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