Determining the synchronization status of a node using wsadmin
 Technote (troubleshooting)
 
Problem(Abstract)
The synchronization status of a node can be determined using administrative tools other than the administrative console.
 
Resolving the problem
You can use wsadmin to obtain the synchronization status of a node.

The required Mbean: NodeSync
The operation to be invoked on the Mbean: isNodeSynchronized()

Here is the set of commands to get the node synchronization status.

  1. set node NODE

    Where NODE is the name of the Node for which status is to be obtained.


  2. set nodeSync [$AdminControl completeObjectName
    type=NodeSync,node=$node,*]

    This commands sets variable nodesync to refer to the NodeSync mbean.


  3. $AdminControl invoke $nodeSync isNodeSynchronized

    This command invokes the operation isNodeSynchronized() on the mbean.

Here is a sample output

C:\WebSphere\DeploymentManager\bin>wsadmin
WASX7209I: Connected to process "dmgr" on node amitsManager using SOAP
connector ; The type of process is: DeploymentManager WASX7029I: For help, enter: "$Help help"

wsadmin>set node jeku
jeku

wsadmin>set nodeSync [$AdminControl completeObjectName type=NodeSync,node=$node,*] WebSphere:platform=common,cell=jekuNetwork,version=5.0,name=nodeSync,mbeanId
entifier=nodeSync,type=NodeSync,node=jeku,process=nodeagent

wsadmin>$AdminControl invoke $nodeSync isNodeSynchronized true
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Scripting Tools (for example: wsadmin or ANT)
Operating system(s): Windows
Software version: 5.1.1
Software edition:
Reference #: 1178926
IBM Group: Software Group
Modified date: Oct 2, 2007