 |
Index for Section 8 |
|
 |
Alphabetical listing for W |
|
 |
Bottom of page |
|
wtmpconvert(8)
NAME
wtmpconvert - Modify connect time accounting records from DIGITAL UNIX
releases 4.0x and prior to new format
SYNOPSIS
/usr/lbin/wtmpconvert [-vnrp?h] input_file [output_file]
OPTIONS
-r Restore new format to old format.
-v Verbose. Display lines while converting.
-n Do not preserve contents of input file.
-p Formatted print only. Do not convert. (May be used with the -r option).
-h (or -?)
Display usage message.
DESCRIPTION
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:
filename.orig
If filename.orig exists.
filename.~n~
Where n is a unique number.
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.
EXIT STATUS
0 (Zero)
Success.
-1 An error occurred.
EXAMPLES
1. To convert an old format accounting file to the new format:
wtmpconvert /var/adm/wtmp.prev
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.
2. To convert a wtmp file in new format to the old format:
wtmpconvert -r /var/adm/wtmp /var/adm/wtmp.old
FILES
</usr/include/utmp.h>
</usr/include/utmpx.h>
</usr/include/utmp_common.h>
Accounting header files that define the format for the login database
file.
/var/adm/utmp
/var/adm/wtmp
The active login/logoff database files.
SEE ALSO
Commands: acct(8), acctcon(8), acctmerg(8), date(1), runacct(8)
Functions: getutent(3)
Files: utmp(4), wtmp(4)
 |
Index for Section 8 |
|
 |
Alphabetical listing for W |
|
 |
Top of page |
|