|
|
To set up system accounting so it will be running while the system is in multiuser state (system state 2), you need to create and/or modify four files:
Make sure the accounting utilities have been installed on your system.
Use this procedure to set up system accounting to run while the system is in multiuser state (system state 2).
The following example shows several sample entries; your entries may vary. (Note that the comment lines in the file shown here may not appear in your file; they are included to clarify the meaning of the fields shown.)
#-------------------entries for adm crontab------------------------------ # #Min Hour Day Month Day Command # of of # Month Week #----------------------------------------------------------------------------- 0 0 >/var/adm/wtmp 0 0 >/var/adm/wtmpx 0 /usr/lib/acct/ckpacct 30 2 /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log 30 9 5 /usr/lib/acct/monacct
0 0 >/var/adm/wtmp 0 0 >/var/adm/wtmpxIn a delivered system, these two entries are included for controlling the growth of wtmp files on systems without the accounting utilities.
Because you are running the accounting utilities, you won't want these entries to be active; but don't delete them in case the accounting utilities are later removed from your system. Commenting them out makes these entries inactive (that is, neutralizes their effect on accounting),
If you find any other entries in /var/spool/cron/crontab/adm, leave them alone.
For example,
#--------------------entry for root crontab-------------------------------- # #Min Hour Day Month Day Command # of of # Month Week #----------------------------------------------------------------------------- 30 22 4 /usr/lib/acct/dodisk
Once these entries are in the database and the accounting programs have been installed, accounting will run on its own.