Manipulates connect-time accounting records by reading binary records in wtmp format from standard input, converting them to formatted ASCII records. The ASCII version is useful when it is necessary to edit bad records.
3/usr/sbin/acct/fwtmp [ -i ] [ -c ]
The fwtmp command reads binary records in wtmp format from standard input, converts them to formatted ASCII records, and writes the ASCII records to standard output. This command is usually entered from the keyboard.
-i | Accepts ASCII records in the utmp format as input. |
-c | Converts output to utmp formatted binary records. |
-ic | Converts ASCII utmp formatted input records to binary output records. |
Access Control: These commands should grant execute (x) access only to members of the adm group.
/usr/sbin/acct/fwtmp < /var/adm/wtmp > dummy.file
The content of a binary wtmp file is redirected to a dummy ASCII file.
The acctcon1 or acctcon2 command, acctmerg command, acctwtmp command, runacct command, wtmpfix command.
Setting Up an Accounting System in AIX 5L Version 5.1 System Management Guide: Operating System and Devices describes the steps you must take to establish an accounting system.
See the Accounting Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices for a list of accounting commands that can be run automatically or entered from the keyboard and about the preparation of daily and monthly reports, and the accounting files.