Updating the commandscustom.ini file for additional data collection

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:

  1. Copy the commandscustom.ini file from the IBM Storage Protect server installation directory to the server instance servermon directory.
  2. 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.
  3. 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.

  4. 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.
  5. Save the updated commandscustom.ini file.
  6. Restart the IBM Storage Protect server to activate the new servermon data collection commands.