Hi Net-SNMP Users,I am asking for your help to devise a solution to a problem
which has beenhaunting me for a couple of days.
I have been through a lot of posts in this forum, but there is no
obvioussolution 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 targetplatform is Windows 7, 64 bits.
It happens that the subagent starts and connects via the AgentX protocol with
the masteragent - I can see pings every 15 seconds and it says it is connected
(the masteranswers) - but I am not able to cause a SNMP GET, SET or whatever to
transferto the subagent. The answer is empty, like this: No such object
available on thisagent 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 isnot
involving authentication (authNoPriv, SHA).
The agent is configured in snmpd.conf with:
master agentxagentxsocket tcp:localhost:705
whereas the subagent is launched with -x tcp:localhost:705. Both snmpd and
thesubagent are launched in a Windows console and I can see their dialog;
thefollowing is a snippet from "snmpd -Le -f -d", when I am trying to
snmpgetsome 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_gds0064: 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]:503440000: 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]:503440000: 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]:503440000: 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]:503440000: 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: GETdumpv_recv: Command GETdumph_recv:
request_iddumpx_recv: 02 02 39 48dumpv_recv: Integer: 14664
(0x3948)dumph_recv: error statusdumpx_recv: 02 01
00dumpv_recv: Integer: 0 (0x00)dumph_recv: error
indexdumpx_recv: 02 01 00dumpv_recv: Integer: 0
(0x00)dumph_recv: VarBindListdumph_recv: VarBinddumph_recv:
Namedumpx_recv: 06 0D 2B 06 01 04 01 82 87 62 04 01 08
0B 00dumpv_recv: ObjID:
SNMPv2-SMI::enterprises.33762.4.1.8.11.0dumph_recv:
Valuedumph_send: SNMPv3 Messagedumph_send: RESPONSEdumph_send:
VarBinddumph_send: Valuedumpx_send: 80 00dumpv_send:
NULLdumph_send: Namedumpx_send: 06 0D 2B 06 01 04 01 82 87 62
04 01 08 0B 00dumpv_send: ObjID:
SNMPv2-SMI::enterprises.33762.4.1.8.11.0dumph_send: error indexdumpx_send:
02 01 00dumpv_send: Integer: 0 (0x00)dumph_send: error
statusdumpx_send: 02 01 00dumpv_send: Integer: 0
(0x00)dumph_send: request_iddumpx_send: 02 02 39 48dumpv_send:
Integer: 14664 (0x3948)dumph_send: ScopedPdudumph_send:
contextNamedumpx_send: 04 00dumpv_send: String:
[NULL]dumph_send: contextEngineIDdumpx_send: 04 11 80 00 1F 88 80
2A 69 00 00 81 F0 96 50 0000 00 00dumpv_send: String:
.....*i...ð-P....dumph_send: msgSecurityModeldumpx_send: 02 01
03dumpv_send: Integer: 3 (0x03)dumph_send: msgFlagsdumpx_send:
04 01 01dumpv_send: String: .dumph_send: msgMaxSizedumpx_send:
02 03 00 FF E3dumpv_send: Integer: 65507 (0xFFE3)dumph_send:
msgIDdumpx_send: 02 02 31 A2dumpv_send: Integer: 12706
(0x31A2)dumph_send: SNMP Version Numberdumpx_send: 02 01 03dumpv_send:
Integer: 3 (0x03)dumph_send: SM msgSecurityParametersdumph_send:
msgPrivacyParametersdumpx_send: 04 00dumpv_send: String:
[NULL]dumph_send: msgAuthenticationParametersdumpx_send: 04 0C 00 00
00 00 00 00 00 00 00 00 00 00dumpv_send: String:
............dumph_send: msgUserNamedumpx_send: 04 09 61 64 6D 69 6E 5F
67 64 73dumpv_send: String: admin_gdsdumph_send:
msgAuthoritativeEngineTimedumpx_send: 02 01 0Cdumpv_send: Integer:
12 (0x0C)dumph_send: msgAuthoritativeEngineBootsdumpx_send: 02 01
02dumpv_send: Integer: 2 (0x02)dumph_send:
msgAuthoritativeEngineIDdumpx_send: 04 11 80 00 1F 88 80 2A 69 00 00 81 F0
96 50 0000 00 00dumpv_send: String: .....*i...ð-P....
<--- END OF CUT --->
Well, picture me rookie, but I cannot understand why the GET command is not
transferredto the subagent, obtaining a NULL response from snmpd. In fact, I
fail to see a requestfrom 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