[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 2

fwtmp Command

Purpose

Manipulates connect-time accounting records by reading binary records in wtmp format from standard input, converting them to formatted ASCII records.

Syntax

/usr/sbin/acct/fwtmp-i ] [ -c ]

Description

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.

Flags

-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.

Security

Access Control: These commands should grant execute (x) access only to members of the adm group.

Examples

  1. To convert a binary record in wtmp format to an ASCII record called dummy.file, enter:
    /usr/sbin/acct/fwtmp < /var/adm/wtmp > dummy.file
    The content of a binary wtmp file is redirected to a dummy ASCII file.
  2. To convert an ASCII dummy.file to a binary file in wtmp format called /var/adm/wtmp, enter the fwtmp command with the -ic switch:
    /usr/sbin/acct/fwtmp -ic < dummy.file  > /var/adm/wtmp
    The dummy ASCII file is redirected to a binary wtmp file.

Files

/usr/sbin/acct/fwtmp Contains the fwtmp command.
/var/adm/wtmp Contains records of date changes that include an old date and a new date.
/usr/include/utmp.h Contains history records that include a reason, date, and time.

Related Information

The acctcon1 or acctcon2 command, acctmerg command, acctwtmp command, runacct command, wtmpfix command.

Setting Up an Accounting System in AIX Version 4.3 System Management Guide: Operating System and Devices describes the steps you must take to establish an accounting system.

See the Accounting Overview in AIX Version 4.3 System Management Guide: 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.


[ Previous | Next | Contents | Glossary | Home | Search ]