You can propagate node changes using scripting and the wsadmin tool.
Using Jacl:
set Sync1 [$AdminControl completeObjectName type=NodeSync,node=myNodeName,*]
Sync1 = AdminControl.completeObjectName('type=NodeSync,node=myNodeName,*')
where:
set | is a Jacl command |
Sync1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans running in a WebSphere Application Server process |
completeObjectName | is an AdminControl command |
type=NodeSync,node=myNodeName | is a fragment of the object name. The complete name is returned by this command. This fragment is used to find the matching object name which is the SyncNode object for the myNodeName node, where myNodeName is the name of the node that you use to synchronize configuration changes. For example: type=Server, name=serv1. It can be any valid combination of domain and key properties. For example, type, name, cell, node, process, and so on. |
Example output:
WebSphere:platform=common,cell=myNetwork,version=5.0,name=node Sync,mbeanIdentifier=nodeSync,type=NodeSync,node=myBaseNode, process=nodeagent
Using Jacl:
$AdminControl invoke $Sync1 sync
AdminControl.invoke(Sync1, 'sync')
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans that run in a WebSphere Application Server process |
invoke | is an AdminControl command |
Sync1 | evaluates the ID of the server that is specified in step number 1 |
sync | is an attribute of modify command |
Example output:
trueYou receive an output value of true, if the synchronization completes.