This folder contains scripts to help collect logs and other necessary debugging information from people using the WebSphere installation of IBM Content Cortex.
There are two different scripts, one for Windows called windows-script.ps1 written in PowerShell, and one for Linux called linux-script.sh written in bash.
Both use the configuration file config, which will be created if it does not exist.
Important
Make sure the user running the script has read access to the WebSphere files and write access to the output directory.
The following logs are collected:
- Ping Page (
index.html) - Ping Page Information
- JDBC Driver (
JDBC_Driver.txt) - Build Version (
Build_Version.txt) - P8 Domain (
P8_Domain.txt) - Server Instances (
Server_Instances.txt)
- JDBC Driver (
- Java Version (
Java_Version.txt) - Logs from each server
ce_trace,ce_system,pe_trace,pe_system, andSystemOutlogs for each serverffdclogs
Both the Linux and Windows scripts use the same formatting.
./linux-script.sh
.\windows-script.ps1
When running these scripts, if the config file is not populated, the scripts will query the user for information to populate the config file.
On subsequent runs where the config file is filled, the scripts will not prompt the user, allowing for the logs to be collected automatically.
If you wish to reconfigure the config file, you can either directly edit the config file or run the scripts with the -i flag.
This flag can be combined with any other keywords mentioned below, which will then prompt the user for any necessary config values needed to run.
./linux-script.sh -i
.\windows-script.ps1 -i
This will cause the script to prompt the user and repopulate the config file.
To clean the logs, you can run the scripts with the keyword clean passed into the script.
./linux-script.sh clean
.\windows-script.ps1 clean
To display a help message, you can run the scripts with the keyword help passed into the script.
./linux-script.sh help
.\windows-script.ps1 help
WAS_ROOT_DIR: The WebSphere root directory (e.g./opt/IBM/WebSphere/AppServer).OUTPUT_DIR: The directory that the logs should be written to.OVERWRITE: Whether or not the files should have a timestamp appended to their name.URL: The url of the WebSphere ping page.VERBOSE: Whether or not to have the script output debug information.
The resulting logs are stored as a compressed file (.tar.gz or .zip), which can be sent for debugging purposes.
If your Windows or Linux installation does not come with curl, the script will output an error.
In this case, please follow these steps:
- Go to your FileNet ping page on a web browser.
- Right click the webpage and click "Save As."
- Save the resulting HTML file to the output directory.
- Recompress the output directory with the new files.