1847255 Members
4083 Online
110263 Solutions
New Discussion

Re: system accounting

 
deepak_9
Frequent Advisor

system accounting

Hi,

wanted to know how to enable the system accounting. I am getting an error "sar: Can't open /var/adm/sa/sa19" whenever I try to run "sar" command. pl help !!!
Never Ever give Up !!!!!
8 REPLIES 8
Darrell Allen
Honored Contributor

Re: system accounting

Hi,

First thing you need to do is:

man sar
man sa1

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Uday_S_Ankolekar
Honored Contributor

Re: system accounting

Hi,

The sar program is looking for the binary file /usr/adm/sa/saXX, where XX
is the current date of the month. To create this file, do the following:

/usr/lib/sa/sadc /usr/adm/sa/sa`date +%d`

Please see the sa1(1M) man page for more information.

-USA..
Good Luck..
Robin Wakefield
Honored Contributor

Re: system accounting

Deepak,

Do you mean system accounting? - sar is for system resource monitoring (System Activity Reporter)

For system accounting, look at:

man 1m acct

Rgds, Robin
Ian Dennison_1
Honored Contributor

Re: system accounting

ll -d /var/adm/sa?

Sounds silly but had to ask! Share and Enjoy! Ian
Building a dumber user
Sanjay_6
Honored Contributor

Re: system accounting

Hi Deepak,

you probably don't have sar configured on your system. Do "man sar" to see how you can configure sar. Meanwhile to get the sar report for the day, try this,

/usr/lib/sa/sadc /usr/adm/sa/sa`date +%d`

Hope this helps.

Regds
Helen French
Honored Contributor

Re: system accounting

hey,

See the man pages of SAM. the files 'saXX' in /var/adm/sa are the standard system activity daily data files.

System accounting and SAR are totally different.

See this :
http://www.docs.hp.com/hpux/onlinedocs/B2355-90681/B2355-90681.html

HTH,
Shiju
Life is a promise, fulfill it!
deepak_9
Frequent Advisor

Re: system accounting

hi,

thanks for ur prompt help.
one more thing.. now i have enabled monthly accounting. but for daily accounting the details of my sar19 should be updated every 1 hr. can u pls guide me as to what parameters need to be set for a daily sar report on a hourly basis.

regards
Never Ever give Up !!!!!
Tom Geudens
Honored Contributor

Re: system accounting

Hi,
From my very own crontab :-)
0 * * * * /usr/lbin/sa/sa1 900 4
05 22 * * * /usr/lbin/sa/sa2 -s 7:00 -e 19:01 -i 3600 -A

Once you got these running ... sar should work.
Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?