Tag Archive | Websphere

SyncNode to the DMGR in WAS

Once you have identified its not in Sync .. they you could use these 3 methods to sync Node
Option1) Go to the Admin Console >> System Administration >> Nodes >>
Select the node which is not synced ( which is identified by the broken sign>
Click on “Full Resynchronize”
wasnd_cluster_synch
Option2) Go to the ManageNode where the Node is not synced
Navigate to the <install_root>/AppServer/bin
./syncNode.sh <deploymgr host> <deploymgr port>

There are various options to syncNode to suit your requirements .. like -stopserver etc

Option3) Using the wsadmin command
We we would proceed with following to get the node synchronized with dmgr

$AdminControl invoke $node_name sync

After synchronization process finishes you should see similar output

wsadmin>$AdminControl invoke $node_name sync
true
wsadmin>

 

 

How to check if Node is in sync with Dmgr

Option1: Login to the Admin console >> System Administration >> Nodes >>
Within the Nodes there would be a column for the Sync Status
If it is broken it means that the Sync is not synced

Refer the Snapshot below

syncnode1

The node01 and node02 are not synced

===================================================================

Option2:

===================================================================
First of all localize wsadmin tool on your host. It is located in <install_root>/AppServer/bin

cd <install_root>/AppServer/bin

Start wsadmin tool to connect to deployment manager

wsadmin.sh -host <dmgr_server> -port <dmgr_SOAP_port> -conntype SOAP -username <admin_username> -password <admin_password>

Assign node name to some variable I have used node_name in this example and mynode is the name of the node you would like to synchronize

set node_name [$AdminControl completeObjectName type=NodeSync,node=mynode,*]

For Eg
wsadmin>set node_name [$AdminControl completeObjectName type=NodeSync,node=mynode,*]
WebSphere:mbeanIdentifier=nodeSync,cell=my_cell,process=nodeagent,name=nodeSyn
c,platform=common,node=mynode,version=6.0.2.23,type=NodeSync

Now, when we know the exact name of the node we can check if it is in sync with deployment manager

$AdminControl invoke $node_name isNodeSynchronized

If node is in sync with deployment manager you will see following output

wsadmin>$AdminControl invoke $node_name isNodeSynchronized
true
wsadmin>

The “True” Represents that the Node is Synced