On Thu, 2006-01-19 at 15:43 +0100, Nicolas Cogne wrote:
> On the same Linux platform, the snmpd daemon (NET-SNMP version 5.1.2)
> is running ...
> I want to forward incoming SNMP queries on port 161 from the master
> agent to my sub-agent (which is listening on port 7071).

> I've added the following line in the /etc/snmp/snmpd.conf:
>     proxy -v 1 -p 7071 -c public localhost .1.3.6.1.4.1.2390

Nope.
The 5.x line does not use "-p" for specifying different port.
You'll need to use:

        proxy -v 1 -c public  localhost:7071  .1.3.6.1.4.1.2390

(Forget about -Cn - that's not relevant here)


> If I query it directly through the snmpget command, it answers
> correctly:
>
>   > snmpget -v 1 -c public -p 7071 <IPADDRESS>
>                              .1.3.6.1.4.1.2390.1.3.1.1.0
>     enterprises.2390.1.3.1.1.0 = "5.2"

Have you tried querying the (v4) agent directly on "localhost".
What does

  snmpget -v 1 -c public localhost:7071 .1.3.6.1.4.1.2390.1.3.1.1.0

give?




> I join with this email, the /etc/snmp/snmpd.conf configuration file.

Which agent is this the config for?
The 5.1.2 "master" agent, or the 4.2.3 "subagent" ?

These two agents will need separate config files.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to