HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)
s
snmpd.conf(4) snmpd.conf(4)
NAME
snmpd.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(1M)
(included with HP-UX) or the snmpd.ea(1M) (purchased with the OpenView product). The SNMP agent
operates correctly if no values are configured in
/etc/SnmpAgent.d/snmpd.conf
.
/etc/SnmpAgent.d/snmpd.conf
contains the following configurable values:
get-community-name: name IP: addr VIEW: mib-view
Specifies a community name for the agent. The agent responds to SNMP GetRe-
quests with this community name. You can configure the agent to respond to
more than one get community name. If a community name is not entered, the
agent responds to SNMP GetRequests using any community name.
There are two, optional, fields that may be associated with a community name.
They are IP: and VIEW:. These fields allow you to associate manager IP
addresses and MIB views with community names.
Following IP: is a list of IP address in dot notation. The list MUST be space
separated. Only SNMP Requests with one of these IP addresses, as the source
address, will be accepted. Any source IP address will be allowed if; IP: does not
appear on the line, no IP address appears after IP:, or an address of 0.0.0.0 is
placed after IP:. No wildcarding is supported.
The VIEW: is used to associate a MIB view with the community string. Placing
a name or OID from some portion of the MIB tree will cause that object plus all
portions of the tree below that object to be included in the view. Several names
may be placed on the line after VIEW: and MUST be space separated. If the ’-’
character proceeds an object name then it is excluded from the NIB view. For
example: VIEW: internet -mib-2 would allow access to all of internet
except for mib-2. The default mib view will be assigned if VIEW: does not appear
on the line or no MIB view appears after VIEW:. It is important to note that any
MIB object(s) specified after VIEW: override the default MIB view and are
not used in conjunction with it. The default MIB view is specified below under
default-mibVIEW: and is configurable.
Lines may be continued using the ‘‘\’’ character.
set-community-name: name IP: addr VIEW: mib-view
Specifies community name for the agent. The agent responds to the SNMP
SetRequests with this community name. You can configure the agent to respond
to more than one set community name. If a community name is not entered, the
agent returns an error. The IP: and VIEW: fields for set community names are
the same as for get community names. See above.
trap-dest: Specifies a system name where traps are sent (that is, the trap destination).
This system name is usually the host name or 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 information on how to contact
this person.
sys-descr: Specifies the system description. This value becomes the system.sysDescr MIB
object.
default-mibVIEW:
Specifies the new default MIB view. By default, the MIB view of internet is
set by the system. The default MIB view may be changed several times and any-
where in the configuration file. This new MIB view is "in effect" from the point
in the file that it is defined until another default-mibVIEW: is encoun-
tered. To reset the system supplied MIB view, enter default-mibVIEW:
with no MIB objects after it. The MIB view values are specified in the same way
Section 4−−282 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005