You can use the manageODR.py script to manage custom logging and create a cluster of on demand routers (ODR).
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.
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. |
The following example shows how to create an HTTP ODR named odr, on node 1:
wsadmin.sh -f createodr.jacl node1 odr odr
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