Oracle Coherence Monitor

User Guide

 


OCM Scripts
The following scripts are available when used from
an initialized command window. We recommend that all scripts be executed in a project directory containing the appropriate configuration files. For example, ocmon/projects/mysample. The scripts can be executed from a Windows Command Prompt or UNIX terminal window. On Windows, you can type the commands as described in the following section without the .bat suffix; on UNIX systems you must replace the .bat suffix with .sh for each command. For example, rundata.sh.
Name Description
dos2unix.sh Replaces Windows line termination to Unix format. This script is not available as .bat script.

Location:
rtvapm/common/bin

my_alert_actions.bat Sample script to define actions for alerts.

Location:
rtvapm/common/bin

rtvapm_init.bat

 

Initializes a command window.

Format:
rtvapm_init.bat

Location:
rtvapm (installation root directory)

rtvapm_ports.bat Outputs a list with all ports in the RTView OCM installation.

Format:
rtvapmports.bat > [outputFile]

outputFile – Text file name.

Location:
rtvapm/common/bin

runa.bat
 
Executes RTView Analyzer to extract the function chain of the chosen cache definition file. It returns a .pdf file with a graph of the function chain of all caches in the file. The two scripts have the same functionality.

Format:
runa.bat [cacheDefFile].rtv

cacheDefFile - Cache definition file name.

Location:
rtvapm/common/bin

runb.bat
 
Starts the Display Builder. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv builder
start_rtv builder_ds


Format:
runb.bat [-ds] [-bg]

-ds - To use the currently running Data Server.
-bg - Runs the
Display Builder as a background process.

Location:
rtvapm/common/bin

rundata.bat Starts the Data Server. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv default dataserver  

Format:
rundata [-properties]:[Property File Name]

-properties - specifies to apply a specific property file.

Property File Name - the name of the properties file to apply.

Location:
rtvapm/common/bin

Example:
rundata -properties:mycustom.properties

rundb.bat Starts the HSQLDB database. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv default database  

Location:
rtvapm/common/bin

rundisp.bat Starts the Display Server. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv default displayserver  

Location:
rtvapm/common/bin

runhist.bat Starts the Historian. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv default historian

Location:
rtvapm/common/bin

runv.bat Starts the Display Viewer. We recommend that you use the start_rtv.bat script with the appropriate configuration and server. For example:

start_rtv default viewer

Location:
rtvapm/common/bin

start_rtv.bat Starts processes in an OCM configuration as specified in the rtvservers.dat configuration file. An OCM configuration might include a Data Server, a Display Server or Viewer, an Historian and a Central Server Database. start_rtv only attempts to start processes it detects are not running. The action can be applied to all OCM configurations, a single OCM configuration or a single process in an OCM configuration.

If the Display Viewer is started using the start_rtv script, the Viewer cannot be stopped using the stop_rtv script. You can stop the Viewer by closing its window.

To use additional arguments you must either specify a configuration (to apply the argument to all servers in a configuration) or all (to apply the argument to all configurations).

–console (or –c) - Start the processes with a command window (which is useful for testing).

When used without arguments, this script returns usage information and a list of available configurations. For example, start_rtv returns:

Usage: start_rtv config or 'all' [server or 'all'] [args...]
Available configs:
     default
          database
          dataserver
          historian
          displayserver

     agentmode
          database
          dataserver
          agentsender
          historian
          displayserver

     viewer_ds
          viewer_ds

     viewer
          viewer

     builder_ds
          builder_ds

     builder
          builder

     dataserver
          dataserver

     mainreceiver
          dataserver

     agentsender
          agentsender

     database
          database

     historian
          historian
          [default]

     displayserver
          displayserver

Location:
rtvapm/common/bin

all Starts all OCM configurations specified in the rtvservers.dat file. all applies the action to all OCM configurations specified in the rtvservers.dat file (and corresponding servers or clients specified in each configuration). NOTE: When multiple configurations are specified in the rtvservers.dat file and they have different project settings directory locations, the all argument processes all the configurations. However, if the configurations have the same project settings directory locations, the all argument processes only the first configuration as the others are considered alternative configurations. For details, see rtvservers.dat.

Example:
start_rtv.bat all

[Configuration Name] To start a single OCM configuration specified in the rtvservers.dat file:
start_rtv.bat [Configuration Name]

Configuration Name is the OCM configuration name specified in the rtvservers.dat file. The action applies to all servers or clients specified in the configuration.

Example:
start_rtv.bat web_deployment   

[Server Name] To start a single process in an OCM configuration specified in the rtvservers.dat file:
start_rtv.bat [Configuration Name] [Server Name]

Server Name is the name of a server or client member in the configuration. For example, dataserver, displayserver, historian and database. The action applies only to that server or client in the configuration.

Example:
start_rtv.bat default dataserver

status_rtv.bat
 

 

Returns the status all OCM configurations specified in the rtvservers.dat configuration file. This action uses defined JMX ports. An OCM configuration might include a Data Server, a Display Server or Viewer, an Historian and a Central Server Database. status_rtv only attempts to start processes it detects are not running. The action can be applied to all OCM configurations, a single OCM configuration or a single process in an OCM configuration.

