How To
Summary
This technote describes using a python script to gather information, such as, configmaps, pods, secrets, and log files for the resources used in a FileNet Content Manager or an IBM Content Foundation standalone container installation. The generated information can then be uploaded to a SalesForce ticket to support troubleshooting efforts. The script can be downloaded from GitHub.
Objective
Efficiently gather and consolidate information about configmaps, pods, secrets, and log files in the target namespace to enhance resource management, troubleshooting, and monitoring within the Kubernetes environment.
Environment
The MustGather scripts can be run against a FileNet Content Manager or an IBM Content Foundation standalone containerized environment.
The FNCM MustGather script has specific requirements for platforms, operating systems, and the deployment environment.
Complete the steps in the IBM Documentation for setting up your client:
- FNCM 5.7.0: https://www.ibm.com/docs/SSNW2F_5.7.0?topic=cluster-preparing-client-connect
- FNCM 5.6.0: https://www.ibm.com/docs/SSNW2F_5.6.0?topic=cluster-preparing-client-connect
- FNCM 5.5.12: https://www.ibm.com/docs/SSNW2F_5.5.12?topic=cluster-preparing-client-connect
- FNCM 5.5.11: https://www.ibm.com/docs/SSNW2F_5.5.11/com.ibm.p8.containers.doc/containers_tsk_prep_client.htm#containers_tsk_prep_client__client
- FNCM 5.5.8: https://www.ibm.com/docs/SSNW2F_5.5.x?topic=cluster-preparing-client-connect#containers_tsk_prep_client__client
Ensure the following prerequisites are met.
Platforms:
The containers must be running in one of the following environments.
- Redhat Openshift
- CNCF Kubernetes
Operating Systems:
You can run the script from any of the following operating systems:
- Windows
- Linux
- MacOS
Environment:
The following components must be installed and properly configured on the client:
- Kubernetes CLI
- Python (version 3.9 or later)
- FileNet Content Manager Standalone GitHub Repository
Steps
About the MustGather Script
The MustGather script (mustgather.py) runs in interactive mode or silent mode. When the script is run, it gathers various diagnostics. The script detects the type of deployment and the components based on your FNCM Custom Resource (CR). Once the diagnostics are gathered, the data is compressed and sent to the client machine to a subfolder of where the command was run from.
To be able to collect all information the script, requires confirmation that sensitive deployment information, such as secrets and configuration files, can be gathered. The sensitive deployment information contains credentials and networking information pertaining to the deployment. If you choose not to allow the sensitive information to be gathered, the MustGather script only collects information generated by the operator, such as deployment yamls and component logs.
By default, the MustGather script collects all deployment artifacts and FNCM Operator information. Specific component information can be collected. The deployed components are detected based on information in the FNCM Custom Resource (CR). You can also choose to limit which components are analyzed.
Installation Steps:
Clone the script from GitHub:
git clone https://github.com/ibm-ecm/ibm-fncm-containers.gitOpen a terminal or command prompt and navigate to the directory where the Github Repository was extracted. This location differs based on the version of FNCM Standalone:
5.6.0 and later:cd ibm-fncm-containers/scripts
5.5.8, 5.5.11, and 5.5.12:cd ibm-fncm-containers/scripts/prerequisitesRun the following command to install the required Python packages from the requirements.txt file:
python3 -m pip install -r requirements.txt
Procedure for running the MustGather script
python3 mustgather.py --help
Usage: mustgather.py [OPTIONS]
FileNet Content Manager MustGather CLI
Options:
--version Show version and exit.
--help Show this message and exit.
Customization and Utils:
--silent --no-silent Enable Silent Install (no prompts). [default: no-silent]
--verbose --no-verbose Enable verbose logging. [default: no-verbose]
--dryrun --no-dryrun Perform a dry run [default: no-dryrun]
The MustGather script requires the following information:
- Namespace
- Consent to collect sensitive data
- FNCM components on which the script must be run
Interactive Mode:
Use the following statement to invoke the script in interactive mode:
python3 mustgather.pySilent Mode:
To use silent mode,
- Complete the configuration file provided in the cloned Github Repository: ./silent_config/silent_install_mustgather.toml.
- Invoke the script.
python3 mustgather.py --silent
Additional Information
The MustGather script collects the following information.
Cluster Information:
- Version
- Events
- Node Resource Allocation and Usage
- Cluster Service Versions
- Subscription
- Catalog Source
Operator Info:
- Ansible logs
- Component version
- IBM Java version
- init-container logs
Custom Resource File
Deployment Information of all Components
Storage Class Information
Service Information
Network Policy Information
Route or Ingress Information
Secrets Information
Configmap Information
For all components the following items are collected if available:
- Component information
- Liberty version
- IBM Java version
- jvm.options
- Liberty logs
- init-container logs
- Configuration files
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
27 February 2026
UID
ibm17152864