Oracle Enterprise Manager Installation Guide | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
If you are installing the agent on UNIX, see Configuring an Intelligent Agent on a UNIX platform. If you are installing the agent on Windows NT, see Configuring an Intelligent Agent on Windows NT on page 2-4.
Configuring an Intelligent Agent on a UNIX platform
On Unix systems, the agent is normally installed by the root.sh script as a setuid program, a common Unix practice that allows it to run with root permissions while being invoked by users other than root. The agent must be installed as setuid root so that the agent can run jobs as the users whose name and password are given in the Preferred Credentials for that host. If the agent does not have root permission, all Enterprise Manager jobs are run with the permissions of the user who started the agent.
Controlling Operations of the UNIX Agent
To start the agent on a Unix machine, enter the following command at the UNIX operating system prompt: lsnrctl dbsnmp_start
The following warning message might display:NMS-00001: dbsnmp unable to connect to SNMP master agent
This warning is only a problem if you intend to use the agent with an SNMP master agent, for example, if you want to monitor Oracle through HP OpenView. The agent is capable of running without SNMP. ps -aux | grep dbsnmp
The output from the ps command should contain two lines similar to the following:.../bin/dbsnmp root 18967 18456 1
Note:
For additional information or restrictions for your platform, see the Intelligent Agent README. Configuring an Intelligent Agent on Windows NT
At startup, the agent discovers new services on the machine where it is installed and creates its configuration files, snmp_ro.ora and snmp_rw.ora. If you want to discover a database, a tnsnames.ora file must exist on the node where the 7.3.3 Intelligent Agent is installed. The tnsnames.ora file must contain an entry for the database you want to discover. This file should be located in the $ORACLE_HOME\network\admin directory.
Creating a Windows NT User Account for Running Jobs
On the Windows NT machine where the agent is installed, you need to create an NT user account with the name and password that is used to send jobs from the Console.
You can also start or stop the Agent from the DOS command prompt. To start the agent from the DOS prompt, enter the following command:
net start oracleagentTo stop the agent from the DOS prompt, enter the following command:
net stop oracleagentTo verify that the agent is running, enter the following command at the DOS prompt:
lsnrctl dbsnmp_status
Before starting the agent, the snmp.ora configuration file must be set up for your system. If SQL*Net version 2.3 has been installed and configured with the SQL*Net configuration tool, Network Manager 3.1, the file has already been configured for your system.
Refer to Appendix A, Configuration Files for examples of the configuration files that are needed.
Additional Information:
For more information on the snmp.ora configuration file, see the Oracle Network Manager Administrator's Guide, Oracle SNMP Support Reference Guide, and Oracle Network Products Messages Manual. Roles and Users Required by the Agent
When an Oracle database is installed, the catsnmp.sql script is automatically run to create the necessary dbsnmp user account and the SNMPAGENT role for the Intelligent Agent. The agent uses the user/password provided by the Enterprise Manager Console to run all the event and job scripts. Each user wishing to monitor events on the agent node should be granted the SNMPAGENT role, otherwise the event registration is likely to fail. catsnmp.sql is located in the \ORACLE_HOME\rdbms\admin directory on Windows systems. The catsnmp.sql script is run by catalog.sql.SELECT * FROM dba_roles;
If the SNMPAGENT role does not appear, run the catsnmp.sql script on the database. To run the script, you must log in as SYS.
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |