pimSupport.sh script
Use the pimSupport.sh
script for collecting diagnostic information if
you encounter any issues with IBM® Product Master and need to
share data with the technical support team.
If you cannot resolve your issue with the troubleshooting and support documentation, you
can use the diagnostic tool or contact IBM Software Support
for help.
- The
pimSupport.sh
script provides many diagnostic collection options. You can view the options by runningpimSupport.sh --help
. - When opening a service request with IBM Software Support,
provide the output of the following
command:
Running the script with these options collects the most likely needed basic environment configuration and system status information along with Product Master and application server log files. This information helps to accelerate problem investigation.pimSupport.sh -b -l all -p xxxx.yyy.zzz
The technical support team might request you to run the script with other options to help with problem diagnosis.
Syntax
pimSupport.sh --help --version --outputdirectory=path_to_store_the_result
--pmrnumber=<xxxxx.bbb.ccc>
--logtracking=start|stop --monitor=start|stop
--dumpprocess=<service name | PID> [--count --interval]
--basic --code=<company_code> --keeplog=yes|no
--collectlogs=all|allPIM|AS|appsvr|scheduler|workflowengine|queuemanager|admin|eventprocessor
--fromtime=from_time --totime=to_time
--code=<company_code> --colarea=<collaboration_area_name>
--catalog=<catalog_name>
Note: You can start each functionality by using the short or the verbose option. When data is
collected, the on output shows the file name and location-screen of the generated archive
automatically.
Parameters
- Parameters for general options
-
- -h --help
- Print a usage message.
- -v --version
- Print the version number of
pimsupport.sh
. - -o --outputdirectory=<path_to_store_the_result>
- Specify the directory where the final output file is located. If not specified, the default directory is the tmp directory as defined in the $TOP/etc/default/common.properties file.
- -p --pmrnumber=<xxxxx.bbb.ccc>
- Generated archives are prefixed with the PMR number for proper identification and storage on ecurep FTP server.
- Parameters for information collection options
-
- -t --logtracking=start | stop
- This parameter is used to start or stop logging to a different directory with the
log level=debug
andmaxBackupIndex=5
. - -m --monitor=start | stop
- This parameter is used to start or stop a background job, which continuously monitors system
information, such as
vmstat
andiostat
. The output is temporarily written under the $TOP/logs/diagnostic/system_status directory. To fetch the monitoring result, use the option:–collectmonitorlogs=yes
- -d --dumpprocess=<service name | PID> [--count --interval]
- This parameter is used to dump process information for a process with the specified ID "PID" or
"service name", usually for a process with high processor usage. This option, without any other
option provides a list of available services along with the PIDs. The
--count
and--interval
are optional parameters that determine the number of times and intervals between the memory dumps generation. The default values are 5 and 30 seconds.Note: Some of the parameters do not work in clustered environments.Note: For the first time, when you first run the pimSupport.sh command, the proc_info directory is not removed. You need to manually delete the proc_info directory after running pimSupport.sh command. With this fix, after running the pimSupport.sh -dumpprocess command, you will not see the proc_info directory anymore under the $TOP/logs/diagnostic directory. The contents of the proc_info directory included in the tar file that was generated and can now be found under the highcpulogs directory. The contents of the proc_info directory are already included in the tar file that was generated and can be found under thehighcpulogs
directory. - -b --basic
- This parameter is used to collect basic environment configuration and system status information.
- --code=<company_code>
- This is an optional parameter. If specified, this parameter collects the Product Master entity count for that company.
- --keeplog=yes | no
- This is an optional parameter. If specified, this parameter keeps all temporary outputs that are
used for the final report. If not specified, it is equivalent to
--keeplog=no
. This option can help debug if there is any issue with the final health report. - -l --collectlogs=all | allPIM | AS | appsvr | scheduler | workflowengine | queuemanager | admin | eventprocessor
- all specifies that all logs are collected from the $TOP/logs directory.
To collect the Db2® logs and other information from the Db2 server, run the db2support command on the Db2 server.
db2support <OUTPUT_DIR_PATH> -f -d <DB_SERVICE_NAME> -m -c -u <DB_USER_NAME> -p <DB_USER_PWD> /dev/null
Examples
The following examples show various
pimSupport.sh
parameters, and their usage:- To collect basic environment configuration and system status information along with all Product Master and application server log files in to an
archive and start the archive with the PMR
number:
pimSupport.sh -b -l all -p xxxx.yyy.zzz
- To start system monitoring for continuously measuring the system status, such as memory, I/O,
and processor use:
pimSupport.sh --monitor=start
- To gather and collect log files selectively, for example, the following command line collects
application server services log entries that are dated from June 23, 2010 00:18 to June 28, 2010
23:18:
the following example collects logs for the application server and scheduler:pimSupport.sh --collectlogs="appsvr" --fromtime="06_23_2010__00_18" --totime="06_28_2010__23_18"
pimSupport.sh -l "appsvr|scheduler"
- To gather log tacking information while reproducing a scenario, use this option to start
logging:
When finished with the scenario, stop log tracking and specify the PMR number and some identifier to name the generated archive:pimSupport.sh --logtracking=start
pimSupport.sh -t stop -p 11111.222.333-repro1
- To generate a health check report. The option
--keeplog=yes
also keeps all the intermediate output files that were used to construct the final report. The final report is well-formatted and concise. The intermediate files can provide more details about the system or application information:pimSupport.sh -b --code=<comp_code> --keeplog=yes