The manageODC.py script manages the ODC tree. The ODC tree is an in-memory representation of the state of a WebSphere Application Server cell.
The manageODC.py script can add and remove nodes and edges, or modify the value of properties on a node. You can also use the script when troubleshooting routing policy errors for the on demand router.
The manageODC.py script is located in the install_root/bin directory.
./wsadmin.sh|bat -lang jython -f manageODC.py
./wsadmin.sh|bat -lang jython -f manageODC.py operation --help
Generate a target.xml file to determine the ODC names to plug into the script. See the example below.
<cellGroup name="target"> <!-- cell section --> <cell name="Cell1"> <!-- node section --> <node name="metis07"> <!-- server section --> <server name="odr"> <property name="state" priority="1" value="STOPPED" />
To delete server odr from the ODC tree, type the following command:
./wsadmin.sh -lang jython -f manageODC.py removeODCNode /cell/Cell1/node/metis07/server/odr <myNode> <myServer>
Note that /cellGroup/target is never specified as part of the path.
In this example, The property ODC object is state, with a value of STOPPED, and a priority of 1. To change the property to STARTED, use the following command:
./wsadmin.sh -lang jython -f manageODC.py modifyODCProperty /cell/Cell1/node/metis07/server/odr state 1::STARTED <mynode> <myserver>