Hi,
I was to setup a snmp proxy which converts v3 to v2 and viceversa without
using context name.
I have a Manager, ProxyHost, Host1 and Host2. Manager and ProxyHost support
v3 and Host1 and
Host2 supports v2.
Manager
|
|
V
ProxyHost ---------
| |
| |
V V
Host1 Host2
The snmpd.conf at ProxyHost as follows:
# sec.name source community
com2sec myuser default public
# groupName securityModel securityName
group myusergroup usm myuser
# name incl/excl subtree mask(optional)
view systemview included .1
# group context sec.model sec.level prefix read write
notify
access myusergroup "" any noauth prefix systemview none none
#Proxy
proxy -v 2c -c Host1community Host1 .1.3.6.1.2.1.1.3 #(system.sysUpTime.0)
To get the uptime of Host1.
proxy -v 2c -c Host2community Host2 .1.3.6.1.2.1.1.5 #(system.sysName.0) To
get the system name of Host2.
and when I execute snmpget command as follows at Manager,
snmpget -v 3 -u myuser -A mypassword -a MD5 -l noAuthNoPriv ProxyHost
system.sysName.0
When I execute this command, I am suppose to get the system Name of Host2.
But I am getting the
system name of ProxyHost.
Please help me if have any problem with the configuration.
My main objective is to proxy according to the view specified at proxy
settings
without using the context name.
Thanks & Regards,
Suresh P
----------------------------------------------------------------------------
------------------------------------
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 06, 2005 1:35 PM
To: Ravi, Rajagopal Shanmugam (Rajagopal Shanmugam)** CTR **
Cc: [email protected]
Subject: Re: proxy with a defined set of OIDs?
On Tue, 2005-09-06 at 12:06 +0530, Ravi, Rajagopal Shanmugam (Rajagopal
Shanmugam)** CTR ** wrote:
> But is it possible to proxy the incoming request to different hosts
> based on a defined set of OID values?
Yes.
That's how the proxy mechanism has always worked.
The context-based selection is a more recent addition.
Please see the 'snmpd.conf(5)' man page, under PROXY SUPPORT
> Here the request should be proxied to Host1 if the incoming request
> has an OID from the varbind list between .1.3.6.1.2.1.1.1
> and .1.3.6.1.2.1.1.2
> The request should be proxied to Host2 if the incoming request has an
> OID from the varbind list between .1.3.6.1.2.1.1.3
> and .1.3.6.1.2.1.1.1.5
Note that the proxy configuration works on the idea of subtrees,
rather than OID ranges. So the configuration for Host 2 would need
*two* proxy lines - one to forward requests for .1.3.6.1.2.1.1.3.*
and another to forward requests for .1.3.6.1.2.1.1.4.*
Dave
----------------------------------------------------------------------------
------------------------------------
Hi,
I know it is possible to proxy an incoming request using context name. But
is it possible to proxy the incoming request to different hosts based on a
defined set of OID values? i.e
Manager
|
|
V
Proxy ---------
| |
| |
V V
Host1 Host2
For Example
Here the request should be proxied to Host1 if the incoming request has an
OID from the varbind list between .1.3.6.1.2.1.1.1 and .1.3.6.1.2.1.1.2
The request should be proxied to Host2 if the incoming request has an OID
from the varbind list between .1.3.6.1.2.1.1.3 and .1.3.6.1.2.1.1.1.5
Thanks & Regards,
Ravi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders