Next Topic

Previous Topic

Book Contents

Oracle SNMP Agent

Installing the Agent

The SNMP Intelligent Agent is shipped with the database and can be installed using the Oracle Universal Installer from the Enterprise Manager tree list or the database server tree list (check to see first if the agent is already installed by looking in the Windows "services" list. It will be listed in the Windows Services panel as Oracle <ORACLE_HOME> Agent.

Configuring the Agent

Oracle has a master SNMP agent that runs on port 161, and the Windows SNMP agent must be configured to run as the sub-agent (on port 1161). Note however, that on a Windows platform, you can monitor all the Windows metrics using WMI instead of SNMP so you do not need to install the Windows SNMP agent.

Configuring Oracle SNMP Agent for Windows

  1. Edit your \windows\system32\drivers\etc\services file and set the following entries:

    snmp 1161/udp

    snmp-trap 1162/udp

  2. Edit ORACLE_HOME\network\admin\MASTER.CFG and add the following lines:

    TRANSPORT ordinary SNMP

    OVER UDP SOCKET

    AT PORT 1161

    COMMUNITY public

    ALLOW ALL OPERATIONS

    USE NO ENCRYPTION

  3. Start the Peer SNMP Master Agent from the Windows Services Panel (the binary is ORACLE_HOME\bin\agent.exe).
  4. Then start the Oracle sub-agent (the Intelligent Agent) which automatically registers itself with the master agent. To start the sub-agent, click on the Windows Control Panel > Services and start the Oracle Agent service (set to automatically start by right clicking on the service name).
  5. To verify that the agent is running, look for the dbsnmp process in the Windows Task manager.
  6. Check the listener status. If it shows off for SNMP, then you have to restart the listener using the following commands:

    lsnrctl status

    lsnrctl stop

    lsnrctl start listener

  7. If you wish to run the Windows SNMP agent also (not needed for Traverse installations), then you also will need to run the Oracle SNMP Encapsulator service from the Windows Services panel.

Configuring Oracle SNMP Agent for UNIX

  1. Install the Oracle SNMP Intelligent Agent from the Universal Installer. You will be required to run the root.sh script as superuser as part of this install, which installs ORACLE_HOME/bin/dbsnmp.
  2. Stop any existing SNMP processes:

    ps -ef | grep snmp

  3. Edit the /etc/services file and set the SNMP port to be 1161 for the native UNIX agent. Change the line to the following:

    snmp 1161/udp

    snmp-trap 1162/udp

  4. Edit ORACLE_HOME/network/peer/config.master and add the following lines:

    TRANSPORT ordinary SNMP

    OVER UDP SOCKET

    AT PORT 1161

    COMMUNITY public

    ALLOW ALL OPERATIONS

    USE NO ENCRYPTION

  5. Start the Peer SNMP Master Agent:

    cd $ORACLE_HOME/network/snmp/peer

    start_peer -a

  6. Start the Oracle sub-agent (dbsnmp):

    agentctl start agent

  7. Check the listener status. If it shows off for SNMP, then you have to restart the listener using the following commands:

    lsnrctl status

    lsnrctl stop

    lsnrctl start listener