snmpd.conf(4)snmpd.conf(4)NAMEsnmpd.conf — - configuration file for the SNMP agent
DESCRIPTION
When invoked, the SNMP agent reads its configuration information from
the /etc/SnmpAgent.d/snmpd.conf configuration file. The SNMP agent is
either the snmpd (included with HP-UX) or the snmpd.ea (purchased with
the HP OpenView product). The SNMP agent will not be able to reply if
no values are configured in /etc/SnmpAgent.d/snmpd.conf i.e. /etc/Snmp
Agent.d/snmpd.conf is empty.
Parameter
The /etc/SnmpAgent.d/snmpd.conf file contains the following config‐
urable values:
get-community-name
Specifies community name for the agent. The agent responds to
SNMP GetRequests with this community name. You can configure
the agent to respond to more than one get community name. If
a commu nity name is not entered, the agent does not respond
to SNMP GetRequests.
set-community-name
Specifies community name for the agent. The agent responds to
the SNMP SetRequests and SNMP GetRequests with this community
name. You can configure the agent to respond to more than one
set com munity name. If a set community name is not entered,
the agent will not respond to SetRequests.
trap-dest Specifies a system where traps are sent (that is, the trap
destination). This system is usually the IP address of the
manager. If traps should be sent to multiple systems then a
trap-dest line should be included for each system.
location Specifies the physical location of the agent.
contact Specifies the person responsible for this agent and informa‐
tion on how to contact this person.
SNMP v1 and v2c configuration
The above parameters can be used to configure v1 and v2c. Please see
snmpd.cnf(4) for some more optional parameters which can be used to
configure v1 and v2c.
SNMPv3 configuration
For details about configuring SNMPv3, please see snmpd.cnf(4).
EXAMPLES
Separate the fields by blanks or tabs. A # character indicates the
beginning of a comment; characters from the # character to the end of
the line are ignored.
Each line in the following example snmpd.conf file is preceded by a
comment (beginning with #) that explains the entry.
1.Restrict the agent to responding only to
SNMP GetRequests that have the
community name "secret".
# Restrict the agent to responding only to
# SNMP GetRequests that have the
# community name "secret"
get-community-name: secret
2.Allow the agent to respond to SNMP Get and SetRequests with
either the community name "private" or "secret".
# Allow the agent to respond to SNMP Get and SetRequests with
# either the community name "private" or "secret"
set-community-name: private
set-community-name: secret
3.Allow the agent to respond to SNMP Get and SetRequests
that have the community name "private".
# Allow the agent to respond to SNMP Get and SetRequests
# that have the community name "private"
set-community-name: private
4.Send traps to system 15.2.113.233.
# Send traps to system 15.2.113.233
trap-dest: 15.2.113.233
5.Specify the agent is located on the first floor
near the men's room.
# Specify the agent is located on the first floor
# near the men's room
location: 1st Floor near Mens Room
6.Specify Bob Jones is responsible for this agent
and his phone number is 555-2000.
# Specify Bob Jones is responsible for this agent
# and his phone number is 555-2000
contact: Bob Jones (Phone 555-2000)
AUTHORsnmpd.conf was developed by Hewlett-Packard Co.
FILES
/etc/SnmpAgent.d/snmpd.conf /etc/srconf/agt/snmpd.cnf
SEE ALSOsnmpd(1M),snmpd.cnf(4),snmpd.ea(1M).
RFC 1155, RFC 1157, RFC 1212, RFC 1213, RFC 1231, RFC 1398
snmpd.conf(4)