To configure the CCMS monitoring functions for TREX, you have to configure parameter reporting first. Configuring parameter reporting is a prerequisite for configuring the monitoring of availability (heartbeat/GRMG), log files, and processes.
To configure the parameter reporting, you must register the CCMS agent, SAPCCMSR, with the central monitoring system (CEN). During the registration process, you enter details of the CEN and the users through which communication between the agent and CEN is processed.
You configure the parameter reporting for TREX for two different scenarios:
Configuring Parameter Reporting for an Initial TREX Installation
If you have installed TREX for the first time you have to work through the following configuration steps to configure parameter reporting for an initial TREX installation:
UNIX
.TREXSettings.sh
source TREXSettings.csh
Windows
TREXSettings.bat
sapccmsr pf=<full_path_to_instance_profile> -j2ee -R
During the registration of the CCMS agent, the following user data is queried:
When the name of the system group is queried, you assign the TREX system for the SAP system ID <SAPSID> as the monitored system to the TREX_Systems system group in the central monitoring system:
[optional] monitored system <SAPSID> belongs to system group: TREX_Systems
If there is a default value for an entry, this is presented in square brackets. If you want to apply this value, choose ENTER.
If there is a default value for an entry, this is presented in square brackets. If you want to apply this value, choose ENTER.
Start → Settings → Control Panel → Administrative Tools →Services.
Choose the service of the CCMS agent with the nameSAPCCMSR.<instance-number> and single-click the secondary (right) mouse button → Properties → General → Startup Type: Disable.
You can find the TREX start profile in the global file system for your TREX installation <TREX_GLOBAL>.
Change the following sections of the TREX start profile :
Before the change:
SETENV_<nr> = LD_LIBRARY_PATH=$(DIR_LIBRARY):%(LD_LIBRARY_PATH)
SETENV_<nr> = SHLIB_PATH=$(DIR_LIBRARY):%(SHLIB_PATH)
SETENV_<nr> = LIBPATH=$(DIR_LIBRARY):%(LIBPATH)
After the Change:
SETENV_<nr> = LD_LIBRARY_PATH=$(DIR_EXECUTABLE):%(LD_LIBRARY_PATH)
SETENV_<nr> = SHLIB_PATH=$(DIR_ EXECUTABLE):%(SHLIB_PATH)
SETENV_<nr>= LIBPATH=$(DIR_ EXECUTABLE):%(LIBPATH)
Insert the following entry in the TREX start profile:
#----------------------------------------------------------
# Start CCMS Agent
#----------------------------------------------------------
_CCMS = $(DIR_EXECUTABLE)\sapccmsr$(FT_EXE)
Start_Program_<number> = local $(_CCMS) pf=$(_PF) -j2ee-DCCMS
You can use a text editor or the SAP Management Console, a snap-in in the Microsoft Management Console (MMC), to change the start profile.
#---------------------------------------------------------
# Start CCMS Agent
#----------------------------------------------------------
TREX/NameServer/Port=3$(SAPSYSTEM)01
_CCMS = $(DIR_EXECUTABLE)/sapccmsr$(FT_EXE)
Start_Program_<number> = local $(_CCMS) pf=$(_PF) -j2ee -DCCMS -nodaemon
Choose the next free number for the value <number> in Start_Program_<number>.
You have only to specify the parameter TREX/NameServer/Port=3$(SAPSYSTEM)01 for the TREX 7.0.08 and TREX 7.0.24 versions. The file <TREX_DIR>/exe/doc/TREXVersion.html indicates the current TREX version.
Change TREX instance profile <SAPSID>_TRX<instance_number>_<host>.
You can find the TREX instance profile in the global file system for your TREX installation <TREX_GLOBAL>.
Insert the entry TREX/NameServer/Port=3$(SAPSYSTEM)01 at the end of the file the TREX instance profile <SAPSID>_TRX<instance_number>_<host>.
You have only to specify the parameter TREX/NameServer/Port=3$(SAPSYSTEM)01 for the TREX 7.0.08 and TREX 7.0.24 versions. The file <TREX_DIR>/exe/doc/TREXVersion.html indicates the current TREX version.
Configuring Parameter Reporting for Update of an Existing TREX Installation
If you have already installed TREX and CCMS monitoring had been enabled, you may have to work through the following additional configuration steps to configure parameter reporting for the updated TREX installation:
sapccmsr pf=<full_path_to_instance_profile> -j2ee -standalone -stop
You can find the CCMS agent in the directory <TREX_DIR>/exe.
<full_path_to_instance_profile> is the complete file path for the instance profile of the monitored TREX instance, including the name of the instance profile <SAPSID>_TRX<instance_number>_<host> itself.
Example:
<drive>:\usr\sap\<SAPSID>\SYS\profile\<SAPSID>_TRX<instance_number>_<host>
You can find the exact value for <full_path_to_instance_profile> in the global file system for your TREX installation, <TREX_GLOBAL>.
Stop the service of the CCMS agent and disable the Startup Type in the Windows Administrative Tool Services:
Start → Settings → Control Panel → Administrative Tools →Services.
Choose the service of the CCMS agent and single-click the secondary (right) mouse button → Properties → General → Startup Type: Disable.
You can find the TREX start profile in the global file system for your TREX installation <TREX_GLOBAL>.
Check if the following entries are set correctly in the TREX start profile. If necessary, correct the entries as described:
#----------------------------------------------------------
# Start CCMS Agent
#----------------------------------------------------------
_CCMS = $(DIR_EXECUTABLE)\sapccmsr$(FT_EXE)
Start_Program_<number> = local $(_CCMS) pf=$(_PF) -j2ee-DCCMS
You can use a text editor or the SAP Management Console, a snap-in in the Microsoft Management Console (MMC), to change the start profile.
#---------------------------------------------------------
# Start CCMS Agent
#----------------------------------------------------------
TREX/NameServer/Port=3$(SAPSYSTEM)01
_CCMS = $(DIR_EXECUTABLE)/sapccmsr$(FT_EXE)
Start_Program_<number> = local $(_CCMS) pf=$(_PF) -j2ee -DCCMS-nodaemon
Choose the next free number for the value <number> in Start_Program_<number>.
You have only to specify the parameter TREX/NameServer/Port=3$(SAPSYSTEM)01 for the TREX 7.0.08 and TREX 7.0.24 versions. The file <TREX_DIR>/exe/doc/TREXVersion.html indicates the current TREX version.
Check the TREX instance profile,<SAPSID>_TRX<instance_number>_<host>.
You can find the TREX instance profile in the global file system for your TREX installation <TREX_GLOBAL>. Insert the entry TREX/NameServer/Port=3$(SAPSYSTEM)01 at the end of the file for the TREX instance profile if it is not there.
You have only to specify the parameter TREX/NameServer/Port=3$(SAPSYSTEM)01 for the TREX 7.0.08 and TREX 7.0.24 versions. The file <TREX_DIR>/exe/doc/TREXVersion.html indicates the current TREX version.
Result
To check whether or not SAPSOCOLand your TREX system are active, proceed as follows:
The screen containing the CCMS Monitor Sets appears.
Information about the operating system, host name, CPU, and so on of your TREX system appears.