HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

l
logprint(1M) logprint(1M)
NAME
logprint - allows you to format and print the contents of the ARMServer log files.
SYNOPSIS
logprint [-d log_directory_name][
-s start_time][
-e stop_time][-t record_type...]
[
-a array_serial_number]
DESCRIPTION
logprint allows you to select and print the contents of the various log files maintained by
ARMServer.
Options
logprint supports the following options:
none Print all log records, except performance records, from the default
ARMServer log
directory.
-a array_serial_number
Limit the records printed to those associated with the disk array identified by
array_serial_number The default is to print the records for all disk arrays.
-d log_directory_name
Specify the directory that contains the ARMServer log files. If not specified, the
default is /var/opt/hparray/log
.
-e stop_time Specify the latest log record to print. Any log records with a time later than stop_time
will not be printed. The default is the time of the latest log record.
The format for entering time is mmddhhmm[yy]:
mm Month (01-12)
dd Day (01-31)
hh Hour (00-23)
mm Minute (00-59)
yy Year (optional)
-s start_time Specify the earliest log record to print. Any log records with a time earlier than
start_time will not be printed. The default is the time of the oldest log record. See
above for the format for entering time.
-t record_type Specify the type(s) of log records to print. If not specified, the default log records
include usage, disk, controller, and change.
Valid log types include the following:
usage System usage log
disk Disk error log
ctrlr Controller error log
change System change log
perf Performance log
RETURN VALUE
logprint returns the following values:
0 Successful completion.
1 An error in execution (I/O, subsystem, security, etc.) occurred.
2 An error in command syntax occurred: for example, an unknown command-line option was passed.
EXAMPLES
Print all log records that occurred after 0800 on 16 April:
logprint -s 04160800
Print only the log records for disk array serial number 00786b5c0000 . Further limit the log records to
usage log and disk log entries that occurred before 0800 on April 16:
logprint -e 04140800 -t usage -t disk -a 00786b5c0000
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M429