ubuntu changing dash to bash

$ sudo update-alternatives --install /bin/sh sh /bin/bash 100
update-alternatives: using /bin/bash to provide /bin/sh (sh) in auto mode.

$ sudo update-alternatives --install /bin/sh sh /bin/dash 200
update-alternatives: using /bin/dash to provide /bin/sh (sh) in auto mode.

$ sudo update-alternatives --config sh
There are 2 choices for the alternative sh (providing /bin/sh).

Selection Path Priority Status
------------------------------------------------------------
* 0 /bin/dash 2 auto mode
1 /bin/bash 1 manual mode
2 /bin/dash 2 manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /bin/bash to provide /bin/sh (sh) in manual mode.

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.