CentOS 5.9 | net-snmp-

I'm running netsnmp on a CentOS 5.9 box and it's unclear to me from the config on whether or not it support SNMP v2 and v1.

I've always used SNMP v3 and /etc/snmp/snmpd.conf is very barebones:

syslocation  "in the box"
syscontact  bob@foo.com
rouser  fooadmin priv

Since there aren't any other users or communities specified, is it reasonable to assume that SNMP v2 and v1 won't work out of the box?


The snmpd.conf file should contain a few other parameters by default, among them is the community "public" which has access to the system info MIB (OID ). This should work for any version of SNMP. You can enable broader access to other MIBs, restrict by IP etc with very little effort.

| improve this answer | |
  • Thanks. So am I correct in assuming that if the community parameter isn't specified, snmp v1 and v2 won't work? – Mike B Sep 18 '13 at 6:11
  • That's correct, with no community string any v1 or v2 request should fail – Feussy Sep 18 '13 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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