psrasc Command

Purpose

Collects centralized RAS data.

Syntax

psrasc type [ -d ] [ -n number ] -o outputFile logSpace/logStream

Description

The psrasc command extracts the Reliability/Availability/Serviceability (RAS) data log records centralized on a PowerHA® pureScale® log stream and builds a file in the RAS data AIX® format. The PowerHA pureScale service name is CentralizedLogService. Binding information for that service name must be setup before using the psrasc command.

RAS data types

When the specified type is syslog, the log records contain system log messages, including message initiator hostname. The format of the generated file is similar to the system log destination files. When the specified type is errlog, the log records contain error log entries. The generated file is an error log file that can be later exploited by the errpt command.

Flags

Item Description
type Specifies the type of RAS data contained in the log records. This must be the first parameter. Supported RAS data types are: syslog and errlog. From this type, depends the format of the output file.
-d Specifies that the collected log record are deleted.
-n number Specifies the number of log records to collect. Oldest log records are collected. When this parameter is not specified, all the log records are collected.
-o outputFile Specifies the relative or absolute pathname of the output file. If the file already exists, it is overwritten.
log_space/log_stream Specifies the fullname of the log stream from which system log messages are collected. Fullname is made of the parent log space name and the log stream name separated by a / (slash).

Exit Status

This command returns the following exit values:
Item Description
0 Successful completion.
> 0 An error occurred.

Examples

  1. To collect log records of the log stream named CentralizedRAS/Syslog into the syslog.out file on the

    PowerHA pureScale server identified by the CentralizedLogService service name, enter:

    psrasc syslog -o syslog.out CentralizedRAS/Syslog

  2. To collect the 100 oldest log records of the log stream named CentralizedRAS/Syslog into the /var/adm/ras/cluster_syslog file on the PowerHA pureScale server

    identified by the CentralizedLogService service name and delete them, enter:

    psrasc syslog -d -n 100 -o /var/adm/ras/cluster_syslog CentralizedRAS/Syslog

  3. To collect log records of the log stream named CentralizedRAS/Errlog into the file centralizedRAS_errlog on the PowerHA pureScale server identified by the CentralizedLogService service name, enter:

    psrasc errlog -o centralizedRAS_errlog CentralizedRAS/Errlog

  4. To collect and delete the 100 oldest log records of the log stream named CentralizedRAS/Errlog into the /var/adm/ras/cluster_errlog error log file on

    the PowerHA pureScaleserver identified by the centralizedRAS_error service, enter:

    psrasc errlog -d -n 100 -o /var/adm/ras/cluster_errlog CentralizedRAS/Errlog