How to customize the service tool
The default behavior of the service tool is to collect data about all IBM Spectrum Control components, but you can use the service tool to collect data about specific components. You can also use command-line parameters to specify a location to place the data that is collected, specify that the data is compressed, or to specify both.
Specifying help and output command-line parameters
To obtain information about the service tool usage, use the -help command-line parameter.
- -output directory_path
- Places the files that contain the data that was collected in a
directory that you specify. If you specify a directory that does not
exist on your system, that directory is created. If you do not use
the -output directory_path parameter,
the files are placed in the default directory:
- Windows operating systems
- installation_dir\service\data
- Linux® or AIX® operating systems
- installation_dir/service/data
Restriction: If you specify a directory, the directory path cannot contain spaces. This restriction refers to the -output option. - -pmr
- The number of the PMR to which the support information is related. Use the following format to enter the number: nnnnn,nnn,nnn where n represents a number, such as 12345,123,123. If you enter a value for the -pmr parameter, the service tool automatically uses FTP to upload the service information to IBM®. If the service tool cannot upload the service information to IBM from the IBM Spectrum Control server, the generated file must be uploaded manually. The -pmr parameter is ignored if the -nozip parameter is used.
- -nozip
- When you use this parameter, the compressed collected data archives are no longer created. The service tool creates separate directories for each component for which data was collected. You can then create compressed archives for the collected files. In this way, you can control the size and content of each compressed file. To specify a directory other than the default directory, use the -output directory_path parameter.
C:\Program Files\IBM\TPC\service>service -install
-nozip
.Specifying Javacore, Java heap dump. snap trace, and Java core dump file collection
- coreFiles=0
- Specifies how many Java core dump files are collected. The default value is 0 because Java core dump files are generally very large. The valid values for this parameter are 0 or a positive integer. Any other value results in the default behavior.
- javaCoreFiles=-1
- Specifies how many Javacore txt files are collected. The default value of -1 means that all Javacore txt files are collected. The valid values for this parameter are 0 or a positive integer. Any other value results in the default behavior.
- heapDumpFiles=1
- Specifies how many Java heap dump files are collected. The default is to collect the most recent Java heap dump file. The valid values for this parameter are 0 or a positive integer. Any other value results in the default behavior.
- snapFiles=1
- Specifies how many snap trace files are collected. The default is to collect the most recent snap trace file. The valid values for this parameter are 0 or a positive integer. Any other value results in the default behavior..
Collecting data for specific IBM Spectrum Control components
You can use the service tool to collect data about specific IBM Spectrum Control components.
- -all
- All components. The default behavior is to collect data about all components.
- -install
- Installation component files.
- -data
- Data server component files.
- -device
- Device server component files.
- -datacollector
- Data collector component files.
- -alert
- Alert server component files.
- -export
- Export server component files.
- -sra
- Storage Resource agent component files.
- -db
- Db2® files.
- -cli
- Command-line interface files.
- -gui
- Collects data about GUI files.
If you collect information about a particular component, and you do not specify the -nozip parameter, you can identify the contents of a compressed service file from its name. For example, if you specify the -db -gui parameters but did not specify the -nozip parameter, a file named SCServiceFiles_db_gui.zip is created.
C:\Program Files\IBM\TPC\service>service -db
-gui
, a file named SCServiceFiles_db_gui.zip is created. If
you rerun the tool with the same component options, a new file named
SCServiceFiles_db_gui.zip is created. This new file overwrites the previously
created file unless you specify the -nozip parameter, or use the
-output parameter to specify a different path.- Windows operating systems:
- installation_dir\service\data
- Linux or AIX operating systems:
- installation_dir/service/data
- Windows operating systems:
- installation_dir\service\data
- Linux or AIX operating systems:
- installation_dir/service/data