Hi all,
After reading and investigate I reached a setup that can query several
agents with different IP addresses in a private network with the same OID
through a SNMP Proxy.
I used context names with SNMPv3 and proxied with net-snmp with SNMPv2c
Here it is the setup that I accomplished, just if anyone has the same needs.
Host1 -> Compiled with NET-SNMP v3 (used to make the queries to the proxy)
Host2 -> Compiled with NET-SNMP v3 (receive the requests and proxies to the
several hosts that have invalid ip addresses)
192.168.10.200 / 192.168.10.201 -> Hosts that have SNMP enabled and provides
the info stored in OIDs
Host1 sends the several requests
(example: snmpbulkwalk -v 3 -n <context name> -l noAuthNoPriv -u <user> -a
MD5 -A <password> -c <community> <host2 ip address> <oid>)
Host2 receives the request and proxies to the invalid IP addresses.
Snmpd.conf has this lines included:
######################################
com2sec <context> <host1 ip address> <community>
view all_view included .1 80
createUser <user> MD5 "<password>"
rouser <user> noauth
group MyROGroup v2c <community>
# Proxies
proxy -Cn <context name> -v 2c -c <community> 192.168.10.200 <oid1>
proxy -Cn <context name1> -v 2c -c <community> 192.168.10.200 <oid2>
proxy -Cn <context name2> -v 2c -c <community> 192.168.10.201 <oid1>
proxy -Cn <context name3> -v 2c -c <community> 192.168.10.201 <oid2>
######################################
In that way I can query the proxy (which can contact the host on a private
network) and get the Info.
The disadvantage is that if you have 60 hosts on a private network, that you
want to query, you must have 60 proxy lines on snmpd.conf with 60 different
context names.
And of course you must execute 60 queries on host1 to the proxy. :(
Still I should investigate a way in order to make just one request on host1
to the proxy and get the info from the 60 different hosts. Still, with this
setup is already working but with a lot of payload :)
Best regards to you all and a special thank to Dave Shield and Thomas Anders
-- Nuno
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: quinta-feira, 21 de Dezembro de 2006 22:15
To: Nuno Gonçalves
Cc: [email protected]
Subject: Re: Proxy Multiple SNMP Requests
On 21/12/06, Nuno Gonçalves <[EMAIL PROTECTED]> wrote:
> Imagine that you have 1..N servers in a private network and you want to
> extract with SNMP queries the InOctets From more than one machine.
> But I want to get DATA from more machines and the OID is the same.
Then you need some way to indicate which machine you are interested in
for a given request. The standard ways to do this would be the community
string (for SNMPv1/2c) or the context (SNMPv3).
See the page that Thomas directed you to for more info.
> I was wondering if I can make a snmpbulkwalk request to the NET-SNMP
> server that proxies the request to the several machines behind it but with
> the same OID.
No - that's not how BulkWalk works.
The GetBulk request will retrieve several OID varbinds from the *same*
destination system - equivalent to a series of individual GetNext requests.
It's concerned with improving the efficiency of retrieving information
serially,
not in parallel across different hosts.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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