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
\windows\system32\drivers\etc\services
file and set the following entries:snmp 1161/udp
snmp-trap 1162/udp
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
ORACLE_HOME\bin\agent.exe
).lsnrctl status
lsnrctl stop
lsnrctl start listener
Configuring Oracle SNMP Agent for UNIX
ORACLE_HOME/bin/dbsnmp
.ps -ef | grep snmp
/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
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
cd $ORACLE_HOME/network/snmp/peer
start_peer -a
agentctl start agent
lsnrctl status
lsnrctl stop
lsnrctl start listener