Jython
Today i read a question in the IBM Connections Forum about setting the EMPLOYEE_EXTENDED role to all users in a Connections deployment.
Last Update: Read in about 1 min
As preparation for Social Connections VI in Prague next week i redesigned the Administration Scripts for IBM Websphere .
Some highlights:
all scripts are moved to a subfolder with DMGR/bin (folder name: ibmcnx)
tested in multinode environments
added some classes everybody can use for his own scripts
adding policies to libraries (personal and communities) are using search now
New scripts:
documentation of all jvm settings of each application server
create a file with all documentation in one step
create cluster members for additional nodes
Sharon created a document with the content of all of our presentations and collected several tipps all around connections and community scripts. She will share this next time. We started to share parts of this document and more documentations (installation, usage) for scripts and IBM Connections on:
Last Update: Read in about 1 min
It was little bit quiet here after Connect 2014. I had lots of projects and no time to add new scripts or even do bug fixing.
I promised at Connect, that i will fix the JDBC drivers, that they will load on Windows too. See cnxMemberCheckExIDByEmail.py as an example.
Loading JDBC Drivers within jython scripts
Jan Riedel sent me a solution for SLES and i tested his proposal today within Windows. He points me in the right direction, i mustn’t load the path or jar within the script, it is better to load on starting wsadmin. You have to add the JDBC Driver path to WAS_EXT_DIRS.
Last Update: Read in about 2 min
I started a new project on OpenNTF for the collection of scripts we created to speed up and simplify WebSphere and Connections Administration.
Link to this project: Administration Scripts for WebSphere
In the moment most of documentation is only as comment in these scripts. Descriptions can be found in Github and Scripting101 .
Highlights
J2EE Security Role Backup and Restore
Set initial Security Roles for Connections Applications (Author: Klaus Bild )
Documentation
When you want to start with this collection, copy the jython script to your Deployment Manager bin-folder ($WAS_HOME/profiles/Dmgr01/bin) and call the scripts with wsadmin.sh -f scriptname
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
Today i spoke at Social Connections V User Group Meeting in Zurich. What should i say. It was a pleasure and i enjoyed it very much. Hope we can discuss more scripts the next weeks.
Session Slides
Here you can watch the session slides:
Saving my time using scripts #soccnx #soccnxv
Scripts Download
You can download all scripts without warranty and on your own risk on:
http://www.github.com/stoeps13/ibmcnxscripting
Please download the master branch, develop and bugfix can contain not ready scripts.
Slidedownload soccnx
More Slides on http://www.slideshare.net/soccnx
Last Update: Read in about 1 min