'\" te .\" Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. .\" Copyright 1989 AT&T .TH fwtmp 1M "25 May 2012" "SunOS 5.11" "System Administration Commands" .SH NAME fwtmp, wtmpfix \- manipulate connect accounting records .SH SYNOPSIS .LP .nf \fB/usr/lib/acct/fwtmp\fR [\fB-ic\fR] .fi .LP .nf \fB/usr/lib/acct/wtmpfix\fR [\fIfile\fR]... .fi .SH DESCRIPTION .sp .LP \fBfwtmp\fR reads from the standard input and writes to the standard output, converting binary records of the type found in \fB/var/adm/wtmpx\fR to formatted ASCII records. The ASCII version is useful when it is necessary to edit bad records. .sp .LP \fBwtmpfix\fR examines the standard input or named files in \fButmpx\fR format, corrects the time/date stamps to make the entries consistent, and writes to the standard output. A hyphen (\fB\(mi\fR) can be used in place of \fIfile\fR to indicate the standard input. If time/date corrections are not performed, \fBacctcon\fR(1M) will fault when it encounters certain date-change records. .sp .LP Each time the date is set, a pair of date change records are written to \fB/var/adm/wtmpx\fR. The first record is the old date denoted by the string "\fBold time\fR" placed in the \fBline\fR field and the flag \fBOLD_TIME\fR placed in the \fBtype\fR field of the \fButmpx\fR structure. The second record specifies the new date and is denoted by the string \fBnew time\fR placed in the \fBline\fR field and the flag \fBNEW_TIME\fR placed in the \fBtype\fR field. \fBwtmpfix\fR uses these records to synchronize all time stamps in the file. .sp .LP In addition to correcting time/date stamps, \fBwtmpfix\fR will check the validity of the \fBname\fR field to ensure that it consists solely of alphanumeric characters or spaces. If it encounters a name that is considered invalid, it will change the login name to \fBINVALID\fR and write a diagnostic to the standard error. In this way, \fBwtmpfix\fR reduces the chance that \fBacctcon\fR will fail when processing connect accounting records. .SH OPTIONS .sp .ne 2 .mk .na \fB\fB-ic\fR\fR .ad .RS 7n .rt Denotes that input is in ASCII form, and output is to be written in binary form. .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/var/adm/wtmpx\fR\fR .ad .RS 18n .rt history of user access and administration information .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/accounting/legacy-accounting .TE .SH SEE ALSO .sp .LP \fBacctcom\fR(1), \fBed\fR(1), \fBacct\fR(1M), \fBacctcms\fR(1M), \fBacctcon\fR(1M), \fBacctmerg\fR(1M), \fBacctprc\fR(1M), \fBacctsh\fR(1M), \fBrunacct\fR(1M), \fBacct\fR(2), \fBacct.h\fR(3HEAD), \fButmpx\fR(4), \fBattributes\fR(5) .sp .LP \fIIntroduction to Oracle Solaris 11.3 Administration\fR