Oracle® Enterprise Manager Advanced Configuration 10g Release 1 (10.1) Part Number B12013-01 |
|
|
View PDF |
This chapter describes how to reconfigure Enterprise Manager if you later revisit your configuration decisions after you have installed the software.
This chapter contains the following sections:
The following sections describe reconfiguration and tuning changes you can make to the Management Agent after you have installed Enterprise Manager. Refer to the following sections for more information:
Configuring the Management Agent to Use a New Management Service
Controlling the Amount of Disk Space Used by the Management Agent
When you install the Management Agent on a managed host, you associate the Agent with a particular Management Service. The Management Agent uses the Management Service URL address and port to identify and communicate with the Management Service.
After you install the Management Agent, you can later reconfigure the Management Agent so it is associated with a different Management Service. Reconfiguring the Agent requires no changes to the Management Service. The reconfigured Agent will begin communicating with the new Management Service after the Agent is restarted.
To associate the Management Agent with a new Management Service after you have installed the Agent:
Stop the Management Agent.
Locate the emd.properties
file in the Agent home directory:
AGENT_HOME/sysman/config/emd.properties
Use a text editor to open the file and locate the REPOSITORY_URL property.
Modify the value for the REPOSITORY_URL
property so it references the new Management Service.
For example:
REPOSITORY_URL=http://mgmthost2.acme.com:4889/em/upload
Modify the value for the emdWalletSrcUrl
and emdWalletDest
properties so they reference the new Management Service and the new Oracle home path, respectively:
For example, if the new Management Service is on a host called mgmthost2.acme.com
and the new Oracle home is /private/oracle/em10g
, modify the properties as follows:
emdWalletSrcUrl=http://mgmthost2.acme.com:4889/em/wallets/emd emdWalletDest=/private/oracle/em10g/sysman/config/server
Save your changes and close the emd.properties
file.
Delete all the files in the following directories:
AGENT_HOME/sysman/emd/upload/ AGENT_HOME/sysman/emd/state/
Restart the Management Agent.
The Oracle Management Agent uses a predefined port number to receive requests from the Management Service. This port number is defined by default when you install the Agent on a managed host. If you later need to modify this port, you can use the following procedure. You might need to modify this port number if you have existing software that uses the default Agent port.
To change the Management Agent port:
Stop the Management Agent.
Locate the emd.properties
file in the Agent home directory:
AGENT_HOME/sysman/config/emd.properties
Use a text editor to open the file and locate the EMD_URL property.
For example:
EMD_URL=http://managed_host1.acme.com:1813/emd/main
Modify the port number in the EMD_URL property so the Agent uses a new unused port on the managed host.
For example:
EMD_URL=http://managed_host1.acme.com:1913/emd/main
Start the Management Agent.
Oracle designed the Management Agent to work within a set of disk space limits. These limits prevent the Management Agent from using too much disk space and causing performance or resource issues on your enterprise systems. However, if disk space becomes an issue, you can adjust the default settings that are used to control the amount of disk space used by the Management Agent.
As the Management Agent on a particular host gathers management data about the targets on the host, it saves the collected data on the local disk until the data is uploaded to the Management Repository. The agent saves this collected data and metadata in the following directory:
AGENT_HOME/sysman/emd/upload
By default, the Management Agent will save up to 50MB of collected data in the upload directory. If the amount of collected data exceeds 50MB, data collection is stopped temporarily until the data is uploaded to the repository and more disk space becomes available.
In addition, the Management Agent checks to be sure that the percentage of disk space currently in use on the local disk does not exceed 98 percent. If the this value is exceeded, the Management Agent stops collected data and stops saving information to the Management Agent log and trace files.
You can modify these default settings as follows:
Stop the Management Agent.
Locate the emd.properties
file in the Agent home directory:
AGENT_HOME/sysman/config/emd.properties
Use a text editor to open the file and modify the entries shown in Table 7-1.
Save your changes and exit the file.
Restart the Management Agent.
Table 7-1 Properties for Controlling the Disk Space Used by the Management Agent
The Oracle Management Agent is the Enterprise Manager component that gathers the data you need to manage your enterprise efficiently. As a result, Enterprise Manager includes software that keeps track of the Management Agent processes and makes sure the Management Agent stays running.
For example, if the Management Agent quits unexpectedly, this self-monitoring process—referred to as the watchdog process—will restart the Management Agent automatically.
In most situations, the watchdog process works in the background and requires no configuration or maintenance. The watchdog process is controlled by the emwd
script located in the following directory of the Management Agent home directory:
AGENT_HOME/bin/emwd
You can identify the watchdog process by using the following command UNIX systems:
$PROMPT> ps -ef | grep emwd
In today's global economy, it is not uncommon for the systems you manage to reside in multiple locations throughout the world. For example, if your company headquarters are in New Hampshire, USA, you may need to manage systems that reside in California, Canada, and in Europe.
As Enterprise Manager collects monitoring data from Management Agents running on these remote systems, it is important that the data is correlated accurately. A software failure on a machine in Ontario, Canada might be the cause of a performance problem on a machine in Hoboken, New Jersey.
To correlate this data, it is important that Enterprise Manager obtains the correct time zone for each Management Agent that you install. The following sections describe how the Management Agent obtains the time zone and how to correct the problem if the time zone for a Management Agent is incorrect:
Understanding How the Management Agent Obtains Time Zone Information
Troubleshooting Oracle Management Service Time Zone Problems
When you install the Management Agent, the software attempts to obtain the current time zone of the host computer. If successful, the installation procedure updates the agentTZRegion
property setting in the following configuration file:
AGENT_HOME/sysman/config/emd.properties
The agentTZRegion
property can be set to any of the values listed in the following file, which is installed in the Management Agent home directory:
AGENT_HOME/sysman/admin/suportedtzs.lst
Sometimes, during the Management Agent installation, the time zone detected by the Agent configuration tool is not recognized by the Management Agent. In other words, the time zone obtained by the configuration tool is not listed in the Management Agent list of supported time zones.
This problem prevents the Management Agent from starting and results in the an error similar to the following:
Could not determine agent time zone. Please refer to to the file: ORACLE_HOME/sysman/admin/supportedtzs.lst and pick a timezone region with a standard offset of +5:0 from GMT and update the property 'agentTZRegion' in the file: ORACLE_HOME/sysman/config/emd.properties
This error appears in one of the log files shown in Table 7-2, depending upon which Enterprise Manager product you are using.
Table 7-2 Location of Time Zone Error in the Enterprise Manager Log Files
If you are using... | Look for the Time Zone Error in This File... |
---|---|
Grid Control |
emagent.nohup |
Application Server Control |
em.nohup |
Database Control |
emdb.nohup |
See Also: "Locating and Configuring Management Agent Log and Trace Files" for more information about the Oracle Management Agent log files |
To configure the Management Agent to use a valid time zone:
Enter the following command in the Management Agent home directory to identify the time zone currently being used by the host computer:
AGENT_HOME/bin/emctl config agent getTZ
Note the time zone that is returned by this emctl config agent getTZ
command.
This is the time zone of the host computer.
Use a to open the following file in the Management Agent home directory:
AGENT_HOME/sysman/admin/supportedtzs.lst
This file contains a list of all the time zones supported by the Management Agent.
Browse the contents of the supportedtzs.lst
file and note the supported time zone closest to the time zone of the host computer.
Use a text editor to open the following Management Agent configuration file:
AGENT_HOME/sysman/config/emd.properties
Locate the following property near the end of the emd.properties
file:
agentTZRegion=
Set the value of this property to the time zone you identified as closest the host time zone in the supportedtzs.lst
file.
For example:
agentTZRegion=Europe/Warsaw
Save your changes and close the emd.properties
file.
You should now be able to start the Management Agent without generating the error in the log file.
Section 7.1.5.2 describes how to correct potential problems that result when the Management Agent cannot determine the proper time zone. Similar problems can occur when the Management Agent finds the correct time zone, but the time zone is not recognized by the the Management Service or the database where the Management Repository resides.
When the Management Service does not recognize the time zone established by the Management Agent, Enterprise Manager generates the following error:
OMS does not understand the timezone region of the agent. Either start the OMS using the extended list of time zones supported by the database or pick a value of time zone from ORACLE_HOME/emdw/sysman/admin/nsupportedtzs.lst, update the property 'agentTZRegion' in the file ORACLE_HOME/sysman/config/emd.properties and restart the agent. A value which is around an offset of -05:00 from GMT should be picked.
This error appears in one of the log files shown in Table 7-2, depending upon which Enterprise Manager product you are using.
There are two ways to correct this problem:
Restart the Management Repository database using the more extensive list of time zones in the timezlrg.dat
database configuration file, and then start the Management Agent.
Specify a new time zone for the Management Agent that the Management Repository database will recognize.
See Also: "Troubleshooting Management Agent Time Zone Problems" for instructions on changing the time zone assigned to the Management Agent |
The following sections describe configuration changes you can make to the Management Service after you install Enterprise Manager:
When you install and deploy the Management Service, you associate the Management Service with a Management Repository. The Management Service uses the database host, database system identifier (SID), database port, management user, and management password to identify and communicate with the Repository.
This repository information is stored in the emoms.properties
file, which can be found in the following directory of the Oracle Application Server Home where the Oracle Management Service is installed and deployed:
IAS_HOME/sysman/config/
The following sections describe how to modify the repository information in the emoms.properties
file and provide details about how Enterprise Manager keeps the Management Repository password secure.
To associate the Oracle Management Service with a new repository, you must modify the repository properties saved in the emoms.properties
configuration file:
Stop the Management Service.
Locate the emoms.properties
file in the following directory of the Oracle Application Server Home where you installed and deployed the Management Service:
AS_HOME/sysman/config/
Edit the emoms.properties
file by updating the appropriate values for the properties described in Table 7-3.
shows sample entries in the emoms.properties
file.
Restart the Management Service.
Table 7-3 Repository Properties in the emoms.properties File
Property | Description |
---|---|
emdRepUser | The Management Repository user name. The default value is SYSMAN. |
emdRepPwd | The Management Repository password. The default value is sysman , but when you open the file you will notice that the value for this property is an encrypted string.
Remove the encrypted string and enter the management password for the new Management Repository. |
emdRepSID | The System Identifier (SID) for the database where the Management Repository schema resides. |
emdRepServer | The name of the server or host computer where the repository database resides. |
emdRepPort | The port number for the repository database. |
emdRepPwdEncrypted | This property must be set to FALSE so you can manually modify the management password (emdRepPwd ) property.
For more information, see "About Changing the Repository Password". |
Example 7-1 Sample Repository Properties in the emoms.properties File
oracle.sysman.eml.mntr.emdRepUser=SYSMAN oracle.sysman.eml.mntr.emdRepPwd=sysman oracle.sysman.eml.mntr.emdRepPwdEncrypted=false oracle.sysman.eml.mntr.emdRepSID=oemrep1 oracle.sysman.eml.mntr.emdRepServer=system12.mycompany.com oracle.sysman.eml.mntr.emdRepPort=1521
For security reasons, the password stored in the emoms.properties
file is encrypted as soon as you start the Management Service. For this reason, when you edit the emoms.properties
file after the Management Service has been started at least once, you will notice that the emdRepPwdEncrypted
property is set to TRUE.
As a result, to modify the repository password, you must do the following:
Stop the Management Service.
Open the emoms.properties
file.
Change the emdRepPwdEncrypted
property to FALSE.
Change the emdRepPwd
property to the new password.
Save the changes and close the emoms.properties
file.
Restart the Management Service.
When the Management Service starts, it opens the emoms.properties
file, encrypts the password, and changes the emdRepPwdEncrypted
property to TRUE.
When you install the Management Service, the port number for the Management Service is automatically set to 4889. The following procedure describes how to manually change the port number after the Enterprise Manager installation. For example, you will have to modify the port number if you attempt to install two Oracle Management Services on the same host computer.
To change the default Management Service port:
Stop the Management Service.
Locate the following httpd_em.conf
file located in the following directory in the Oracle Application Server home directory where you installed and deployed the Management Service:
AS_HOME/sysman/config/
Open the http_em.conf
file with a text editor and change all occurrences of 4889
to the new port number you want to use.
Save and close the http_em.conf
file.
Locate the emoms.properties
file in the same sysman/config
directory.
Open the emoms.properties
file with a text editor and change the following entry so it references the new port number of the Management Service:
oracle.sysman.emSDK.svlt.ConsoleServerPort=4889
Restart the Management Service.
Reconfigure each Agent on your managed hosts to use the new management port.