Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

Thanks!

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: askubuntu.com/questions/352522/… –  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

1 Answer 1

up vote 4 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. 10.4.0.0/16). The read-only context will be restricted to the -V systemonly context which means only OIDS .1.3.6.1.2.1.1 and .1.3.6.1.2.1.25.1 will be visible.

share|improve this answer

Your Answer

 
discard

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.