HP B2355-92068 Administration Manual page 318

System administration commands
Table of Contents

Advertisement

fwtmp(1M)
NAME
fwtmp, wtmpfix - manipulate connect accounting records
SYNOPSIS
/usr/sbin/acct/fwtmp
/usr/sbin/acct/wtmpfix
DESCRIPTION
fwtmp
reads from the standard input and writes to the standard output, converting binary records of the
fwtmp
type found in
bad records or for general purpose maintenance of the file.
The argument
form. The arguments
f
Therefor,
-i
-like records. If
wtmps
wtmpfix
wtmpfix
examines the standard input or named files in
make the entries consistent, and writes to the standard output. A
the standard input. If time/date corrections are not performed,
certain date-change records.
Each time the date is set, a pair of date change records is written to
old date denoted by the string old time placed in the line field and the flag
field of the
utmps
time
placed in the line field and the flag
records to synchronize all time stamps in the file.
the standard output by setting the time field of the
the time field in the new date change record. This prevents
date change record pair more than once.
In addition to correcting time/date stamps,
consists solely of alphanumeric characters or spaces. If it encounters a name that is considered invalid, it
changes the login name to
risk that
acctcon1
DIAGNOSTICS
wtmpfix
generates the following diagnostic messages:
Cannot make temporary:
Input truncated at offset:
New date expected at offset:
Cannot read from temp:
Bad file at offset:
Out of core: malloc fails.
No dtab: software error
WARNINGS
generates no errors, even on garbage input.
fwtmp
FILES
/usr/include/utmp.h
/var/adm/wtmp
/var/adm/wtmps
SEE ALSO
ed(1),
acct(1M), acctcms(1M), acctcom(1M),
runacct(1M), acct(2), acct(4), utmp(4), wtmps(4).
318
Hewlett-Packard Company
[
-icX
]
[files]
wtmps
to formatted ASCII records. The ASCII version is useful to enable editing, via ed(1),
-ic
is used to denote that input is in ASCII form, and output is to be written in binary
and
are independent, respectively specifying ASCII input and binary output.
i
c
is an ASCII to ASCII copy and
is not used,
-X
utmp
structure. The second record specifies the new date, and is denoted by the string
INVALID
and writes a diagnostic to the standard error. This minimizes the
will fail when processing connect accounting records.
xxx
failed to make temp file
xxx
xxx
some error reading
xxx ut_line
(First character only checked.)
(Saves table of date changes.)
(Rarely seen, if ever.)
-c
is a binary to binary copy.
-like structure is read.
wtmps
format, corrects the time/date stamps to
-
acctcon1
NEW_TIME
placed in the type field.
nullifies date change records when writing to
wtmpfix
structure in the old date change record equal to
utmps
wtmpfix
checks the validity of the name field to ensure that it
wtmpfix
missing half of date pair
xxx
missing half of date pair
entry not digit, alpha, nor | or {
acctcon(1M),
acctmerg(1M),
− 1 −
HP-UX 11i Version 2: December 2007 Update
fwtmp(1M)
-X
should be used for reading
can be used in place of files to indicate
will fault when it encounters
. The first record is the
WTMPS_FILE
OLD_TIME
placed in the type
wtmpfix
and
acctcon1
from factoring in a
acctprc(1M),
acctsh(1M),
new
uses these

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-ux 11i

Table of Contents