diagsetrto Command

Purpose

Sets diagnostic run-time options.

Syntax

diagsetrto [ [ -a on | off ] [ -d on | off ] [ -l Size ] [ -m on | off ] [ -n Days ] [ -p on | off ] ]

Description

The diagsetrto command sets the value of any number of diagnostic run-time options. The following run-time options can be altered with the diagsetrto command:
Display Diagnostic Mode Selection Menus
When this option is off, diagnostics run in Problem Determination mode only. The default is on.
Include Advanced Diagnostics
When this option is on, diagnostics run in advanced mode when run from the Task Selection Menu or command line. The default is off.
Number of Days Used to Search Error Log
This option controls how old error log entries must be before they are no longer analyzed by diagnostics. The default is 7.
Display Progress Indicators
When this option is on, diagnostic applications that support progress indicators will display them. The default is on.
Diagnostic Event Logging
When this option is on, diagnostics log events. The default is on.
Diagnostic Event Log File Size
This option controls the maximum size of the diagnostic event log. Allowable sizes are in increments of hundreds of kilobytes. The default is 100K.

Flags

Item Description
-a on | off Sets the value of Include Advanced Diagnostics.
-d on | off Sets the value of Diagnostic Event Logging.
-l Size Sets the value of Diagnostic Event Log file size.
-m on | off Sets the value of Display Diagnostic Mode Selection Menus.
-n Days Sets the value of Number of days used to search the error log.
-p on | off Sets the value of Display Progress Indicators.

Exit Status

0
The command completed successfully.
>0
An error occurred.

Examples

  1. To set the diagnostic event log size to 500K, type:
    /usr/lpp/diagnostics/bin/diagsetrto -l 500
  2. To turn off progress indicators and turn off diagnostic event logging, type:
    /usr/lpp/diagnostics/bin/diagsetrto -p off -d off
  3. To set the number of days to search the error log to 50, type:
    /usr/lpp/diagnostics/bin/diagsetrto -n 50

Files

Item Description
/usr/lpp/diagnostics/bin/diagsetrto Contains the diagsetrto command.