Collects centralized RAS data.
psrasc type [ -d ] [ -n number ] -o outputFile logSpace/logStream
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.
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.
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). |
Item | Description |
---|---|
0 | Successful completion. |
> 0 | An error occurred. |
psrasc syslog -o syslog.out CentralizedRAS/Syslog
identified by the CentralizedLogService service name and delete them, enter:
psrasc syslog -d -n 100 -o /var/adm/ras/cluster_syslog CentralizedRAS/Syslog
psrasc errlog -o centralizedRAS_errlog CentralizedRAS/Errlog
the PowerHA pureScaleserver identified by the centralizedRAS_error service, enter:
psrasc errlog -d -n 100 -o /var/adm/ras/cluster_errlog CentralizedRAS/Errlog