Wsadmin

Within the fixlist of the new released CR3 of IBM Connections 5 there are several new configuration options mentioned. One of the interesting ones for me is the mobile update parameter AllowRemoveAccount. The default value is “false” and your Connections environment still works before, but what’s changed when you set this to true?
The official documentation is already uptodate and shows us:
When you set this option to true, accounts can be removed from a mobile device without requiring the user to login and without any authorization check. The user is asked to confirm the deletion of an account before it is removed.
Last Update: Read in about 3 min

Missing command history on Linux is a little problem when using command line utilities like wsadmin, db2, sqlplus and so on.
I found a solution for this today.
You can use rlwrap to get command history for all applications on the console and it is possible to recall and edit the commands. Rlwrap uses readline.
Installation on CentOS:
yum install readline-static gcc make
tar -xvzf rlwrap-0.41.tar.gz
cd rlwrap-0.41
./configure
make
make install
Call rlwrap with wsadmin:
rlwrap -r /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/wsadmin.sh -lang jython -username wasadmin -password password
rlwrap and db2
rlwrap -r db2
Use rlwrap everytime with alias
vim ~/.bash_profile
export WAS_HOME=/opt/IBM/WebSphere/AppServer
export DMGR=Dmgr01
alias db2='rlwrap -r db2'
alias wsadmin='cd $WAS_HOME/profiles/$DMGR/bin;rlwrap -r ./wsadmin.sh -lang jython'
Last Update: Read in about 1 min

Because of a delay of some hours on my flight back from Social Connections V on saturday, i had time to rewrite the jython script for backing up and restore security roles in WebSphere Application Server.
I updated the master branch on GitHub , which now contains a db2 initscript and the two new scripts securityrolebackup.py and securityrolerestore.py !
You can call the scripts through wsadmin.sh|bat and they do following.
securityrolebackup.sh
cd $WAS_HOME/profiles/Dmgr01/bin
./wsadmin.sh -lang jython -username admin -password password -f "path/securityrolebackup.sh" "../temp"
This will save the security roles for each installed application to
$WAS_HOME/profiles/Dmgr01/temp
to single files named: Application.txt.
Last Update: Read in about 2 min

Klaus Bild provided two scripts for setting Connections Admins through jython and wsadmin.
I want to add one detail, when you want to add multiple Admins, then you can use pipe | as delimiter.
First line would be
connwasadmin='wasadmin|conadmin'
Thanks Klaus, i like to set the admins through a script, because fixpack installations often set the j2ee roles to default.
Last Update: Read in about 1 min