csaverify(1M)csaverify(1M)NAMEcsaverify - verifies that the accounting records are valid
SYNOPSIS
/usr/lib/acct/csaverify [-P pacctfile] [-o offsetfile] [-m nrec] [-v] [-
D]
DESCRIPTION
The csaverify command verifies that the accounting records are valid.
The accounting file (pacctfile) can be a pacct or sorted pacct file.
When csaverify finds an invalid record, it reports the starting byte
offset and length of the record. This information can be written to a
file in addition to standard output. A length of -1 indicates the end of
file. The resulting output file can be used as input to csaedit(1M) to
delete pacct or sorted pacct records.
The csaverify command checks to ensure primary records and linked records
of a primary record (if there are any) are legal. The valid primary
records are CSA base, start-of-job, end-of-job, configuration, NQS,
workload management, tape, and job header. Only CSA base records can
have linked records. The primary records themselves cannot be linked
records.
The csaverify command checks to ensure that the pacct or sorted pacct
file only contains record types appropriate for that file. The following
record types are in a sorted pacct file and are not allowed in a pacct
file: job header record, consolidated NQS, and workload management
records. The following record types are in a pacct file and are not
allowed in a sorted pacct file: preprocessed NQS records and workload
management records.
Filename options are as follows:
-P pacctfile
Specifies the filename of a pacct or sorted pacct accounting
file. The default is /var/adm/acct/work/Wpacct.
-o offsetfile
Specifies that information about invalid records, formatted
for input to the csaedit command, should be written to the
file offsetfile. This information will still be written to
standard output in a more user-friendly format.
Output options are as follows:
-m nrec Specifies that no more than nrec invalid records are
reported. By default, all invalid records will be reported.
-v Sets verbose mode. Output is written to standard output.
Page 1
csaverify(1M)csaverify(1M)-D Sets debug mode. Output is written to standard output.
EXAMPLES
The following example verifies the Wpacct1 pacct file with verbose mode
turned on. In addition to writing information about invalid records to
standard output, information formatted for input to csaedit is written to
the file invalid.
csaverify-P Wpacct1 -o invalid -v
FILES
/usr/include/csaacct.h Daemon accounting header file
/usr/include/sys/acct.h Accounting records header file
SEE ALSOcsaedit(1M), csarun(1M).
Page 2