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.

CentOS 5.9 | net-snmp-5.3.2.2

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?

share|improve this question

1 Answer 1

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 1.3.6.1.2.1.1 ). This should work for any version of SNMP. You can enable broader access to other MIBs, restrict by IP etc with very little effort.

share|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

 
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.