WebSphere Virtual Enterprise, Version 6.1.1
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


manageODR.py script

You can use the manageODR.py script to manage custom logging and create a cluster of on demand routers (ODR).

Location

The manageODR.py script is located in the install_root/bin directory. Before running this script, ensure that you have the environment variable WAS_HOME configured to point to the directory of your WebSphere installation.

Operations

You can perform the following operations with the manageODR.py script:
  • convertToCluster <node:odr> <cluster>: Convert an existing ODR on node node with name odr to an ODR cluster named <cluster>
  • addToCluster <node:odr> <cluster>: Create a new ODR on node node with name odr and add it to ODR cluster cluster.
  • insertCustomLogRule <node:odr> <cluster><odrServerOrCluster> <ruleNumber> <condition> <logFileFormat>: Insert a custom log rule into the list at position <ruleNumber>.
  • RemoveCustomLogRule <odrServerOrCluster> <ruleNumber>: Remove the custom log rule number <ruleNumber>.
  • listCustomLogRules <odrServerOrCluster>: List the custom log rules associated with an ODR or ODR cluster.
  • insertCustomLogRule<node:odr> <cluster><odrServerOrCluster> <ruleNumber> <condition> <logFileFormat>: Insert a custom log rule into the list at position <ruleNumber>. If <ruleNumber> is larger than the number of rules in the list, the new rule is appended to the list with the next available rule number.
where:
Table 1. Arguments
Argument Description

<node:odr>

Name of the node and ODR. For example, mynode:myodr.

<cluster>

Name of an ODR cluster.

<odrServerOrCluster>

Is either <node:odr> or <cluster>

<ruleNumber>

Number of the rule, from 1 to the total number of rules (or larger for insertCustomLogRule).

<condition>

Condition (that is, boolean expression) which must evaluate to true in order to trigger the associated custom logging.

<logFileFormat>

Specification denoting the file name and format of the log entry. See the log action format section in the Configuring custom logs topic.

manageODR.py examples

Example

The following example shows how to create an HTTP ODR named odr, on node 1:

wsadmin.sh -f createodr.jacl node1 odr odr

Example

The following example shows how to convert an ODR named odr on node node1 to an ODR cluster named ODRCluster:

wsadmin.sh -f manageODR.py -lang jython convertToCluster node1:odr ODRCluster



Related concepts
Configuring custom logs
Related information
Creating and configuring ODRs
Configuring ODRs
Cell affinity function
Enabling cell affinity
Configuring cell affinity in a multi-tiered environment
Defining generic server clusters for remote ODR cells
Reference topic    

Terms of Use | Feedback

Last updated: Oct 30, 2009 1:31:01 PM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r1m1/index.jsp?topic=/com.ibm.websphere.ops.doc/info/reference/rodoemanage.html