To use additional arguments you must either specify a configuration (to apply the argument to all servers in a configuration) or all (to apply the argument to all configurations).

–console (or –c) - Start the processes with a command window (which is useful for testing).

This command returns status information upon execution. For example:

Status default:
dataserver: Running PID 4696 Uptime 000:00:01:47 CPU 00:00:02 Heap 0.7% Clients 2
displayserver: Running PID 6340 Uptime 000:00:01:45 CPU 00:00:01 Heap 1.0% Displays 0
historian: Running PID 6108 Uptime 000:00:01:42 CPU 00:00:01 Heap 1.3% Connected true
database: Running PID 6848 Uptime 000:00:01:39 CPU 00:00:00 Heap 0.4%

In the above example, note that the Data Server reports two clients, the Display Server and the Historian. Both the Display Server and the Historian were started with the –ds argument, which connects them to the Data Server. Note also that the Historian reports that it is connected to the database.

In the following example, status_rtv reports that a configured port is in use but the process using the port does not appear to belong to OCM:

dataserver: Data port xxx in use by PID yyy
displayserver: JMX port xxx in use by PID yyy

When used without arguments, returns usage information and a list of available configurations. For example, status_rtv returns:

Usage: status_rtv config [server] or 'all'
Available configs:
default

Location
rtvapm/common/bin

all Returns the status of all OCM configuration specified in the rtvservers.dat file. NOTE: When multiple configurations are specified in the rtvservers.dat file and they have different project settings directory locations, the all argument processes all the configurations. However, if the configurations have the same project settings directory locations, the all argument processes only the first configuration as the others are considered alternative configurations. For details, see rtvservers.dat.

Example:
status_rtv.bat all

[Configuration Name]

 

Returns the status of a single OCM configuration specified in the rtvservers.dat file:
status_rtv.bat [Configuration Name]

Configuration Name is the OCM configuration name specified in the rtvservers.dat file. The action applies to all servers or clients specified in the configuration.

Example:
status_rtv.bat web_deployment   

[Server Name]

 

Returns the status of a single process in an OCM configuration specified in the rtvservers.dat file:
status_rtv.bat [Configuration Name] [Server Name]

Server Name is the name of a server or client member in the configuration. For example, dataserver, displayserver, historian and database. The action applies only to that server or client in the configuration.

Example:
status_rtv.bat default dataserver

stop_rtv.bat
 

 

Stops processes in an OCM configuration as specified in the rtvservers.dat configuration file. This action uses defined JMX ports. An OCM configuration might include a Data Server, a Display Server or Viewer, an Historian and a Central Server Database. stop_rtv only attempts to start processes it detects are not running. The action can be applied to all OCM configurations, a single OCM configuration or a single process in an OCM configuration.

To use additional arguments you must either specify a configuration (to apply the argument to all servers in a configuration) or all (to apply the argument to all configurations).

If the Display Viewer is started using the start_rtv script, the Viewer cannot be stopped using the stop_rtv script. You can stop the Viewer by closing its window.

NOTE: The HSQLDB server (if used) runs with a command window on Windows and cannot be stopped using the stop_rtv command. You can stop the HSQLDB server by typing Ctrl-C in its command window.

This command returns status information upon execution. For example:

stop_rtv.bat default:
dataserver: Stopped PID 4696 via JMX port 3368

If no JMX port is configured the stop_rtv command reports the following:

dataserver: No JMX port configured; must kill PID xxx by system command.

If the port is in use but the PID is not available (HP-UX, some Linux systems) then the stop_rtv and status_rtv command will report the PID as “???”, for example:

dataserver: Running PID ??? Uptime 000:00:00:37 CPU 00:00:01 Heap 1.3% Clients 1
dataserver: Stopped PID ??? via JMX port 3368

When used without arguments, returns usage information and a list of available configurations. For example, stop_rtv returns:

Usage:
stop_rtv config [server] or 'all'
Available configs:
default

Location:
rtvapm/common/bin

all Stops all OCM configurations specified in the rtvservers.dat file. all applies the action to all OCM configurations specified in the rtvservers.dat file (and corresponding servers or clients specified in each configuration). NOTE: When multiple configurations are specified in the rtvservers.dat file and they have different project settings directory locations, the all argument processes all the configurations. However, if the configurations have the same project settings directory locations, the all argument processes only the first configuration as the others are considered alternative configurations. For details, see rtvservers.dat.

Example:
stop_rtv.bat all

[Configuration Name]

 

Stops a single OCM configuration specified in the rtvservers.dat file:
stop_rtv.bat [Configuration Name]

Configuration Name is the OCM configuration name specified in the rtvservers.dat file. The action applies to all servers or clients specified in the configuration.

Example:
stop_rtv.bat default   

[Server Name]

 

Stops a single process in an OCM configuration specified in the rtvservers.dat file:
stop_rtv.bat [Configuration Name] [Server Name]

