WebSphere Application Server Script Library

I found some pre-defined jython scripts in the WAS installed dir I didn’t know existed… 😉

/scriptLibraries/

E.g. performance tunning.

$ cd /scriptLibraries/perfTuning/V70


$ ../../../bin/wsadmin.sh -f applyPerfTuningTemplate.py -clusterName MDM -templateFile ./peak.props -username -password
WASX7209I: Connected to process "dmgr" on node centos6i386CellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-clusterName, MDM, -templateFile, ./peak.props]"

Completed parsing parameters...
templateFile - ./peak.props
clusterName - MDM

Resolving cluster targets...

Applying server level tuning parameters for server:
----------------------------------------------------------------------
Cell: centos6i386Cell01 Type: DISTRIBUTED
Node: centos6i386Node01 Platform: linux
Version: 7.0.0.21
Server: mdmsrv01 Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying tuning parameters using property based configuration...
Log File : /usr/IBM/WebSphere/AppServer/v70/profiles/AppSrv01/logs/perfTuning.log
Template File : /usr/IBM/WebSphere/AppServer/v70/scriptLibraries/perfTuning/V70/./peak.props
NOTE: Please consult the report.log file to review results of property
based configuration.

Applying additional tuning parameters via normal wsadmin processing...

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to DefaultEJBTimerDataSource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Server level tuning complete!

Applying server level tuning parameters for server:
----------------------------------------------------------------------
Cell: centos6i386Cell01 Type: DISTRIBUTED
Node: centos6i386Node01 Platform: linux
Version: 7.0.0.21
Server: mdmsrv02 Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying tuning parameters using property based configuration...
Log File : /usr/IBM/WebSphere/AppServer/v70/profiles/AppSrv01/logs/perfTuning.log
Template File : /usr/IBM/WebSphere/AppServer/v70/scriptLibraries/perfTuning/V70/./peak.props
NOTE: Please consult the report.log file to review results of property
based configuration.

Applying additional tuning parameters via normal wsadmin processing...

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to DefaultEJBTimerDataSource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Server level tuning complete!

Applying cluster level tuning parameters for cluster:
----------------------------------------------------------------------
Cluster: MDM Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Cluster level tuning complete!

Saving the configuration changes...
NOTE: Server may require restart for all tuning changes to take effect.
Script completed!

Plenty of other goodies in here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s