How to find SNMP community string?
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.
Related videos on Youtube
Hank-Roughknuckles
Updated on September 18, 2022Comments
-
Hank-Roughknuckles over 1 year
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!
-
EEAA over 10 yearsYou can set it to whatever you'd like.
-
Wesley over 10 yearsCross posted here two days ago: askubuntu.com/questions/352522/…
-
Hank-Roughknuckles over 10 years@Wesley - Sorry about that. I just really needed an answer quick for work and wasn't getting any responses over on askubuntu.
-
Wesley over 10 years@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.
-