Saturday, May 9, 2015

Dynamic cluster creation in Websphere 8.5 via console





 You can click on preview membership to see which are the nodes belong to the node group selected.And also you can  use the subexpression builder to  change the expression you want.You can chose the server belong to particular node etc..
 In this one i have a selected a template from a server which is already existing.
 Keep on instance started at all times.If you cluster has more than 1 member websphere intelligent management will make sure  one server is  always available.I have mention Limit the number of instance that can start as 1 so it will not start more than one instances at any time.

wsadmin dynamic cluster creation websphere 8.5

Go to dmgr bin folder.

./wsadmin.sh -lang jython -username <user> -password <urpassword>
wsadmin>options = ['-membershipPolicy "node_nodegroup = \'DefaultNodeGroup\'" -dynamicClusterProperties "[[operationalMode automatic][minInstances 1][maxInstances 1][numVerticalInstances 1][serverInactivityTime 1440]]" -clusterProperties "[[preferLocal false][createDomain false][templateName default][coreGroup DefaultCoreGroup]]"']
wsadmin>AdminTask.createDynamicCluster('testdyn',options)


The above command will create dynamic cluster and add the server which belong to DefaultNodegroup as cluster members automatically.

When any new server created and its part of the Default nodegroup will be added as cluster member.

Saturday, April 4, 2015

Install Websphere 8.5 IBM Installation Manager silently in preferred location

Download the Installation Manager zip file from IBM site.

Will explain the steps first and give a script to automate this.

unzip the files in desired location.

Edit the install.xml to define the preferred location during silent install.

Original install.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean='true' temporary='true'>
<server>
<repository location='.'/>
</server>
<install>
<offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.6.2000.20130301_2248'/>
</install>
</agent-input>


Modified File:
<agent-input clean='true' temporary='true'>
<profile id='IBM Installation Manager' kind='self'>
<data key='installLocation' value='/websphere8.5/InstallationManager/eclipse'/>
</profile>

<server>
<repository location='.'/>
</server>
<install>
<offering profile='IBM Installation Manager' features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.6.2000.20130301_2248'/>
</install>
</agent-input>
The below lines has been added 





<profile id='IBM Installation Manager' kind='self'>
<data key='installLocation' value='/websphere_8/InstallManager/eclipse'/>
</profile>

And also in offering attribute profile='IBM Installation Manager' is added

Now execute the below command to do silent install of IBM installation Manager
 ./installc -log /tmp/install.txt -sP -acceptLicense
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................
Installed com.ibm.cic.agent_1.6.2000.20130301_2248 to the<mentioned directory in install.xml>
cat /tmp/install.txt should contain the following lines if installation is successfull
<?xml version="1.0" encoding="UTF-8"?>
<result>
</result>

Shell script to automate the above steps:
cd <IIM agent path>
unzip agent*.zip
sed -i "2 a\<profile id='IBM Installation Manager' kind='self'>" install.xml
sed -i "3 a\<data key='installLocation' value='/websphere8.5/InstallationManager/eclipse'/>" install.xml
sed -i "4 a\</profile>" install.xml
/installc -log /tmp/install.txt -sP -acceptLicense
 
 

Tuesday, March 10, 2015

CWSIS1535E The messaging engine's unique id (ME_UUID) does not match that found in the data store issue in infosphere MDM

SIB Message Engine has a unique UUID.The UUID can be found in websphere administrative console.

Navigate to Buses > Busname > Messaging engines.

If you are using datasore check in the DB whether the Messaging engine UUID matches or not.If it is  not matching thenyou will get this error.

Please refer the IBM Link for resolution.

make sure the Create tables checkbox is checked.
Restart the MDM server and the tables will be containing the new entries.

If Messaging engine did not start your MDM JVM will not start .



Wednesday, February 4, 2015

Websphere application server template creattion in WAS 8.5

In Websphere Templates were available to create a standardised environment without much repetitive work.

To create a server template a single application server has to be created before.You can configure all the settings to that application server and create a template using that server

This is an example in WAS 8.5,




To understand how template work and benefits please visit the IBM Developer Link