Hi Gurus,

Basically my project requirement is that there will be 2 net-snmp agents would be running in the same linux box (say 192.168.1.100). One will be listening on port number say 5050 and the other with the default port number (i.e 161). Now the agent with port number 161 should act as the proxy for the agent with the port number 5050. Any snmpget request to this linux box, the response should be from the agent with port number 5050 through the proxy agent.
What i tried is as follows.
 
1. I started the first net-snmp agent with the command "service snmpd start" (default agent) So the configuration file is default one (i.e from /etc/snmp/snmpd.conf)
 
2. I started the second agent with the command
"/usr/sbin/snmpd -c <home directory>/user/snmp.conf udp:5050"
 
3. In the /etc/snmp/snmpd.conf file I introduced a line like "proxy -v 3 -u <username> -A <password> -l authNoPriv -p 5050 192.168.1.100 .1" for the proxy configuration.
 
4. I restarted both the agents.
 
5. When I quered  192.168.1.100 with snmpget from a second linux box which is on the same LAN, like "snmpget -v 3 -u <username> -l authNoPriv -a MD5 -A <password> 192.1.100.1 sysUpTime.0", it still gives me the response from the default agent rather than from the agent with port number 5050. Basically the proxy fails.
 
Can somebody help me in solving this.
 
Thanks in advance.
 
Regards,
Rav.


Start your day with Yahoo! - make it your home page

Reply via email to