Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ snmp_manual_setup(7) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syslog(3)

snmpd(8)

snmp_manual_setup(7)  —  Special Files

NAME

snmp_manual_setup − Describes how to manually set up the Simple Network Management Protocol (SNMP) agent

DESCRIPTION

Digital UNIX provides two Simple Network Management Protocol (SNMP) agents:

       •The default SNMP agent provided by the snmpd daemon. 

       •The POLYCENTER Common Agent contained in the optional subset OSFCOMAGENT300. 

You can run only one SNMP agent on your system.  The default SNMP agent is started at boot time, unless the POLYCENTER Common Agent is installed and set up. 

Manually Configuring the snmpd Daemon

To manually configure the snmpd daemon, perform the following steps:

     1.Edit the /etc/snmpd.conf file. 

The /etc/snmpd.conf file defines the initial values for three MIB variables, as well as access control based on community names. 

For more information, see the snmpd(8) reference page. 

     2.Edit the /etc/rc.config file by using the /usr/sbin/rcmgr command.  The syntax for the /usr/sbin/rcmgr command is as follows:

/usr/sbin/rcmgr set variable value

To edit the /etc/rc.config file and add the required information, enter the following command:

# /usr/sbin/rcmgr set COMMON_AGENT_CONF NO

For the changes to take effect, restart the snmpd daemon using the following commands:

# /sbin/init.d/snmpd stop
# /sbin/init.d/snmpd start

Manually Setting Up the POLYCENTER Common Agent

To manually set up the POLYCENTER Common Agent, perform the following tasks:

     1.Edit the /etc/eca/snmp_pe.conf file

     2.Edit the /etc/eca/internet_mom.conf file

     3.Edit the /etc/rc.config file

     4.Restart the POLYCENTER Common Agent daemons

Editing the snmp_pe.conf File

The /etc/eca/snmp_pe.conf file is the configuration file for the snmp_pe daemon.  You must edit it to add information about the communities and trap communities you want configured on your system, and to indicate whether or not to disable authentication failure traps. 

The following default entry in the /etc/eca/snmp_pe.conf file allows any Network Management Station (NMS) to monitor your system:

communitypublic  0.0.0.0 readonly

To configure specific communities, remove this entry from your file and replace it with your own entry.  Community entries in the /etc/eca/snmp_pe.conf file have the following format:

community community_name NMS_IP_address community-type

Trap community entries have the following format:

trap trap_community_name NMS_IP_address

To disable authentication failure traps, add the following entry:

no_auth_traps

The following is a sample /etc/eca/snmp_pe.conf file with the test1, test2, and test3 communities configured:

#
# SNMP network management agent configuration database
#
community       test1  128.45.10.100 readonly
community       test1  16.45.7.110   readonly
community       test2  130.160.4.22  readonly
community       test3    0.0.0.0     readwrite
#
trap            test1  128.45.10.100

The test1 community can be monitored by the NMS whose IP address is 128.45.10.100 or by the one whose IP address is 16.45.7.110. The test2 community can be monitored by NMS 130.160.4.22 only.  The test3 community can be monitored and managed by any NMS within the test3 community.  SNMP traps are sent to the NMS at IP address 128.45.10.100 with a community name of test1.

Editing the internet_mom.conf File

The /etc/eca/internet_mom.conf file is the configuration file for the TCP/IP Management Object Module (MOM).  It contains the following information:

       •The physical location of the system on which you are configuring the SNMP Agent (the sysLocation parameter)

       •The name of the system administrator (the sysContact parameter)

       •The default link polling interval which defines the frequency (in seconds) that the TCP/IP MOM checks the state of each attached TCP/IP interface

The default /etc/eca/internet_mom.conf file contains a value of Unknown for the sysLocation and sysContact parameters, and a value of 60 seconds for the link polling interval.  Replace Unknown with information about the physical location of your system and the name of the system administrator.  To change the default link polling interval, replace 60 with any positive integer. 

The following is a sample /etc/eca/internet_mom.conf file with the sysLocation specified as Blding 3, floor 3, the sysContact specified as Helene Stern, and a default link polling interval:

#
# This is the configuration file for the TCP/IP MOM.
# A "#" in the first line indicates a comment.
# A line should not be greater than 1023 characters.
# The first line should contain information about the
# location of the system.
# The second line should contain information about the
# contact person for the system.
# The third line should contain the default Link Polling
# Interval value used internally by the Internet MOM (in seconds).
# sysLocation
Blding 3, floor 3
# sysContact
Helene Stern
# Link Polling Interval
60

Editing the rc.config File

Edit the /etc/rc.config file by using the /usr/sbin/rcmgr command.  The syntax for the /usr/sbin/rcmgr command is as follows:

/usr/sbin/rcmgr set variable value

To edit the /etc/rc.config file and add the required information, enter the following command:

# /usr/sbin/rcmgr set COMMON_AGENT_CONF YES

Restarting the POLYCENTER Common Agent Daemons

For the changes to take effect, restart the POLYCENTER Common Agent daemons using the following commands:

# /sbin/init.d/common_agent stop
# /sbin/init.d/common_agent start

Some of the variables in the IP routing table and the Exterior Gateway Protocol (EGP) group are obtained from the gated daemon, if it is running on the system.  If the gated daemon is not running prior to starting the Common Agent daemons, the default values for these variables are used. 

RELATED INFORMATION

syslog(3), snmpd(8), snmpsetup

Network Configuration

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026