Sun Management Center 3.6 System Reliability Manager User's Guide

Result Table

The Result Table lists all scripts that are currently running or have recently terminated. This table contains the following information:

Every row in the Result Table contains the arguments passed during script invocation, the results produced by the script, and the script exit code. The Result Table also provides information about the current run state, and start and end timestamps.

The Result Table shows the attributes listed in the following table.

Table 5–3 Result Table Attributes

Attribute 

Description 

Run Index 

A unique identifier associated with the script. The value is obtained by prepending launchName with an increasing integer. The integer starts from 0. 

Arguments 

The arguments supplied to the script when it started. 

Exit Code 

The reason why a script finished execution. The following values are possible: 

  • None – Script is still in initializing or Running state.

  • Halted – Script has been aborted.

  • Successful – Script finished executing successfully.

  • Failed – Script finished execution with an error.

Result Log 

The path to the log file. 

Run Control 

The desired status of the script execution defined by this row (abort or noop). 

Run State 

The script execution status. The following values are possible: 

  • Initializing – The script is initializing.

  • Running – The script is running.

  • Not Running – The script could be in this state because of successful completion, failing, or aborting. The exact reason why the script is Not Running is reflected in the Exit Code field.

Error Log 

The path to the log file. 

Start Time 

The date and time when the execution started. 

End Time 

The date and time when the execution terminated. 

Life Time 

How long the script can execute. If the script has not terminated when this time has expired, the script is killed automatically. 

Expire Time 

How long this row can exist in the Result Table after the script has terminated. This attribute is the value of the Expire Time field of the Launch Table when the script was launched. A script entry is removed from the Result table when Expire Time seconds have passed since the script reached the Not Running state. 

ProcedureTo View the Results From the Result Table

Steps
  1. Access the Result Table as described in To Access the Script Repository Module.

  2. In the Result Table, press mouse button 3 on a running script entry.

    A pop-up menu is displayed.

  3. Choose View the Result Log to view the result log file corresponding to the selected running script.

    The Probe Viewer appears, and displays the result of the log.


    Note –

    You can also access log files at the command line. The log files are saved in the /var/opt/SUNWsymon/SysMgmtPack/script-launcher/scripts/UserName/logs directory. The log file name includes the running instance so that the current log file is identifiable when a user runs the same script several times.


ProcedureTo Delete a Row From the Result Table

Steps
  1. Access the Result Table as described in To Access the Script Repository Module.

  2. In the Result table, press mouse button 3 on a row.

    A pop-up menu is displayed.

  3. Choose Delete Row.

    A dialog box appears to confirm or cancel the deletion.

  4. Click Yes to confirm.

    Once the row has been deleted, the Run Table is automatically refreshed.