Better Navigation in Connections Scripts

Created:
Last Update:

Author: Christoph Stoettner
Read in about 2 min · 262 words

Update

Photo by Markus Winkler | Unsplash

I haven’t touched the Connections scripts for a long time, but I recently made some minor updates to fix compatibility issues with newer versions and added small scripts to speed up configuration. I also got the documentation script running from the menu.

Today I addressed a common complaint about the menu system. Previously, it used only numbers for menu items, which meant that back and quit functions had different values across all submenus. This was confusing for users.

While adding a new script to set the CookieSameSite custom property for the Session manager, I took the opportunity to redesign the menu. Now, pressing [b] will take you back from submenus to the main menu, and [q] will quit the script menu entirely, providing consistent navigation throughout.

Here you can see the new main menu:

----------------------------------------------------------------------
             IBM WebSphere and HCL Connections Main Menu
----------------------------------------------------------------------


                        [1] Configuration
                        [2] Security Roles
                        [3] Check/Monitoring
                        [4] User Profiles
                        [5] Administration
                        [6] Documentation

                        [Q]uit | [H]elp

Please select a number:

versus the old one:

2014-06-12_17-45-44

And the configuration menu as example:

----------------------------------------------------------------------
        IBM WebSphere and HCL Connections Configuration Tasks
----------------------------------------------------------------------


                [1] Configure DataSources (Tuning)
                [2] Set JVM Heap Sizes (Tuning)
                [3] Set SystemOut and SystemErr Log Size
                [4] Set Log language to english
                [5] AppServer Monitoring Policy
                [6] Set Custom Cache Parameter
                [7] Set JVM Trace Settings
                [8] Set WebSession Timeout
                [9] Disable x-powered-by header
                [10] Set CookiesSameSite
                [11] Change DB server and port
                [12] Create new Cluster members
                [13] Synchronize all nodes

        [B]ack to main menu | [Q]uit | [H]elp

Please select a number:

versus the former version:

2014-06-12_17-46-59

Comments
Error
There was an error sending your comment, please try again.
Thank you!
Your comment has been submitted and will be published once it has been approved.
Success!
Your comment has been posted successfully.

Comments

Loading comments...

Leave a Comment

Your email address will not be published. Required fields are marked with *

Suggested Reading
Aaron Burden: Fountain pen and a notebook

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:

Created:
Last Update:
Read in about 1 min
Aaron Burden: Fountain pen and a notebook

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

Created:
Last Update:
Read in about 1 min
Aaron Burden: Fountain pen and a notebook

Setting the performance tuning parameters for all datasources in WebSphere Application Server (for IBM Connections 4 ) is a really annoying job with lots of mouse clicks.

I searched a way to make these through wsadmin with a jython script and after some testing i wrote one, which set all parameters for the Connections DataSources as described in IBM Connections 4 Performance Tuning Guide .

I set StatementCacheSize, minConnections and maxConnections with this script.

Download:

changeDataSourceParameters

Using this script

Copy this script to your server and copy & paste it to a wsadmin-Session, or start wsadmin with

Created:
Last Update:
Read in about 1 min