snmpd.conf(4) — File Formats
Digital
NAME
snmpd.conf − Simple Network Management Protocol (SNMP) daemon configuration file
DESCRIPTION
The /etc/netman/snmpd.conf file is a configuration file that contains the SNMP community information. The SNMP community name represents the specified access privileges to the supported MIB variables. The /etc/netman/snmpd.conf file is created for you when you run the snmpsetup command, or you can create it manually. The system or network manager is usually responsible for maintaining it.
The following is a description of the contents of the /etc/netman/snmpd.conf file:
community name IP-address type
The community variable describes an SNMP community for the agent.
The name parameter is a string that describes the name of the community.
The IP-address parameter is the Internet Protocol (IP) address for the server in dotted decimal notation. Only SNMP packets coming from that address are accepted. If you specify 0.0.0.0 in the address field, the SNMP agent honors the request from any Network Management Station (NMS) having the name community.
The type parameter is restricted to read-only. This permits the monitoring of variables.
The snmpsetup command prompts for the default community public with an address of 0.0.0.0. If you do not specify any community, snmpd will not respond to network management requests from anyone.
To limit the use of a community to a finite group of machines, specify another community clause with the same community parameter name and a different address.
Invalid uses of communities are logged using syslog.
EXAMPLES
The following is an example of an extensive snmpd.conf file:
#
# SNMP network management agent configuration database
#
#
# Describe who can use your SNMP daemon by defining "communities".
# USAGE:
#
# community <name><IP address><type>
#
# This is a limited-use community; a finite number of
# hosts can use it.
#
# Queries are only allowed from the community "test1".
#
community test1128.45.10.100 read-only
community test1128.45.10.101 read-only
In this example, note the following:
• Community test1 is the only community with access to the MIB variables
• Community test1 can monitor the MIB variables from either 128.45.10.100 or 128.45.10.101
The snmpd.conf file contains the default community public:
#
# SNMP network management agent configuration database
#
community public 0.0.0.0 read-only
This commmunity allows access from all NMS in the public community.
RELATED INFORMATION
snmpd(8), snmpsetup(8)
RFC 1156—Management Information Base for Network Management of TCP/IP- based Internets
RFC 1157—A Simple Network Management Protocol
Guide to Network Setup