Rustagi, Sandeep (Sandeep) wrote:
Hi All,

Still not able to resove. Is there any examples available somewhere which I
can see how to use proxy token words?

They are full SNMP subagents in their own right. If i do snmpget/snmpwalk
directly
they give the response.

There are examples in the snmpd.conf man page.

If the remote agent is at 192.168.80.5:8005, and you want to access everything below .1.3.6.1.2.1.1 (SNMPv2-MIB::system) by querying the local agent at .1.3.6.1.2.1.1.15, you would add the following to the local snmpd.conf file (all on one line):

 proxy  -v 1 -c public 192.168.80.5:8005 .1.3.6.1.2.1.1.15
 .1.3.6.1.2.1.1

With the above configuration, the following should give the exact same results when run on the local system:

 snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.15

 snmpwalk -v 1 -c public 192.168.80.5:8005 1.3.6.1.2.1.1

If you only specify ONE OID such as:

 proxy  -v 1 -c public 192.168.80.5:8005 .1.3.6.1.2.1.1.15

and then use:

 snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.15

it will query the REMOTE host's .1.3.6.1.2.1.1.15 which will probably return nothing if you are using a stock agent on the remote host.

Alex


------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ 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