snmp simple proxy broken? (using context works, but proxy without context does not work)

Tiebing Zhang <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I am trying to set up a net-snmp server on Windows using the latest version (5.4.2). The idea to have net-snmp be the main service and proxy host-specific requests to windows snmp service running on a different port (udp port 1161). The windows snmp only accepts requests from localhost.

So this is a simple proxy setup, i.e having windows SNMP service covering part of the OID tree and let net-snmp handle the rest.

According to the official documentation from snmpd.conf man page, I can just use the following snmpd.conf

------
rocommunity	public
proxy -v 1 -c public localhost:1161 .1.3.6.1.2.1
-------

And this is not working. Turning on the debug message showing the following when I try to do a get of sysDescr.0 (.1.3.6.1.2.1.1.1.0):

-----------
C:\tools\net-snmp-5.4.2>win32\bin\release\snmpd.exe -c snmpd.conf -Dproxy,vacm,result
No log handling enabled - turning on stderr logging
registered debug token proxy, 1
registered debug token vacm, 1
registered debug token result, 1
proxy_free_config: Free config
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Turning on AgentX master support.
proxy_config: entering
proxy_args: final args: 0 = snmpd-proxy
proxy_args: final args: 1 = -Cn
proxy_args: final args: 2 =
proxy_args: final args: 3 = -v
proxy_args: final args: 4 = 1
proxy_args: final args: 5 = -c
proxy_args: final args: 6 = public
proxy_args: final args: 7 = localhost:1161
proxy_args: final args: 8 = .1.3.6.1.2.1
proxy_config: parsing args: 9
proxy_config: done parsing args
proxy_init: name = .1.3.6.1.2.1
proxy_init: registering at: iso.3.6.1.2.1
NET-SNMP version 5.4.2
vacm:getView: , found
results: request results (status = 0):
results:        iso.3.6.1.2.1.1.1.0 = STRING: "Windows xp608l 5.1.2600 Service Pack 2 XP Professional x86 Family 6 Model 9 Stepping 5"

Looks like the system simply ignored the registered entry to proxy.

When I use a complex snmpd.conf with context names, everything DOES work. 

So is there a bug that has broken the simple proxy (i.e. without using context) feature?


Best regards,

Tiebing Zhang

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
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.