Server Name is the name of a server or client member in the configuration. For example, dataserver, displayserver, historian and database. The action applies only to that server or client in the configuration.

Example:
stop_rtv.bat default   dataserver

update_wars.bat

Script to regenerate war files when the configuration of the Solution Package has changed.

Location:
rtvapm/ocmon/projects/sample

 

rtvservers.dat

The rtvservers.dat text file, located in the ocmon/projects/mysample directory, is a configuration file used to manage your OCM deployment and OCM processes. The rtvservers.dat file contains one or more OCM configurations. An OCM configuration might include any of the following: Data Server, Historian, HSQLDB database, and either a Display Server (for a Web Deployment) or a Display Viewer (for a Desktop Deployment). The rtvservers.dat file is used when the following scripts are executed:

NOTE: You can write the paths using the forward-slash (/) notation on both Windows and UNIX systems. For example, if your project settings directory is located in a subdirectory below the location of your rtvservers.dat file, you write the path as ./subdirectory on both Windows and UNIX.

Single Configuration File
The following rtvservers.dat file contains a single OCM configuration, named default, for a Web deployment.

        default . database rundb
        default . dataserver rundata -propfilter:maincollector
        default . historian runhist -ds
        default . displayserver rundisp -ds

NOTE: The last line in the rtvservers.dat file must end with a new line, or be followed by a blank line.

In this example, to start the default configuration type: start_rtv default or start_rtv all. To start a single server in the configuration, type start_rtv <Configuration Name> <Server Name>. For example: start_rtv default displayserver.

Each line has the following format consisting of four fields:

<Configuration Name> <Project Settings Directory Location> <Property Filter Identifying the Server> <Command>

<Configuration Name> The name of the OCM configuration ("default" in this example).
<Project Settings Directory Location> The OCM project settings directory location, relative to the location of the rtvservers.dat file (“.”, the current directory, in this example).
<Property Filter Identifying the Server> The property filter that identifies the server, which is the property filter under which the server’s JMX port is defined. By default, this is the server name, such as dataserver, displayserver and historian.
<Command> The script used to start the process. Valid values are:

rundata: Starts the Data Server.
runhist: Starts the Historian.
rundisp: Starts the Display Server.
rundb: Starts the HSQLDB Database.
runv: Starts the Display Viewer.
runb: Starts the Builder.

Multiple Configuration File
When multiple configurations are specified in the rtvservers.dat file and they have different project settings directory locations, the all argument processes all the configurations. However, if the configurations have the same project settings directory locations, the all argument processes only the first configuration as the others are considered alternative configurations. Alternative configurations allow you to alternate between two configurations for a single OCM deployment.

For example, the following rtvservers.dat file contains two configurations, system1 and system2. Note that the project settings directory locations differ (../system1 and ../system2, respectively).

system1 ../system1 dataserver rundata
system1 ../system1 historian runhist -ds
system1 ../system1 displayserver rundisp -ds

system2 ../system2 dataserver rundata
system2 ../system2 historian runhist -ds
system2 ../system2 displayserver rundisp –ds

Because the project settings directory locations differ, you can use type start_rtv all to start both configurations. To start only the system1 configuration, type: start_rtv system1. To start a single server in the system1 configuration, type start_rtv <Configuration Name> <Server Name>. For example: start_rtv system1 displayserver.

The following illustrates an rtvservers.dat file with an alternate configuration: desktop is for a Desktop Deployment and browser is for a Browser Deployment. Note that the project settings directory locations are the same (../system1 for both). This rtvservers.dat file allows you to switch between a Web Browser and a Desktop Deployment.

desktop ../system1 dataserver rundata
desktop ../system1 historian runhist -ds
desktop ../system1 viewer runv -ds

browser ../system1 dataserver rundata
browser ../system1 historian runhist -ds
browser ../system1 displayserver rundisp -ds

When the rtvservers.dat file contains an alternate configuration as this example does, the all argument processes only the first configuration, in this case, the desktop configuration. To process the second configuration type: start_rtv browser.

 

 

 

 


 

RTView contains components licensed under the Apache License Version 2.0.

 

Treemap Algorithms v1.0  is used without modifications and licensed by MPL Version 1.1. Copyright © 2001 University of Maryland, College Park, MD

 

Datejs is licensed under MIT. Copyright © Coolite Inc.

 

jQuery is licensed under MIT. Copyright © John Resig,

 

JCalendar 1.3.2 is licensed under LGPL. Copyright © Kai Toedter.

 

jQuery is licensed under MIT. Copyright (c) 2009 John Resig, http://jquery.com/ JCalendar 1.3.2 is licensed under LGPL. Copyright © Kai Toedter.

 

JMS, JMX and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. They are mentioned in this document for identification purposes only. 

 

SL, SL-GMS, GMS, RTView, SL Corporation, and the SL logo are trademarks or registered trademarks of Sherrill-Lubinski Corporation in the United States and other countries. Copyright © 1998-2013 Sherrill-Lubinski Corporation. All Rights Reserved.