[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5

turnacct Command

Purpose

Provides an interface to the accton command to turn process accounting on or off.

Syntax

/usr/sbin/acct/turnacct On Off Switch

Description

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.

Security

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

Files

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

Related Information

The accton command, ckpacct command.

The cron daemon.

System Accounting in AIX 5L Version 5.2 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.2 System Management Concepts: Operating System and Devices.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]