Update the commandscustom.ini file to enable the servermon component to collect additional statistics.
Procedure
To update the commandscustom.ini file, complete the following steps:
-
Copy the commandscustom.ini file from the IBM Storage Protect server installation directory to the server
instance servermon directory.
-
Review the structure of the commands.ini file to understand how commands are organized into stanzas.
The commands.ini file contains multiple stanzas that define data collection intervals and command types. Review the comments in the file to determine where to add custom commands.
For example:
servermon_xxmin stanzas are used for operating system commands.
srv_xxmin stanzas are used for IBM Storage Protect server commands.
-
Add the appropriate stanza in the commandscustom.ini file based on the
required data collection interval and command type.
For example:
- To collect operating system data every 10 minutes:
servermon_10min
- To collect operating system data every 20 minutes:
servermon_20min
- To collect operating system data every 60 minutes:
servermon_60min
Use the corresponding srv_xxmin stanzas for server commands.
-
Add entries for any additional data collection needs to the appropriate stanza in the commandscustom.ini file.
For example:
-
To collect
gstack output, add the following entry:
LIN:/usr/bin/gstack PID
-
To collect
pstack output, add the following entry:
LIN:/usr/bin/pstack PID
Note: Include only one entry. Use the command supported by your operating system. Red Hat Linux
provides pstack, and SUSE Linux provides gstack.
-
Save the updated commandscustom.ini file.
-
Restart the IBM Storage Protect server to activate the new servermon data collection commands.