1832678 Members
2954 Online
110043 Solutions
New Discussion

System Accounting

 
SSP_1
Regular Advisor

System Accounting

Hi All,

If I have enabled system accounting on my hp-ux system , just wanted to know which are the files I have to look into for accounting info.


Obstacles exist to challenge you to keep going. Not to quit.
4 REPLIES 4
Michael Tully
Honored Contributor

Re: System Accounting

Steven Sim Kok Leong
Honored Contributor

Re: System Accounting

Hi,

The main files are:
- /var/adm/pacct
- /var/adm/wtmp

For more information and accounting usage,

# man 1m acct

Hope this helps. Regards.

Steven Sim Kok Leong
Shannon Petry
Honored Contributor

Re: System Accounting

The files pacct and wtmp are used by the accounting system, and are of no use to you!

The files you need to look at are the reports generated by system accounting. These are located in "/var/adm/acct/sum".
Human reports are called sa$M$D where $M is the month and $D is the day of the month.
Additional data can be parsed with prtacct and are called ta$M$D where $M is the month and $D is the day of the month.

Normally I do not call runacct directly from cron, but build a script to do the following.
1. runacct # obvious
2. ckpacct #Turns acct off if disks are getting full
3. Compress reports more than one month old.
4. remove reports more than 3 months old

NOTE: You could also print the reports for yourself so they are ready when you come in. ;)

Personally, I think that system account is the most usefull yet underused of UNIX services. Hope it serves you well!

Regards,
Shannon
Microsoft. When do you want a virus today?
MANOJ SRIVASTAVA
Honored Contributor

Re: System Accounting

Hi Shripad

The main file is /var/adm/pacct which keeps on getting fatter with the usage . You can see man acct to get more information . accton will give the o/p as you desired . man accton will get you where you want.


Manoj Srivastava