Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I've been trying to find the SNMP community string in Ubuntu here, but haven't had much luck.

I'm using Ubuntu 12.10 and have followed the instructions here, but my /etc/snmp/snmpd.conf file has different contents than what they're talking about.

Their snmpd.conf file contains: rocommunity [community string]

Mine contains: rocommunity public default -V systemonly

That being the case, what is my community string?


share|improve this question
You can set it to whatever you'd like. – EEAA Oct 4 '13 at 4:43
Cross posted here two days ago:… – Wesley Oct 4 '13 at 4:53
@Wesley - Sorry about that. I just really needed an answer quick for work and wasn't getting any responses over on askubuntu. – Hank-Roughknuckles Oct 4 '13 at 15:49
@Hank-Roughknuckles Not getting answers on AskUbuntu is a common theme there. I'll put my answer over there as well since there's no way to mark a question / answer as a duplicate across different StackExchange sites. You can mark this as the answer both here and there to help future readers. – Wesley Oct 4 '13 at 16:34
@Wesley That's great. Thanks! – Hank-Roughknuckles Oct 7 '13 at 1:23
up vote 5 down vote accepted

rocommunity public default -V systemonly

Your read-only community string is public. default represents what traffic will be accepted, which is to say all traffic will be accepted. Change default to be a hostname or a network address and slash annotated subnet to restrict it further (e.g. The read-only context will be restricted to the -V systemonly context which means only OIDS . and . will be visible.

share|improve this answer

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.