1833762 Members
2521 Online
110063 Solutions
New Discussion

System Accounting

 
deepak_9
Frequent Advisor

System Accounting

Hi,

I have enabled system acct on my hpux11i sys. Following is the cron entry for "adm" login. Just wanted to know what each of the following command does. Especially last 3 cmds....
1) "dodisk" generates a data file "diskacct", how to view a data file or non-ascii file
2) /usr/lib/sa/sa1 :- It's a binary file. How to run it or retrieve data from it.
3) /usr/lib/sa/sa2 :- Same problem as with "sa1".

40 20 * * 1-6 /usr/sbin/acct/runacct 2> /var/adm/acct/nite/fd2log
#
# Check size of /var/adm/pacct
0 * * * * /usr/sbin/acct/ckpacct
#
# Create summary files
15 5 1 * * /usr/sbin/acct/monacct
#
# Collect system accounting information and store in binary format
0 7-17 * * * /usr/lib/sa/sa1 1200 3
#
# Write a daily report to /var/adm/sa/sadd (where dd is day number)
0 18 * * 1-6 /usr/lib/sa/sa2 -s 7:00 -e 18:01 -i 3600 -A
#
# Disk Accounting
0 2 * * 4 /usr/sbin/acct/dodisk
Never Ever give Up !!!!!
1 REPLY 1
Niraj Kumar Verma
Trusted Contributor

Re: System Accounting

Hi

you can use

/usr/sbin/acct/fwtmp < accountin_data_file

for more info refer

man fttmp


--Niraj
Niraj.Verma@philips.com