wtmpconvert - Modify connect time accounting records from
DIGITAL UNIX releases 4.0x and prior to new format
/usr/lbin/wtmpconvert [-vnrp?h] input_file [output_file]
Restore new format to old format. Verbose. Display lines
while converting. Do not preserve contents of input file.
Formatted print only. Do not convert. (May be used with
the -r option). Display usage message.
The wtmpconvert command reads records from a connect time
accounting file, such as /var/adm/wtmp, and converts the
record format to the updated struct utmp format. If no
output file is specified or if the output file path is
identical to the input file path, wtmpconvert makes a
backup copy of the original input file using the following
algorithm: If filename.orig exists. Where n is a unique
The wtmpconvert command attempts to detect an input file
that is in the wrong format (for example, input file is
already a new format file). A warning message is issued in
this case, but conversion continues.
Success. An error occurred.
To convert an old format accounting file to the new format:
Upon completion of this command, /var/adm/wtmp.prev
will have been converted to the new format. The
original /var/adm/wtmp.prev is renamed to
/var/adm/wtmp.prev.orig. To convert a wtmp file in
new format to the old format: wtmpconvert -r
Accounting header files that define the format for the
login database file. The active login/logoff database
Commands: acct(8), acctcon(8), acctmerg(8), date(1),
Files: utmp(4), wtmp(4)
[ Back ]