Net8 Getting Started 
Release 8.0.5 for Windows NT and Windows 95/98 
A64419-01
 
Library
 
Product
 
Contents
 
Index
 

Prev Next

9
Using the Oracle SNMP Agent

This chapter describes how to use the Oracle SNMP Agent.

Specific topics discussed are:

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 concerning their status and activities. Such a query is known as an SNMP poll. The items that can be so 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, independently of the framework, transmit messages called traps to well-known addresses in response to specific events. This is done to enable quick and possibly automatic reactions to the specific conditions that the traps indicate.

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 Agent

The Oracle SNMP Agent enables Oracle products to be located, identified, and monitored by any SNMP-based network management system.

Oracle SNMP Support

Oracle SNMP (Simple Network Management Protocol) 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, in much the same way and using much the same tools as traditionally have been used to monitor the activity of the network itself. It thereby integrates the tasks of database administrators and of network administrators, enabling both to use some of the same tools and to better integrate their tasks.


Additional Information:   

For a complete description of SNMP concepts and terms, see the Oracle SNMP Support Reference Guide. It provides detailed listings of what the management information contains and suggestions on how to use it effectively in developing SNMP-based management applications. 


 
 

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.0.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\NET80\DOCS directory. The Oracle SNMP agent can be installed in only one Oracle home on a system. 


 
 

Configuring Oracle SNMP Agent


Note:  

Oracle SNMP Agent is installed with the Installer. For information on how to install the product, see "Typical Installation Results" in Chapter 3, "Understanding Post Installation Tasks" 


 
 

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

To configure Oracle SNMP support on a managed node:

  1. Specify the port where master agent is listening.
  2. The port is specified in the TRANSPORT section of the MASTER.CFG file located at ORACLE_HOME\NET80\ADMIN.

    For example, add the following section to the file:

          TRANSPORT       ordinary         SNMP
               OVER UDP SOCKET
               AT PORT 161
 

Note:  

It is recommended to use port 161 for OracleSNMPPeerMasterAgent since it is the default port for SNMP communication. However, you may specify a different port available as long as the management application on your NMS can be configured to send SNMP requests to the master agent listening on this port. 


 
 
  1. 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.

  • Specify an unused port where the encapsulated agent, Microsoft SNMP Service, should be listening.
  •      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). 


     
     
    1. Edit the Encapsulator configuration file, ENCAPS.CFG, located at ORACLE_HOME\NET80\ADMIN to specify which non-PEER master agents are to be encapsulated.
    2. 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 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.2.1.77
     

    FORWARD 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 command line or from the Windows NT Control Panel's Services dialog box. Both ways are described next.

    To start the master agent from the 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.
    2. The Services window appears. Look for the OracleSNMPPeerMasterAgent 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.

    3. Select the OracleSNMPPeerMasterAgent service, and click Start.
    4. The master agent is started.

    5. In the Services window, choose the Close button.

    Starting the Encapsulator

    You may start the encapsulator from the 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 chapter. 


     
     

    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 seconds 
    -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.
    2. 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.

    3. Select the OracleSNMPPeerEncapsulator service, and click Start.
    4. The encapsulator is started.

    5. 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 file is shown in Figure 9-1:

    Figure 9-1 MASTER.CFG Configuration File

    #########################################################################
    # 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 file is shown in Figure 9-2:

    Figure 9-2 ENCAPS.CFG Configuration File

    ##########################################################################
    #
    #       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's master agent. 

     



     
     

     
    Prev
     
    Next
     
    Oracle 
    Copyright © 1998 Oracle Corporation. 
    All Rights Reserved. 
     
    Library
     
    Product
     
    Contents
     
    Index