Entering content frame

Procedure documentation Installing TREX Monitoring Functions Using a Script Locate the document in its SAP Library structure

Use

You can use a script to install and configure some of the TREX monitoring functions. You call the script ccms_config.py to execute and install the deployment of the monitoring functions Availability Monitoring (Heartbeat) with GRMG and System Status, Central Configuration, and Alerting.

Note

If you use the script ccms_config.py, the manual steps described in this documentation are no longer necessary for the installation and the configuration of these functions.

The following table shows which monitoring functions you can configure using a script:

Monitoring Functions

Installation and Configuration

Availability Monitoring with GRMG

With a script

System Status, Central Configuration, and Alerting

With a script

Activity Tracing

Manually

 

Prerequisites

You have installed, configured, and registered SAPCCMSR and SAPOSCOL for TREX. After the TREX installation, all files and directories that you require for correct operation of CCMS and GRMG are available on your host.

Procedure (UNIX)

...

       1.      Log on to the TREX host as Root.

       2.      Go to the directory <TREX_DIR>.

       3.      Set the environment variables required by TREX by executing the following scripts.

Bourne shell sh, Bourne-again shell bash, Korn shell ksh

. TREXSettings.sh

C Shell csh:

source TREXSettings.csh

       4.      Go to the directory <TREX_DIR>/exe/CCMS, in which the script for installing the TREX monitoring functions is located.

       5.      Execute the following command:

./ccms_config.py --grmg

Procedure (Windows)

...

...

       1.      Log on to the TREX host as administrator.

       2.      Go to the directory <TREX_DIR>.

       3.      Set the environment variables required by TREX by entering the following command into a prompt.

TREXSettings.bat

       4.      Go to the directory <TREX_DIR>\exe\ccms, which contains the script for the installation of the TREX Solution Management functions:

       5.      Execute the following command:

ccms_config.py --grmg

Note

If you need help on the configuration script ccms_config.py, enter: ./ccms_config.py -? (-h or --help).

To activate only some of the objects, enter the following, for example: ./ccms_config.py --grmg --logmon --restart

This command only configures GRMG and log file monitoring. It then restarts the SAP agents. The parameter –grmg specifies the installation and configuration of TREX Heartbeat by GRMG. The parameter –restart restarts the CCMS agents. You can use also the short versions of the options like for example –g instead of  --grmg.

You can deinstall all functions using the parameter -u or --uninstall without specifying a functions (or you can call the Python script ccms_deconfig.py).

The GRMG Heartbeat Service is a TREX program with an entry in the TREX configuration file TREXDaemon.ini. To activate this service use the command TREX restart if the TREX services are already running.

Result

You have used a script to install and configure the TREX monitoring functions. To be able to launch the TREX monitoring functions from within the SAP system, you must now Structure linkset up GRMG monitoring for TREX in the SAP system.

 

Leaving content frame