Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS
manageODC.py script
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.
Purpose
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.
Location
The manageODC.py script is located in the install_root/bin directory.
Usage
The script usage for general help follows:./wsadmin.sh|bat -lang jython -f manageODC.pyThe script usage for operation-specific help follows:./wsadmin.sh|bat -lang jython -f manageODC.py operation --help
Operations
You can perform the following operations with the manageODC.py script:
- removeODCNode
- Removes a node.
- odcNodePath
- Specifies the full ODC tree path of the node to remove.
- nodeName
- Specifies the name of the Websphere node containing the server that initiates the removal.
- serverName
- Name of the server to initiate the removal.
- addODCNode
- Creates a new node.
- odcParentNodePath
- Specifies the full ODC tree path for the parent of the new node to be created.
- odcNodeType
- Specifies the ODC node type of the new node to be created.
- newNodeName
- Name of the new node to be created.
- nodeName
- Name of the Websphere node containing the server that initiates the addition.
- serverName
- Name of the server to initiate the addition.
- [--p odcPropertyDescriptor priority::value]
- Name of the ODC property to be modified on the new node priority. Value is the priority and value to set the ODC property to on the new node. Priority can be omitted if the default value is used.
- [--l linkOdcNodePath]
- Specifies the full ODC tree path of the node for which an edge is to be created
- removeODCEdge
- Removes the link between two nodes.
- odcNodePathA
- odcNodePathB
- Specifies the full ODC tree paths of the nodes to be unlinked.
- nodeName
- Name of the Websphere node containing the server that initiates the removal.
- serverName
- Name of the server to initiate the removal.
- addODCEdge
- Links one node to another node.
- odcNodePathA
- odcNodePathB
- Specifies the full ODC tree paths of the nodes to be linked.
- nodeName
- Name of the Websphere node containing the server that initiates the addition.
- serverName
- Name of the server to initiate the addition.
- modifyODCProperty
- Modifies a specified ODC property of a node.
- odcNodePath
- Specifies the full ODC tree path of the node whose property is to be modified.
- odcPropertyDescriptor
- Name of the ODC property to be modified.
- priority::value
- Specifies the priority and value to set the ODC property to. Priority can be omitted if the default value is used.
- nodeName
- Name of the Websphere node containing the server that initiates the modification.
- serverName
- Name of the server to initiate the modification.
Example
The following example shows the type property of myAppServer with a priority of 2, and a value of APPLICATION_SERVER using initiatingServer on the initiatingNode to generate the change../wsadmin.sh|bat -lang jython -f manageODC.py modifyODCProperty /cell/myCell/node/myNode/server/myAppServer type 2::APPLICATION_SERVER initiatingNode initiatingServer
Related reference
ScriptsRelated information
Creating and configuring ODRs
Configure ODRs