# # First, map the community name "public" into a "security name" # sec.name source community com2sec public default public # Second, map the security name into a group name. # groupName securityModel securityName group public v1 public group public v2c public group public usm public # Third, create a view for us to let the group have rights to: # name incl/excl subtree mask(optional) view all included .1 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access public "" any noauth exact all all all # System contact information # syslocation xxxxxxxx syscontact foo@host # disk checks # #disk / [MIN=100000] #disk /home [MIN=100000]
[root@host snmp]# /etc/init.d/snmpd restart Shutting down snmpd: [ OK ] Starting snmpd: [ OK ] [root@host snmp]#
[root@host sbin]# snmpwalk host public system system.sysDescr.0 = Linux host 2.2.16-22 #1 ....... ........ system.sysContact.0 = foo@host system.sysLocation.0 = xxxxxxxx