-1

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!

4
  • You can set it to whatever you'd like.
    – EEAA
    Oct 4, 2013 at 4:43
  • Cross posted here two days ago: askubuntu.com/questions/352522/…
    – Wesley
    Oct 4, 2013 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. Oct 4, 2013 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, 2013 at 16:34

1 Answer 1

5

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .