Oracle8i Enterprise Edition for Windows NT Getting Started
Release 8.1.5 for Windows NT

A68694-01


Library


Product


Contents


Index


PrevNext

G
SNMP Support

This appendix describes how to use Oracle SNMP Agent in Net8 for Windows NT and Windows 95/98.

Specific topics discussed:

What Is the Purpose of SNMP?

SNMP (Simple Network Management Protocol) is a standard internet protocol enabling certain nodes in a network (the management stations or managing nodes) to query other network components or applications for information about their status and activities. Such a query is known as an SNMP poll. These items that can be polled are called managed elements.

The software used by a management station is called a management framework or management station. The management station uses the SNMP protocol to request information from subagents on the nodes being managed, and those agents send back the appropriate responses. The agents can also transmit messages called traps independently from the framework to well-known addresses in response to specific events. This enables quick and sometimes automatic reactions to the specific conditions indicated by the traps.

All requests sent to a given network node are handled by the same master agent. This agent redirects the requests to the appropriate managed elements on the node, in some cases using subagents. The information that SNMP can obtain is described in a structure called a Management Information Base (MIB), which is located on the node of the managed element.

Oracle SNMP Support

Oracle SNMP support enables Oracle products such as the Oracle8 Server to be located, identified, and monitored by a management station running at one or more centrally located nodes. SNMP support allows a database to be remotely monitored by any SNMP-capable management software in a TCP/IP network. This feature enables key Oracle products running anywhere on an enterprise's network to be located, identified, and monitored by a management station running at a centrally located node. This is done in much the same way and using much the same tools as have traditionally been used to monitor the activity of the network itself. Oracle SNMP thereby integrates the tasks of database administrators and network administrators, enabling both to use some of the same tools and to better integrate their tasks.


Note:

For this release, Oracle Networking products (Oracle Listener and Oracle Names) do not support SNMP. Therefore, the corresponding MIBs are not supported, but the Oracle8 8.1.5 server supports SNMP and the database MIB is supported. 


Oracle SNMP Agent for Oracle Services

Oracle SNMP Agent allows you to configure an

OracleSNMPPeerMasterAgent

The OracleSNMPPeerMasterAgent is the process on a managed node that accepts queries from the management framework and communicates with the subagents to answer the query. It also can send SNMP traps independently in response to specific conditions. Only one master agent can exist on each managed node. Any node that does not have an agent will not be able to respond to SNMP requests.

OracleSNMPPeerEncapsulator

If you are currently using an incompatible agent, such as Microsoft SNMP, you must install the Encapsulator to encapsulate the Microsoft master agent such that all SNMP requests from a Network Management Station (NMS) are sent to OracleSNMPPeerMasterAgent, which then forwards the relevant requests to the encapsulated master agent through the encapsulator. If the encapsulator is not configured, Microsoft SNMP will not work.


Note:

MIB files for Oracle products are installed in ORACLE_HOME\NETWORK\DOCS directory. The Oracle SNMP agent can be installed in only one Oracle home on a system. 


Configuring Oracle SNMP Agent

This section briefly describes the major tasks that the network administrator must perform to enable the Oracle SNMP Agent.

Oracle SNMP Agent is installed with the Oracle Universal Installer.

To configure Oracle SNMP support on a managed node:

  1. Specify the port where master agent is listening. (For information on port numbers, see Net8 Services and Port Numbers in Appendix D, "Net8 Configuration Parameters, Services, and Port Numbers".)
    The port is specified in the TRANSPORT section of the MASTER.CFG file located at ORACLE_HOME\NETWORK\ADMIN
    For example, add the following section to the file:
    TRANSPORT ordinary SNMPOVER UDP SOCKETAT PORT 161 


    Note:  Oracle Corporation recommends the use port 161 for OracleSNMPPeerMasterAgent since it is the default port for SNMP communication. However, you may specify a different port as long as the management application on your NMS can be configured to send SNMP requests to the master agent listening on this port. 
     
  2. Specify the authentication in the COMMUNITY section of the MASTER.CFG file:
    COMMUNITY public ALLOW ALL OPERATIONS USE NO ENCRYPTION
    Continue to Step 3 if the Encapsulator is to be used.
     
  3. Specify an unused port where the encapsulated agent, Microsoft SNMP Service, should be listening.
     
  4. The port is specified in SERVICES file located at NT_HOME\SYSTEM32\DRIVERS\ETC. For example, make sure you have the following line in the file:
    snmp 1161/udp snmp


    Note: If there has already been an entry for SNMP in the file, change the port from 161 (default number) to something else that is available (1161 in this example). 
  5. Edit the Encapsulator configuration file, ENCAPS.CFG, located at ORACLE_HOME\NETWORK\ADMIN to specify which non-PEER master agents are to be encapsulated.
You must at least add an AGENT entry, including MIB subtrees manageable by NMS, for the encapsulated master agent.
 
For example, you should have a section like the following in the file:
AGENT AT PORT 1161 WITH COMMUNITY publicSUBTREES 1.3.6.1.2.1.1,1.3.6.1.2.1.2,1.3.6.1.2.1.3,1.3.6.1.2.1.4,1.3.6.1.2.1.5,1.3.6.1.2.1.6,1.3.6.1.2.1.7,1.3.6.1.2.1.8,1.3.6.1.2.1.77FORWARD ALL TRAPS;


Note: The port (1161 in this example) must match the one you specified in Step 3. 

Controlling the Master Agent and the Encapsulator

Starting the Master Agent

You may start the master agent from the MS-DOS command line or from the Windows NT Control Panel's Services dialog box. Both ways are described below.

To start the master agent from the MS-DOS command line:

Invoke the master agent as follows:

C:\> CD ORACLE_HOME\BIN
C:\> AGENT CONFIGURATION_FILE TEMPORARY_FILE

where CONFIGURATION_FILE is the name of the master configuration file and TEMPORARY_FILE is a temporary file where storage information is to be stored. The master configuration file name is defaulted to MASTER.CFG.


Note: CONFIGURATION_FILE and TEMPORARY_FILE are mandatory. 

To start the master agent:

  1. From the Control Panel window, double-click Services.
    The Services window appears. Look for the OracleSNMPPeerMasterAgent service. A blank in Status column indicates that the service has stopped.
     
     If the master is running, skip to Step 3. If the master is not running, continue to Step 2.
     
  2. Select the OracleSNMPPeerMasterAgent service, and click Start.
    The master agent starts.
     
  3. In the Services window, choose the Close button. 

Starting the Encapsulator

You may start the encapsulator from the MS-DOS command line or from the Windows NT Control Panel's Services dialog box. Both ways are described below.


Note: If the Encapsulator is to be used, the master agent must be started first. See "Starting the Master Agent" in this appendix. 

To start the encapsulator from the MS-DOS command prompt:

C:\> CD ORACLE_HOME\BIN
C:\> ENCAPS [options]

 

There are six command line options as shown below. The options are

-T PORT

Specifies the incoming trap port where the encapsulator listens to receive SNMP traps sent by encapsulated master agents.Default: no traps forwarded 

-S PORT

Specifies the port from which the encapsulator sends SNMP requests to encapsulated agents, and to which the encapsulated agents send their responses.Default: assigned by the host 

-H HOST

Specifies the master agent's host address, that is, the host where the master agent resides. This may or may not be the host of the encapsulated agent, specified in the ENCAPS.CFG file.Default: localhost 

-P PORT

Specifies the master agent's listening SMUX port, that is, the port to which the encapsulator sends its SMUX traffic.Default: 199 

-W WAIT

Specifies the SNMP response time-out (in seconds) from the encapsulated master agent.Default: 2 s 

-C FILE

Specifies the encapsulator's configuration file. This file is defaulted to ENCAPS.CFG. 

To start the encapsulator from the Control Panel Window:

  1. From the Control Panel window, double-click Services.
    The Services window appears. Look for the OracleSNMPPeerEncapsulator service. A blank in Status column indicates that the service is stopped. If the master is running, skip to Step 3. If the master is not running, continue to Step 2.
     
  2. Select the OracleSNMPPeerEncapsulator service, and click Start.
    The encapsulator is started.
     
  3. In the Services window, choose the Close button.

Understanding the MASTER.CFG File

The MASTER.CFG file controls several aspects of the OracleSNMPPeerMaster Agent, including:

A sample MASTER.CFG file is shown in the figure below:

#########################################################################
# Default Agent Configuration File
#
#       This file allows MANAGERS to be specified.  This is used to
#       specify which managers will be receiving which traps.
#
#       Also, COMMUNITYs can be specified. This allows that agent to
#       be configured such that it will only except requests from
#       certain managers and with certain community strings.
#
# Syntax
# TRANSPORT <name>  SNMP
#                         [OVER UDP SOCKET]
#                    [AT <addr>]
# COMMUNITY <communityName>
#                ALLOW <op> [,<op>]*  [OPERATIONS]
#                     [AS ENTITY <entityName>]
#                     [MEMBERS <addrs> [,<addrs>] ]
TRANSPORT    ordinary        SNMP
   OVER UDP SOCKET
   AT PORT 161
COMMUNITY    public
   ALLOW ALL OPERATIONS
   USE NO ENCRYPTION

Below is a description of the TRANSPORT and COMMUNITY parameters.

TRANSPORT 

Defines an interface over which the master agent listens for SMUX connections from subagents or SNMP requests. 

COMMUNITY 

Provides a form of authentication for access to information. 

Note: This parameter is not the same as the COMMUNITY parameter in the TNSNAMES.ORA file. 

Understanding the ENCAPS.CFG File

The ENCAPS.CFG configuration file specifies which incompatible agents are to be encapsulated and what to make visible to the Network Management Station (NMS).

A sample ENCAPS.CFG configuration file is shown in the figure below:

##########################################################################
#
#       THIS IS AN EXAMPLE OF AN ENCAPSULATOR CONFIGURATION FILE.
#
#       USING THIS FILE, ENCAPSULATOR WILL ENCAPSULATE A NON-PEER
#       MIB2 AGENT ON THE SAME PROCESSOR, THAT'S LISTENING FOR SNMP
#       REQUESTS AT PORT 1161.
#
#       IT ALLOWS THE NETWORK MANAGEMENT STATION TO VIEW THE 8 SUBTREES
#       MANAGED BY THAT AGENT, AND TO RECEIVE ALL THE TRAPS EMITTED BY
#       THAT AGENT.  ALL THE REQUESTS AND TRAPS PASS THROUGH THE PEER
#       AGENT AND ENCAPSULATOR.  AT THE SAME TIME THAT THE PEER AGENT
#       IS HANDLING ENCAPSULATOR, IT ALSO HANDLES ALL SUB-AGENTS THAT
#       WERE DEVELOPED WITH THE PEER TOOLKIT TO MANAGE OTHER MIBS.
# Syntax:
# [ 
# AGENT  [ON HOST <ip>]  [AT PORT <port>]  [WITH COMMUNITY <community>]
# SUBTREES <treelist>
# [FORWARD <traplist> TRAPS]
# ;
# ]+
#       
AGENT AT PORT 1161 WITH COMMUNITY public
SUBTREES        

1.3.6.1.2.1.1,
1.3.6.1.2.1.2,
1.3.6.1.2.1.3,
1.3.6.1.2.1.4,
1.3.6.1.2.1.5,
1.3.6.1.2.1.6,
1.3.6.1.2.1.7,
1.3.6.1.2.1.8,
1.3.6.1.4.1.77


FORWARD ALL TRAPS;

AGENT 

Defines which incompatible master agents are encapsulated. Each AGENT entry defines which port the encapsulated master agent is listening for incoming SNMP requests and which community string Oracle Peer SNMP should use on SNMP requests sent to that agent. 

SUBTREES 

Identifies which of the subtrees managed by the encapsulated agent should be made visible to the NMS by listing the object identifiers. 

FORWARD TRAPS 

Defines which traps sent by encapsulated agents on a host will be forwarded by Oracle Peer SNMP to Encapsulator master agent. 

Installing Oracle SNMP Agent with Other Network Management Systems

Users of other network management systems, such as HP OpenView, may encounter interference with the encapsulator if they are installed on the same machine after installation of Oracle SNMP Agent. This results from an HP OpenView change to the SNMP port in the SERVICES file. The port specified for SNMP in the SERVICES f file must match that specified in the ENCAPS.CFG file.

To resolve the problem, after installing HP Open View, change the SNMP port in either the SERVICES file or the ENCAPS.CFG, so that the two files agree.




Prev


Next

Oracle
Copyright © 1999 Oracle Corporation.
All Rights Reserved.


Library


Product


Contents


Index