System Administration Guide: Advanced Administration
Previous Next

System Accounting (Task Map)

Task

Description

For Instructions

Set up system accounting.

Set up system accounting by performing the following tasks:

  • Create the /etc/rc0.d/K22acct and /etc/rc2.d/S22acct files.

  • Modify the /var/spool/cron/crontabs/adm and /var/spool/cron/crontabs/root crontab files.

How to Set Up System Accounting

Bill users.

Run the /usr/lib/acct/chargefee username amount command.

How to Bill Users

Fix a corrupted wtmpx file.

Convert the wtmpx file from binary to ASCII format.

How to Fix a Corrupted wtmpx File

Fix tacct errors.

Run the prtacct script to check the /var/adm/acct/sum/tacctprev file. Then, patch the latest/var/adm/acct/sum/tacctMMDD file. You will need to re-create the /var/adm/acct/sum/tacct file.

How to Fix tacct Errors

Restart the runacct script.

Remove the lastdate file and any lock files. Then, manually restart the runacct script.

How to Restart the runacct Script

Disable system accounting temporarily.

Edit theadm crontab file to stop the ckpacct, runacct, and monacct programs from running.

How to Temporarily Stop System Accounting

Disable system accounting permanently.

Delete the entries for the ckpacct, runacct, and monacct programs in the adm and crontab files.

How to Permanently Disable System Accounting

Previous Next