HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)
s
snmpd.conf(4) snmpd.conf(4)
as for the get-community-name:
above.
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.
EXAMPLES
Each line in the following example snmpd.conf
file is preceded by a comment (beginning with #) that
explains the entry. Please note that this is an example. Taken as a whole in is not intended to represent a
configuration that you should use. It’s sole purpose is to show the flexibility of the configuration file.
# We’ll specify the location, contact, and sysDescr first.
location: Somewhere in the building.
contact: Jane Doe
sys-descr: HP-UX testsys1 A.09.04 E 9000/887 400509201
# This community string has the system default MIB view
# and any management station can use it.
get-community-name: globalget
# Setting a new default MIB view.
default-mibVIEW: system
# The following get and set community names will have the new
# default MIB view of system. But are restricted to use by
# systems 15.2.2.1 and 15.2.2.3. Note that the sysset community
# string is only usable from 15.2.2.1.
get-community-name: sysget IP: 15.2.2.1 15.2.2.3
set-community-name: sysset IP: 15.2.2.1
# Resetting the default MIB view back to the original
# system default.
default-mibVIEW:
# Now allow some specific machines access to limited
# portions of the MIB.
# Note use of line continuation character ’\’.
get-community-name: monitor IP: 15.3.2.1 15.4.23.1 VIEW: system \
interfaces at ip snmp
get-community-name: public IP: 0.0.0.0 VIEW: system
# Set up an administrative role and a root role.
set-community-name: admin IP: 15.3.2.1 15.4.23.1 VIEW: internet \
-private
set-community-name: root IP: 15.3.2.1 VIEW: internet
# Specify some trap dests.
trap-dest: 15.2.1.45
trap-dest: 15.3.2.1
trap-dest: 15.4.23.1
AUTHOR
snmpd.conf was developed by HP.
FUTURE DIRECTIONS
The following files are not currently used. They are place holders for the SNMPV2 configuration informa-
tion:
snmpv2.acl , snmpv2.ctx , snmpv2.party , and snmpv2.view
SEE ALSO
snmpd(1M), snmpd.ea(1M).
RFC 1155, RFC 1157, RFC 1212, RFC 1213, RFC 1231, RFC 1398
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 4−−283