Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using linux (Ubuntu) with net-snmp.

I want to allow any remote client to execute snmpget. The remote client not have to be from the same subnet , so i cannot do this by define subnet.

Now i add line in snmpd.conf for each ip. like this:

rwcommunity community
rwcommunity community

is there a way to do this for all ips? In addtional try to use this :

#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
#agentAddress udp:161,udp6:[::1]:161

didn't worked , so i need to wrote the listening ip.

thank you!!!!

share|improve this question
up vote 2 down vote accepted
rocommunity public

But please rethink this. Letting anybody in the world get your SNMP data is generally a bad idea.

share|improve this answer
It local netwrok.can you please help on how to listen for connections on all interfaces it dosnt work for me. (without #) – Avihai Marchiano Sep 12 '12 at 13:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.