|
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: |
|
my_alert_actions.bat |
Sample script to define actions for alerts.
Location: |
|
rtvapm_init.bat
|
Initializes a command window.
Format:
Location: |
|
rtvapm_ports.bat |
Outputs a list with all ports in the RTView OCM
installation. Format: outputFile – Text file name. Location: |
|
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: cacheDefFile - Cache definition file name. Location: |
|
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
-ds - To
use the currently running Data Server.
Location: |
|
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: -properties - specifies to apply a specific property file. Property File Name - the name of the properties file to apply. Location:
Example: |
|
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: |
|
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: |
|
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: |
|
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: |
|
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:
agentmode
viewer_ds
viewer
Location: |
|
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: |
|
[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: |
|
[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: |
|
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: 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: When
used without arguments, returns usage information and a list of available
configurations. For example, status_rtv returns: Location |
|
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: |
|
[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: |
|
[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: |
|
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: If no JMX port is configured the stop_rtv command
reports the following: When
used without arguments, returns usage information and a list of available
configurations. For example, stop_rtv
returns: Location: |
|
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: |
|
[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: |
|
[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: |
|
update_wars.bat |
Script to regenerate war files when the configuration of the Solution Package has changed. Location: |
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. |
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. |