SlideShare a Scribd company logo
Practical Solutions for
Connections Administrators
Tips and Scripts for Your Daily Business
1#engageug
Christoph Stöttner, Fritz & Macziol GmbH
Sharon Bellamy, Cube Soft Consulting Ltd.
Giving Credit
•This presentation mentions the following Copyrights and
Trademarks
•IBM® Notes®
•IBM® Domino®
•IBM® Connections
•IBM® WebSphere®
•IBM® DB2
•IBM® AIX®
•Tivoli®
•Linux®
•Java®
•Microsoft® Windows®
•Red Hat® Linux®
•Twitter®
•Skype®
2#engageug
Who Are We?
Christoph Stoettner
Bavarian, Dad of two, likes
hiking
Administrator
Specialized in the infrastructure
of IBM Connections and IBM
Domino
Lover of Linux
Sharon Bellamy
Mum of three, Star Wars &
Disney fan
Administrator
Specialized in the
infrastructure of IBM
Connections and IBM
WebSphere
Lover of Linux
3#engageug
Agenda
•Installing and Configuring
•Autostart
•IBM WebSphere
•DB2 (Linux)
•IBM HTTP Server
•Performance Tuning
DataSources
•Setting J2EE Security Roles
•Configure JVM Log Files
•Set JVM Heap Sizes
•HTTPServer and mod_deflate
•Business as Usual
•Check External ID against LDAP
•Activate and Deactivate Users
•Synchronize User External IDs
•Work with Policies
•Adding Policies to personal or
community libraries
•Database reorganisation
•Backup DB2 (online, offline)
4#engageug
Agenda (2)
•Troubleshooting
•Application state
•Database access
•Scheduler
•Documenting
•JVM Heap Sizes
•JVM Log Settings
•Used Ports within WebSphere
•WebSphere Variables
5#engageug
Disclaimer & Caution
•With scripts
•Shell / BASH / ZSH / KSH / SH, Jython / JACL
•Powershell / Batch / VB, SQL
•You can...
•Save a lot of time!
•Change many things in seconds!
•TIPPS:
•Be Careful! Think twice!
•Create Backups
•Install a Testsystem
•Document your changes
6#engageug
Use all scripts shown in this slides or
downloaded from our repositories WITHOUT
WARRANTY and at your own risk!
Installing & Configuring
7#engageug
Autostart IBM WebSphere Application Server
•Many different ways found and discussed
•Easiest and most reliable way
•Deployment Manager and Nodeagents as Services
•Application Servers through Monitoring Policies
•Starting Application Servers through Service, Batch or
Shell Script has often side effects
•Problems with Cluster Failover
•Dependencies
•Register Services with wasservice.bat|sh
•Remember to set Monitoring Policy to “Stopped” when you
install Fixes!
8#engageug
Register WebSphere Service on Linux
9#engageug
Register WebSphere Service on Windows
10#engageug
cd %WAS_HOME%/bin
wasservice.bat -add Dmgr -serverName dmgr -profilePath
D:IBMWebSphereAppServerprofilesDmgr01 -encodeParams -
restart true -startType automatic -stopArgs "-username wasadmin
-password password"
wasservice.bat -add Node -serverName nodeagent -profilePath
D:IBMWebSphereAppServerprofilesAppSrv01 -encodeParams -
restart true -startType automatic -stopArgs "-username wasadmin
-password password –stopservers"
Configure Monitoring Policy
•ISC:
•Open each Application Server (1 – 15 x)
•Server – Infrastructure – Java and Process Management – Monitoring
Policy
•Change Node restart state to “RUNNING”
•WSADMIN:
•./wsadmin.sh -lang jython -f cfgMonitoringPolicy.py
11#engageug
Autostart IBM HTTP Server
•Windows Installer create a Service for IHS and Admin
Service
•httpd.exe -k install (-c httpd.conf|admin.conf) -n "IBM HTTP Server 8"
•Easiest way for Linux | AIX:
•Create Symbolic Link:
•ln -s /opt/IBM/HTTPServer/bin/apachectl /etc/init.d/
•ln -s /opt/IBM/HTTPServer/bin/adminctl /etc/init.d/
•Add Service
•chkconfig –add apachectl
•chkconfig –add adminctl
13#engageug
Autostart IBM HTTP Server
•Windows Installer create a Service for IHS and Admin
Service
•httpd.exe -k install (-c httpd.conf|admin.conf) -n "IBM HTTP Server 8"
•Easiest way for Linux | AIX:
•Create Symbolic Link:
•ln -s /opt/IBM/HTTPServer/bin/apachectl /etc/init.d/
•ln -s /opt/IBM/HTTPServer/bin/adminctl /etc/init.d/
•Add Service
•chkconfig –add apachectl
•chkconfig –add adminctl
14#engageug
Autostart DB2 (Red Hat / CentOS)
•DB2 V9 is started through /etc/inittab entry
•inittab is deprecated in RHEL/CENTOS 6
•https://www-304.ibm.com/support/docview.wss?uid=swg21497220
•DB2 V10.1 can handle /etc/init/db2fmcd.conf
•In my case /etc/init/db2fmcd.conf wasn't enough
•I added following script (copy of db2fmcd) to /etc/init for
each DB2 instance:
15#engageug
Performance Tuning
•Performance Tuning IBM Connections
•Increase min- and maxConnections of Data Sources
•Performance Tuning Guide IBM Connections 4.0
•Performance Tuning Guide Addendum
•Review these settings periodically with “Tivoli Performance Viewer”
•IBM Connections Forum:
•After Update to IBM Connections 4.5 Errors on
createOrWaitForConnection
•(Ressource jdbc/search)
16#engageug
Configure Data Sources
•18 Data Sources to Change
(about 100 mouse clicks)
•Why not using a script:
•wsadmin.sh -lang jython -f
cfgDataSource.py
•About 30 seconds to change all
needed parameters of all Data
Sources
•Start with Performance Tuning
Guide and Addendum
•Monitor values!
17#engageug
18#engageug
Set J2EE Security Roles
•First found on Klaus Bilds Blog: http://kbild.ch
•Extended version with Group support and input option
•No need to edit the script
•Two versions:
•Restricted
•Each application ask for credentials, no data visible for anonymous
Users
•Unrestricted
•Default Settings, some content is visible to Anonymous Users
•Remember:
•Applications restart automatically, when you change J2EE Roles
19#engageug
Set J2EE Roles for special applications
•Some applications are configured different from
environment to environment
•Save time and use following scripts:
•cfgJ2EERoleGlobalModerator.py
•cfgJ2EERoleMetricsReader.py
•cfgJ2EERoleMetricsReportRun.py
•cfgJ2EERoleSocialMail.py
•Deactivate or activate the application for users and groups
20#engageug
J2EE Security Roles - BACKUP
•CR and Fixpack Installations pre IBM Connections 4.0
often reset J2EE Roles to Default
•Problems:
•Restricted environments can be visible to Internet Users (Search Bots)
•Check with Google: site:yourconnectionshost
•Configuration needs time and documentation (who is allowed to
administrate, moderate …)
•Script writes text files as backup to a local folder
•Roles of all installed applications (IBM Docs, Forms
Experience Builder,...)
•./wsadmin.sh -lang jython -f cfgJ2EERoleBackup.py
22#engageug
23#engageug
J2EE Security Roles - RESTORE
•Backups of Security Roles can be restored
•Advantages:
•All manually configured roles will be set like before
•You can edit the backup files to add or change users
•Backup of Dev or QA Systems can be restored in production (Admin
Users and Groups must exist there)
•./wsadmin.sh -lang jython -f cfgJ2EERoleRestore.py
24#engageug
25#engageug
Configure JVM Log Files
•Default Setting for JVM Log Files
(SystemOut.log & SystemErr.log):
•Size: 1 MB
•No historical Log Files
•Too small to troubleshoot errors
•Better:
•Size: 20 – 40 MB
•5-10 historical Log Files
•wsadmin.sh -lang jython -f
cfgLogFiles.py
26#engageug
27#engageug
Set JVM Heap Sizes
•Performance Tuning Guide provides some proposals for
JVM Max Heap and Initial Heap
•Must be set on Deployment Manager, Nodeagents and
Application Servers
•You can monitor through Verbose Garbage Collection
•minHeap = maxHeap can increase performance up to 10%
•WebSphere Tech Journal
•Script: cfgJVMHeap.py
•Shows actual size of initialHeapSize and maximumHeapSize for all JVM
•Asks initialHeapSize and maximumHeapSize for all JVM
•“Return” leaves actual setting
28#engageug
29#engageug
Business as usual
30#engageug
Prepare your environment
•Some scripts need jdbc driver to access data
•Details in the scripting documentation
•Easiest way:
•Edit %WAS_HOME%profilesDmgr01binsetupCmdLine.bat
•ADD the JDBC PATH (D:IBMJDBC or D:IBMSQLLIBjava) to
WAS_EXT_DIRS
•Better
•copy wsadmin.bat and setupCmdLine.bat to edit and use them with the
scripts
•Edit the scripts cnxMember* and provide JDBC Driver,
User and Password
31#engageug
Prepare your environment
32#engageug
Check External IDs against LDAP
•Sometimes User can't logon to single Connections
Applications
•ExtIDs are out of sync, Several Error messages
•Script to check if LDAP UUIDs (GUID, SID) are equal to
Connections UUID
•Edit cnxMemberCheckExIDByEmail.py
•You must edit the script and change following:
•Set the used JDBC Driver (DB2, SQL Server, Oracle)
•DB User and Password
•DB Host, Port, peopleDB name
•Script reads PROF_GUID from peopleDB through JDBC
•Check UUID in Applications
33#engageug
34#engageug
Deactivate and Activate Users
•After rename or sometimes without real reason
•Users get out of sync
•They can open Profiles, but no other Application
•Or they have problems with a single App
•Deactivating and Reactivating through ProfilesService can be a
resolution for this
•When you want to reactivate a user you must provide UID
and EMAIL (was deleted through Deactivate)
•Script: cnxMemberDeactAndActByEmail.py
•Stores UID and Mail in memory
•Edit the script and provide your JDBC Driver, User and URL
35#engageug
36#engageug
Work with Files Policies
•Creating or editing Policies is sometimes a pain
•Library size must be provided as Long
•(e.g. 2 GB = 2147483648L)
•Edit example
•FilesPolicyService.edit("2d93497d-065a-4022ae25-a4b52598d11a",
"My Policy", 2147483648L)
•Find UUID of Policy to edit, copy the size from calculator …
•wsadmin.sh -lang jython -f CnxFilesPolicies.py
39#engageug
40#engageug
Add Policies to Libraries
•You need UUID from Policy and Community
•Community Listing provides too much information, hard to find UUID
•Example assign Policy
•FilesLibraryService.assignPolicy("f0d01111-9b21-4dd8-b8be-
8825631cb84b", "2d93497d-065a-4022ae25-a4b52598d11a")
•Script POC
•cnxLibraryPolicies.py
•Listing of all Communities
•and Policies
•To Do:
•Search Option
41#engageug
42#engageug
Reparenting Communities
•Klaus Bild created a script to use the new 4.5 CR3 function
to move Communities
•It is much easier than the way with UUID
43#engageug
44#engageug
DB2 – Database Optimization
•Performance Tuning Guide:
•Reorganization (change physical data arrangement on disc) should be
done when a significant amount of data is added
•Runstat should be run regularly to ensure that queries are being
executed optimally
•Reorganization can be done with SQL Scripts which can
be found in connections.sql folder of Connections Wizards
Package
•Runstat can be configured through automatic maintenance
45#engageug
Troubleshooting
55#engageug
Are All Applications running
•To check If all IBM Connections Applications are running
•Go to ISC – Applications – Application Types - WebSphere Enterprise
Applications
•Start wsadmin.sh -lang jython -f checkAppStatus.py
•Get a grouped list with running and stopped applications
•Create a Batch / Shell Script to call this regularly or use it
with a Monitoring Software
56#engageug
Can WebSphere connect to DataSources
•To check If all Data Sources can be reached
•Go to ISC – Resources – JDBC – Data sources
•Check all Data Sources and click Test connection
•Use a script
•wsadmin.sh -lang jython -f checkDataSource.py
57#engageug
Documentation
58#engageug
JVM Heap Sizes – checkJVMHeap.py
•Many places to look for this values
•Script to collect it and print it out
59#engageug
JVM Log Settings – checkLogFiles.py
•Documentation of JVM Log Settings
60#engageug
Used Ports – checkPorts.py
•Documentation of all Ports used in your WebSphere Cell
61#engageug
WebSphere Variables – checkVariables.py
•Good starting point for Troubleshooting too
•Documentation
62#engageug
Version Information – WebSphere, Connections
•IBM WebSphere show installed Version and Hotfixes
•$WAS_HOME/profiles/Dmgr01/bin/historyInfo.sh
•Show all Installed Fixes of IBM Connections
•cd $CONNECTIONS_ROOT
•./updateSilent.sh -fix -installDir /opt/IBM/Connections
63#engageug
Version Information – WebSphere, Connections
•IBM WebSphere show installed Version and Hotfixes
•$WAS_HOME/profiles/Dmgr01/bin/historyInfo.sh
•Show all Installed Fixes of IBM Connections
•cd $CONNECTIONS_ROOT
•./updateSilent.sh -fix -installDir /opt/IBM/Connections
64#engageug
Resources
65#engageug
Add On – cnxmenu.py
•Menu for all Jython Scripts
66#engageug
Download all shown scripts
•You can download all scripts (and some more) WITHOUT
WARRENTY and at your own risk:
•https://github.com/stoeps13/ibmcnxscripting
•
•OpenNTF Project since 21st november 2014 –
Administration Scripts for WebSphere
•http://preview.tinyurl.com/otmq6mj
67#engageug
Engage
•Work with us on the scripts
•Discuss new ideas
•You can help
•create documentation
•test scripts in your environments
68#engageug
Contact Details
Christoph Stoettner
•Skype: christophstoettner
•Twitter: stoeps
•Blog: http://www.stoeps.de
•http://about.me/stoeps
Sharon Bellamy
•Skype: dilftechnical
•Twitter: socialshazza
•Blog:
•http://dilf.me.uk
•http://cube-soft.co.uk
•http://about.me/sharonbellamy
69#engageug
Skype Chats:
• Linux ICS
• IBM Connections
If you are interested in joining, connect with us on skype and we will add you
Thank You!
70#engageug

More Related Content

PDF
Connections install in 45 mins
Sharon James
 
PDF
Sa106 – practical solutions for connections administrators
Sharon James
 
PDF
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Sharon James
 
PDF
Practical solutions for connections administrators
Sharon James
 
PDF
You don't want to do it like that
Sharon James
 
PDF
The Sametime Mobile Experience
Gabriella Davis
 
PDF
IAmLUG presentation: Domino Admin Best Practices - Hunting the Gremlins
David Hablewitz
 
PDF
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
Chris Miller
 
Connections install in 45 mins
Sharon James
 
Sa106 – practical solutions for connections administrators
Sharon James
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Sharon James
 
Practical solutions for connections administrators
Sharon James
 
You don't want to do it like that
Sharon James
 
The Sametime Mobile Experience
Gabriella Davis
 
IAmLUG presentation: Domino Admin Best Practices - Hunting the Gremlins
David Hablewitz
 
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
Chris Miller
 

What's hot (20)

PDF
What We Wish We Had Known: Becoming an IBM Connections Administrator
Gabriella Davis
 
PDF
Planning & Completing An IBM Connections Upgrade
Gabriella Davis
 
PDF
1084: Planning and Completing an IBM Connections Upgrade
Gabriella Davis
 
PDF
Becoming A Connections Administrator
Gabriella Davis
 
PDF
Planning and Completing an IBM Connections Upgrade
Gabriella Davis
 
PDF
SmartCloud Administration Best Practices MWLUG 2016
David Hablewitz
 
PPTX
Inform2015 - What's New in Domino 9 & 9.0.1 for Admins
Jared Roberts
 
PDF
Taking IBM Sametime Mobile
Gabriella Davis
 
PDF
be the captain of your connections deployment
Sharon James
 
PDF
Fixing Domino Server Sickness
Gabriella Davis
 
PDF
Open mic on what's new in domino 9 social edition
sreeJk
 
POTX
IBM Domino / IBM Notes Performance Tuning
Vladislav Tatarincev
 
PDF
What's New in Notes, Sametime and Verse On-Premises
Gabriella Davis
 
PDF
Digital Nightmares - The Biggest Performance Killers in Your Environment
Wes Morgan
 
PPTX
Domino Security - not knowing is not an option - MWLUG 2015
Darren Duke
 
PDF
Setting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Gabriella Davis
 
PDF
The Gurubox Project: Open Source Troubleshooting Tools
Wes Morgan
 
PDF
Adm02. IBM Connections Adminblast
panagenda
 
PPTX
HCL Domino V12 Key Security Features Overview
hemantnaik
 
PDF
Connect2016 - 1172 Shipping domino
Matteo Bisi
 
What We Wish We Had Known: Becoming an IBM Connections Administrator
Gabriella Davis
 
Planning & Completing An IBM Connections Upgrade
Gabriella Davis
 
1084: Planning and Completing an IBM Connections Upgrade
Gabriella Davis
 
Becoming A Connections Administrator
Gabriella Davis
 
Planning and Completing an IBM Connections Upgrade
Gabriella Davis
 
SmartCloud Administration Best Practices MWLUG 2016
David Hablewitz
 
Inform2015 - What's New in Domino 9 & 9.0.1 for Admins
Jared Roberts
 
Taking IBM Sametime Mobile
Gabriella Davis
 
be the captain of your connections deployment
Sharon James
 
Fixing Domino Server Sickness
Gabriella Davis
 
Open mic on what's new in domino 9 social edition
sreeJk
 
IBM Domino / IBM Notes Performance Tuning
Vladislav Tatarincev
 
What's New in Notes, Sametime and Verse On-Premises
Gabriella Davis
 
Digital Nightmares - The Biggest Performance Killers in Your Environment
Wes Morgan
 
Domino Security - not knowing is not an option - MWLUG 2015
Darren Duke
 
Setting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Gabriella Davis
 
The Gurubox Project: Open Source Troubleshooting Tools
Wes Morgan
 
Adm02. IBM Connections Adminblast
panagenda
 
HCL Domino V12 Key Security Features Overview
hemantnaik
 
Connect2016 - 1172 Shipping domino
Matteo Bisi
 
Ad

Viewers also liked (20)

PPTX
Smile
afiguerac
 
PPT
Seo bagi Pemula
Gempur Abdul Ghofur
 
PPTX
Pdhpe rationale
Seyda Celik
 
PDF
Presentation Kokot'
Quang Hoang
 
PPTX
Sunuş teknikleri
micanga
 
DOC
Viking persuasive essay
Firebase
 
PPT
Schizophrenia
iamaschizo123
 
PPTX
Sunuş teknikleri
micanga
 
PDF
Snapchat la tendencia que no desaparece
Creátika
 
PPTX
Ruim alles nu op anders blijf je het
razorblader
 
PDF
Disseny del projecte_de_treball_col_laboratiu
afiguerac
 
PPTX
1 archana history modified
justbalu
 
PDF
Mastering metrics and coping with cognos
Sharon James
 
PDF
Catalog 2014
Dagmar Branding
 
PPSX
Quin invent sóc2 2n a
afiguerac
 
PDF
Sutol How To Be A Lion Tamer
Sharon James
 
PDF
FELIZ CUMPLEAÑOS, TOMMY
Annie NaRuz
 
PDF
"Bocaditos" Social Media
Creátika
 
PDF
Fazenda 4.840 hectares a venda em Formosa, Goiás, Brasil
SILVANO REIS
 
PPTX
6 bhargav final presentation
justbalu
 
Smile
afiguerac
 
Seo bagi Pemula
Gempur Abdul Ghofur
 
Pdhpe rationale
Seyda Celik
 
Presentation Kokot'
Quang Hoang
 
Sunuş teknikleri
micanga
 
Viking persuasive essay
Firebase
 
Schizophrenia
iamaschizo123
 
Sunuş teknikleri
micanga
 
Snapchat la tendencia que no desaparece
Creátika
 
Ruim alles nu op anders blijf je het
razorblader
 
Disseny del projecte_de_treball_col_laboratiu
afiguerac
 
1 archana history modified
justbalu
 
Mastering metrics and coping with cognos
Sharon James
 
Catalog 2014
Dagmar Branding
 
Quin invent sóc2 2n a
afiguerac
 
Sutol How To Be A Lion Tamer
Sharon James
 
FELIZ CUMPLEAÑOS, TOMMY
Annie NaRuz
 
"Bocaditos" Social Media
Creátika
 
Fazenda 4.840 hectares a venda em Formosa, Goiás, Brasil
SILVANO REIS
 
6 bhargav final presentation
justbalu
 
Ad

Similar to Practical solutions for connections administrators lite (20)

PDF
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
panagenda
 
PPTX
Soccnx10: Best and worst practices deploying IBM Connections
panagenda
 
PPTX
Best And Worst Practices Deploying IBM Connections
LetsConnect
 
ODP
Debugging IBM Connections for the Impatient Admin - Social Connections VII
Martin Leyrer
 
PDF
Best and worst practices deploying IBM Connections
LetsConnect
 
PDF
BEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONS
Nico Meisenzahl
 
PDF
IconUS 2016 conference - Connections Administration Skills
Victor Toal
 
PDF
Social Conndections VI -- Debugging IBM Connections During Install And Operation
Martin Leyrer
 
PPTX
Solutions to reduce Total Cost of Setup (TCS) and simplify your life! - #iJac...
Andrea Fontana
 
PDF
Tip from ConnectED 2015: Best and Worst Practices Deploying IBM Connections
SocialBiz UserGroup
 
PDF
A Hitchhiker's Guide to troubleshooting IBM Connections
ICON UK EVENTS Limited
 
PDF
A hitchhiker’s guide to troubleshooting ibm connections
Sharon James
 
PDF
IBM Connections administration – keep your systems running the right way
LetsConnect
 
PDF
Setup and configuration for ibm tivoli access manager for enterprise single s...
Banking at Ho Chi Minh city
 
PDF
Setup and configuration for ibm tivoli access manager for enterprise single s...
Banking at Ho Chi Minh city
 
PDF
WebSphere Application Server Administration Using Jython 1st Edition Robert A...
siwbramy
 
PPTX
Mwlug2014 - IBM Connections Security and Migration
Victor Toal
 
PDF
Christoph Stoettner - Save my time using scripts
LetsConnect
 
PDF
External Users Accessing Connections
Gabriella Davis
 
PPTX
The Dev-Admin Chimera: Customising Connections (with Gab Davis)
Mark Myers
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
panagenda
 
Soccnx10: Best and worst practices deploying IBM Connections
panagenda
 
Best And Worst Practices Deploying IBM Connections
LetsConnect
 
Debugging IBM Connections for the Impatient Admin - Social Connections VII
Martin Leyrer
 
Best and worst practices deploying IBM Connections
LetsConnect
 
BEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONS
Nico Meisenzahl
 
IconUS 2016 conference - Connections Administration Skills
Victor Toal
 
Social Conndections VI -- Debugging IBM Connections During Install And Operation
Martin Leyrer
 
Solutions to reduce Total Cost of Setup (TCS) and simplify your life! - #iJac...
Andrea Fontana
 
Tip from ConnectED 2015: Best and Worst Practices Deploying IBM Connections
SocialBiz UserGroup
 
A Hitchhiker's Guide to troubleshooting IBM Connections
ICON UK EVENTS Limited
 
A hitchhiker’s guide to troubleshooting ibm connections
Sharon James
 
IBM Connections administration – keep your systems running the right way
LetsConnect
 
Setup and configuration for ibm tivoli access manager for enterprise single s...
Banking at Ho Chi Minh city
 
Setup and configuration for ibm tivoli access manager for enterprise single s...
Banking at Ho Chi Minh city
 
WebSphere Application Server Administration Using Jython 1st Edition Robert A...
siwbramy
 
Mwlug2014 - IBM Connections Security and Migration
Victor Toal
 
Christoph Stoettner - Save my time using scripts
LetsConnect
 
External Users Accessing Connections
Gabriella Davis
 
The Dev-Admin Chimera: Customising Connections (with Gab Davis)
Mark Myers
 

More from Sharon James (12)

PDF
Microsoft Teams management
Sharon James
 
PDF
Make Domino & Office 365 your Dream Team
Sharon James
 
PDF
Best practises vop
Sharon James
 
PDF
Connections Worst Practises
Sharon James
 
PDF
Hitchhickers Guide to Troubleshooting Connections from Think 2018
Sharon James
 
PDF
Connections Migration soccnx12
Sharon James
 
PDF
Migration from 5 to Connections 6 - been there, done that
Sharon James
 
PDF
Sutol - A Hitchhiker’s Guide to troubleshooting IBM Connections
Sharon James
 
PDF
How to be a lion tamer
Sharon James
 
PDF
Bp102 a ray of sunshine through the cloud -mwlug
Sharon James
 
PDF
Connections Migrations the easy way Soccnx10
Sharon James
 
PDF
Connections customization lite
Sharon James
 
Microsoft Teams management
Sharon James
 
Make Domino & Office 365 your Dream Team
Sharon James
 
Best practises vop
Sharon James
 
Connections Worst Practises
Sharon James
 
Hitchhickers Guide to Troubleshooting Connections from Think 2018
Sharon James
 
Connections Migration soccnx12
Sharon James
 
Migration from 5 to Connections 6 - been there, done that
Sharon James
 
Sutol - A Hitchhiker’s Guide to troubleshooting IBM Connections
Sharon James
 
How to be a lion tamer
Sharon James
 
Bp102 a ray of sunshine through the cloud -mwlug
Sharon James
 
Connections Migrations the easy way Soccnx10
Sharon James
 
Connections customization lite
Sharon James
 

Recently uploaded (20)

PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Software Development Methodologies in 2025
KodekX
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 

Practical solutions for connections administrators lite

  • 1. Practical Solutions for Connections Administrators Tips and Scripts for Your Daily Business 1#engageug Christoph Stöttner, Fritz & Macziol GmbH Sharon Bellamy, Cube Soft Consulting Ltd.
  • 2. Giving Credit •This presentation mentions the following Copyrights and Trademarks •IBM® Notes® •IBM® Domino® •IBM® Connections •IBM® WebSphere® •IBM® DB2 •IBM® AIX® •Tivoli® •Linux® •Java® •Microsoft® Windows® •Red Hat® Linux® •Twitter® •Skype® 2#engageug
  • 3. Who Are We? Christoph Stoettner Bavarian, Dad of two, likes hiking Administrator Specialized in the infrastructure of IBM Connections and IBM Domino Lover of Linux Sharon Bellamy Mum of three, Star Wars & Disney fan Administrator Specialized in the infrastructure of IBM Connections and IBM WebSphere Lover of Linux 3#engageug
  • 4. Agenda •Installing and Configuring •Autostart •IBM WebSphere •DB2 (Linux) •IBM HTTP Server •Performance Tuning DataSources •Setting J2EE Security Roles •Configure JVM Log Files •Set JVM Heap Sizes •HTTPServer and mod_deflate •Business as Usual •Check External ID against LDAP •Activate and Deactivate Users •Synchronize User External IDs •Work with Policies •Adding Policies to personal or community libraries •Database reorganisation •Backup DB2 (online, offline) 4#engageug
  • 5. Agenda (2) •Troubleshooting •Application state •Database access •Scheduler •Documenting •JVM Heap Sizes •JVM Log Settings •Used Ports within WebSphere •WebSphere Variables 5#engageug
  • 6. Disclaimer & Caution •With scripts •Shell / BASH / ZSH / KSH / SH, Jython / JACL •Powershell / Batch / VB, SQL •You can... •Save a lot of time! •Change many things in seconds! •TIPPS: •Be Careful! Think twice! •Create Backups •Install a Testsystem •Document your changes 6#engageug Use all scripts shown in this slides or downloaded from our repositories WITHOUT WARRANTY and at your own risk!
  • 8. Autostart IBM WebSphere Application Server •Many different ways found and discussed •Easiest and most reliable way •Deployment Manager and Nodeagents as Services •Application Servers through Monitoring Policies •Starting Application Servers through Service, Batch or Shell Script has often side effects •Problems with Cluster Failover •Dependencies •Register Services with wasservice.bat|sh •Remember to set Monitoring Policy to “Stopped” when you install Fixes! 8#engageug
  • 9. Register WebSphere Service on Linux 9#engageug
  • 10. Register WebSphere Service on Windows 10#engageug cd %WAS_HOME%/bin wasservice.bat -add Dmgr -serverName dmgr -profilePath D:IBMWebSphereAppServerprofilesDmgr01 -encodeParams - restart true -startType automatic -stopArgs "-username wasadmin -password password" wasservice.bat -add Node -serverName nodeagent -profilePath D:IBMWebSphereAppServerprofilesAppSrv01 -encodeParams - restart true -startType automatic -stopArgs "-username wasadmin -password password –stopservers"
  • 11. Configure Monitoring Policy •ISC: •Open each Application Server (1 – 15 x) •Server – Infrastructure – Java and Process Management – Monitoring Policy •Change Node restart state to “RUNNING” •WSADMIN: •./wsadmin.sh -lang jython -f cfgMonitoringPolicy.py 11#engageug
  • 12. Autostart IBM HTTP Server •Windows Installer create a Service for IHS and Admin Service •httpd.exe -k install (-c httpd.conf|admin.conf) -n "IBM HTTP Server 8" •Easiest way for Linux | AIX: •Create Symbolic Link: •ln -s /opt/IBM/HTTPServer/bin/apachectl /etc/init.d/ •ln -s /opt/IBM/HTTPServer/bin/adminctl /etc/init.d/ •Add Service •chkconfig –add apachectl •chkconfig –add adminctl 13#engageug
  • 13. Autostart IBM HTTP Server •Windows Installer create a Service for IHS and Admin Service •httpd.exe -k install (-c httpd.conf|admin.conf) -n "IBM HTTP Server 8" •Easiest way for Linux | AIX: •Create Symbolic Link: •ln -s /opt/IBM/HTTPServer/bin/apachectl /etc/init.d/ •ln -s /opt/IBM/HTTPServer/bin/adminctl /etc/init.d/ •Add Service •chkconfig –add apachectl •chkconfig –add adminctl 14#engageug
  • 14. Autostart DB2 (Red Hat / CentOS) •DB2 V9 is started through /etc/inittab entry •inittab is deprecated in RHEL/CENTOS 6 •https://www-304.ibm.com/support/docview.wss?uid=swg21497220 •DB2 V10.1 can handle /etc/init/db2fmcd.conf •In my case /etc/init/db2fmcd.conf wasn't enough •I added following script (copy of db2fmcd) to /etc/init for each DB2 instance: 15#engageug
  • 15. Performance Tuning •Performance Tuning IBM Connections •Increase min- and maxConnections of Data Sources •Performance Tuning Guide IBM Connections 4.0 •Performance Tuning Guide Addendum •Review these settings periodically with “Tivoli Performance Viewer” •IBM Connections Forum: •After Update to IBM Connections 4.5 Errors on createOrWaitForConnection •(Ressource jdbc/search) 16#engageug
  • 16. Configure Data Sources •18 Data Sources to Change (about 100 mouse clicks) •Why not using a script: •wsadmin.sh -lang jython -f cfgDataSource.py •About 30 seconds to change all needed parameters of all Data Sources •Start with Performance Tuning Guide and Addendum •Monitor values! 17#engageug
  • 18. Set J2EE Security Roles •First found on Klaus Bilds Blog: http://kbild.ch •Extended version with Group support and input option •No need to edit the script •Two versions: •Restricted •Each application ask for credentials, no data visible for anonymous Users •Unrestricted •Default Settings, some content is visible to Anonymous Users •Remember: •Applications restart automatically, when you change J2EE Roles 19#engageug
  • 19. Set J2EE Roles for special applications •Some applications are configured different from environment to environment •Save time and use following scripts: •cfgJ2EERoleGlobalModerator.py •cfgJ2EERoleMetricsReader.py •cfgJ2EERoleMetricsReportRun.py •cfgJ2EERoleSocialMail.py •Deactivate or activate the application for users and groups 20#engageug
  • 20. J2EE Security Roles - BACKUP •CR and Fixpack Installations pre IBM Connections 4.0 often reset J2EE Roles to Default •Problems: •Restricted environments can be visible to Internet Users (Search Bots) •Check with Google: site:yourconnectionshost •Configuration needs time and documentation (who is allowed to administrate, moderate …) •Script writes text files as backup to a local folder •Roles of all installed applications (IBM Docs, Forms Experience Builder,...) •./wsadmin.sh -lang jython -f cfgJ2EERoleBackup.py 22#engageug
  • 22. J2EE Security Roles - RESTORE •Backups of Security Roles can be restored •Advantages: •All manually configured roles will be set like before •You can edit the backup files to add or change users •Backup of Dev or QA Systems can be restored in production (Admin Users and Groups must exist there) •./wsadmin.sh -lang jython -f cfgJ2EERoleRestore.py 24#engageug
  • 24. Configure JVM Log Files •Default Setting for JVM Log Files (SystemOut.log & SystemErr.log): •Size: 1 MB •No historical Log Files •Too small to troubleshoot errors •Better: •Size: 20 – 40 MB •5-10 historical Log Files •wsadmin.sh -lang jython -f cfgLogFiles.py 26#engageug
  • 26. Set JVM Heap Sizes •Performance Tuning Guide provides some proposals for JVM Max Heap and Initial Heap •Must be set on Deployment Manager, Nodeagents and Application Servers •You can monitor through Verbose Garbage Collection •minHeap = maxHeap can increase performance up to 10% •WebSphere Tech Journal •Script: cfgJVMHeap.py •Shows actual size of initialHeapSize and maximumHeapSize for all JVM •Asks initialHeapSize and maximumHeapSize for all JVM •“Return” leaves actual setting 28#engageug
  • 29. Prepare your environment •Some scripts need jdbc driver to access data •Details in the scripting documentation •Easiest way: •Edit %WAS_HOME%profilesDmgr01binsetupCmdLine.bat •ADD the JDBC PATH (D:IBMJDBC or D:IBMSQLLIBjava) to WAS_EXT_DIRS •Better •copy wsadmin.bat and setupCmdLine.bat to edit and use them with the scripts •Edit the scripts cnxMember* and provide JDBC Driver, User and Password 31#engageug
  • 31. Check External IDs against LDAP •Sometimes User can't logon to single Connections Applications •ExtIDs are out of sync, Several Error messages •Script to check if LDAP UUIDs (GUID, SID) are equal to Connections UUID •Edit cnxMemberCheckExIDByEmail.py •You must edit the script and change following: •Set the used JDBC Driver (DB2, SQL Server, Oracle) •DB User and Password •DB Host, Port, peopleDB name •Script reads PROF_GUID from peopleDB through JDBC •Check UUID in Applications 33#engageug
  • 33. Deactivate and Activate Users •After rename or sometimes without real reason •Users get out of sync •They can open Profiles, but no other Application •Or they have problems with a single App •Deactivating and Reactivating through ProfilesService can be a resolution for this •When you want to reactivate a user you must provide UID and EMAIL (was deleted through Deactivate) •Script: cnxMemberDeactAndActByEmail.py •Stores UID and Mail in memory •Edit the script and provide your JDBC Driver, User and URL 35#engageug
  • 35. Work with Files Policies •Creating or editing Policies is sometimes a pain •Library size must be provided as Long •(e.g. 2 GB = 2147483648L) •Edit example •FilesPolicyService.edit("2d93497d-065a-4022ae25-a4b52598d11a", "My Policy", 2147483648L) •Find UUID of Policy to edit, copy the size from calculator … •wsadmin.sh -lang jython -f CnxFilesPolicies.py 39#engageug
  • 37. Add Policies to Libraries •You need UUID from Policy and Community •Community Listing provides too much information, hard to find UUID •Example assign Policy •FilesLibraryService.assignPolicy("f0d01111-9b21-4dd8-b8be- 8825631cb84b", "2d93497d-065a-4022ae25-a4b52598d11a") •Script POC •cnxLibraryPolicies.py •Listing of all Communities •and Policies •To Do: •Search Option 41#engageug
  • 39. Reparenting Communities •Klaus Bild created a script to use the new 4.5 CR3 function to move Communities •It is much easier than the way with UUID 43#engageug
  • 41. DB2 – Database Optimization •Performance Tuning Guide: •Reorganization (change physical data arrangement on disc) should be done when a significant amount of data is added •Runstat should be run regularly to ensure that queries are being executed optimally •Reorganization can be done with SQL Scripts which can be found in connections.sql folder of Connections Wizards Package •Runstat can be configured through automatic maintenance 45#engageug
  • 43. Are All Applications running •To check If all IBM Connections Applications are running •Go to ISC – Applications – Application Types - WebSphere Enterprise Applications •Start wsadmin.sh -lang jython -f checkAppStatus.py •Get a grouped list with running and stopped applications •Create a Batch / Shell Script to call this regularly or use it with a Monitoring Software 56#engageug
  • 44. Can WebSphere connect to DataSources •To check If all Data Sources can be reached •Go to ISC – Resources – JDBC – Data sources •Check all Data Sources and click Test connection •Use a script •wsadmin.sh -lang jython -f checkDataSource.py 57#engageug
  • 46. JVM Heap Sizes – checkJVMHeap.py •Many places to look for this values •Script to collect it and print it out 59#engageug
  • 47. JVM Log Settings – checkLogFiles.py •Documentation of JVM Log Settings 60#engageug
  • 48. Used Ports – checkPorts.py •Documentation of all Ports used in your WebSphere Cell 61#engageug
  • 49. WebSphere Variables – checkVariables.py •Good starting point for Troubleshooting too •Documentation 62#engageug
  • 50. Version Information – WebSphere, Connections •IBM WebSphere show installed Version and Hotfixes •$WAS_HOME/profiles/Dmgr01/bin/historyInfo.sh •Show all Installed Fixes of IBM Connections •cd $CONNECTIONS_ROOT •./updateSilent.sh -fix -installDir /opt/IBM/Connections 63#engageug
  • 51. Version Information – WebSphere, Connections •IBM WebSphere show installed Version and Hotfixes •$WAS_HOME/profiles/Dmgr01/bin/historyInfo.sh •Show all Installed Fixes of IBM Connections •cd $CONNECTIONS_ROOT •./updateSilent.sh -fix -installDir /opt/IBM/Connections 64#engageug
  • 53. Add On – cnxmenu.py •Menu for all Jython Scripts 66#engageug
  • 54. Download all shown scripts •You can download all scripts (and some more) WITHOUT WARRENTY and at your own risk: •https://github.com/stoeps13/ibmcnxscripting • •OpenNTF Project since 21st november 2014 – Administration Scripts for WebSphere •http://preview.tinyurl.com/otmq6mj 67#engageug
  • 55. Engage •Work with us on the scripts •Discuss new ideas •You can help •create documentation •test scripts in your environments 68#engageug
  • 56. Contact Details Christoph Stoettner •Skype: christophstoettner •Twitter: stoeps •Blog: http://www.stoeps.de •http://about.me/stoeps Sharon Bellamy •Skype: dilftechnical •Twitter: socialshazza •Blog: •http://dilf.me.uk •http://cube-soft.co.uk •http://about.me/sharonbellamy 69#engageug Skype Chats: • Linux ICS • IBM Connections If you are interested in joining, connect with us on skype and we will add you