How to configure snmpd as a proxy for SNMPv3 GET requests
Hansen Candrawinata <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I have an SNMPv3 agent written in Java running on *host1* with the following
security details:
context name=TEST-CONTEXT
security level=authNoPriv
user=defaultUser
password=mypassword
I can use snmpget on *host2* to send GET requests to the agent just fine:
-bash-4.1$ snmpget -v3 -u defaultUser -A "mypassword" -l authNoPriv -n
TEST-CONTEXT host1:8085 sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Windows XP x86 5.1
Now, I want to use snmpd to act as a proxy on *host1* to relay GET requests
to the agent instead of the client on *host2* send GET requests directly to
the agent.
I have read the Wiki page at
http://www.net-snmp.org/wiki/index.php/Snmpd_proxy and tried many things in
my snmpd.conf, but I still couldn't get it to work.
This is what I currently have in my snmpd.conf (only one line):
proxy -v3 -u defaultUser -A "mypassword" -l authNoPriv localhost:8085 .1.3
When using the above snmpget command to send a GET request to the proxy
(instead of to the agent directly), I get a timeout error:
-bash-4.1$ snmpget -v3 -u defaultUser -A "mypassword" -l authNoPriv -n
TEST-CONTEXT host1:161 sysDescr.0
Timeout: No Response from host1:161.
My questions:
1. What do I need to add/modify in my snmpd.conf to get the proxy
working?
2. Where do I actually need to specify the context name "TEST-CONTEXT"?
Is it when sending a GET request to the proxy such as:
snmpget -v3 -u defaultUser -A "mypassword" -l authNoPriv -n
TEST-CONTEXT host1:161 sysDescr.0
or should it only be added to the snmpd.conf such as the following
and snmpget doesn't need to specify the context name (only username and
password):
proxy -v3 -u defaultUser -A "mypassword" -l authNoPriv -n
TEST-CONTEXT localhost:8085 .1.3
3. Is it possible for snmpd to act as a proxy for an agent that uses the
default context (no specific context name given)? What should be done in
this case?
Any helps/pointers appreciated. Thanks.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
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