Provides an interface to the accton command to turn process accounting on or off.
/usr/sbin/acct/turnacct On | Off | Switch
The turnacct command provides an interface to the accton command to turn process accounting on or off. You must specify whether you want process accounting on or off, because there is no default.
The switch flag turns off accounting and moves the current active data file (/var/adm/pacct) to the next free name in the /var/adm/pacctincr file, where incr is a number starting at 1 and increased by one for each additional pacct file. After moving the pacct file, the turnacct command again turns on accounting.
The turnacct switch command is usually called by the ckpacct command, running under the cron daemon, to keep the active pacct data file a manageable size.
Access Control: This command should grant execute (x) access only to members of the adm group.
/usr/sbin/acct | Contains the path to the accounting commands. |
/var/adm/pacct | Contains the current file for process accounting. |
/var/adm/pacct* | Used if the pacct file gets too large. |
The accton command, ckpacct command.
The cron daemon.
Setting Up an Accounting System in AIX 5L Version 5.1 System Management Guide: Operating System and Devices explains the steps you must take to establish an accounting system.
For more information about the Accounting System, the preparation of daily and monthly reports, and the accounting files, see the Accounting Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.