Re: Configuration for proxying to a subtree

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, 2005-09-14 at 14:56 +0530, Patil, Suresh (Suresh) wrote:
> If I modify the proxy command in snmpd.conf to : 
>    proxy -v 2c -c hostcommunity  remotehost1  .1.3.6.1.2.1.1 
> 
> Now if I reissue the above snmpget command, I get the sysName oid
> information from the "localhost" instead of "remotehost1". 

That's because the internal implementation of the system group
registers the MIB objects individually (rather than registering
the whole subtree in one go, as the above proxy statement does).

Add to that the fact that more specific registrations (such as
the internal 'sysName' registration) take precedence over more
general ones (such as the proxy 'system'), and that leads to
the behaviour that you're seeing.


> What I want do is to proxy all the incoming SNMPGET requests for
> the objects under the subtree 1.3.6.1.2.1.1 to "remotehost1". 

You need to disable the internal implementation of this group.
Try starting the agent using

	-I-system_mib

Dave


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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.