process accounting


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers process accounting
# 1  
Old 03-25-2009
process accounting

When i run #acctadm command it shows it as inactive but /var/adm/pacct file has todays date such as
Code:
 -rw-r--r--   1 adm      adm      182397160 Mar 25 15:48 pacct

# acctadm
Task accounting: inactive
Task accounting file: none
Tracked task resources: none
Untracked task resources: extended,host,mstate
Process accounting: inactive
Process accounting file: none
Tracked process resources: none
Untracked process resources: extended,host,mstate

where do I need to look what process is writing to this file please advise.

Thanks

Last edited by Yogesh Sawant; 03-26-2009 at 03:36 AM.. Reason: added code tags
# 2  
Old 03-25-2009
any one with an answer
# 3  
Old 03-25-2009
why why don't you take a look at the fuser command man page
# 4  
Old 03-25-2009
Following is the out put from this command

root:/var/adm$ fuser /var/adm/pacct
/var/adm/pacct:
# 5  
Old 03-25-2009
Quote:
Originally Posted by Tirmazi
Following is the out put from this command

root:/var/adm$ fuser /var/adm/pacct
/var/adm/pacct:
try
Code:
 
fuser -cu /var/adm/pacct

this will give you the process and the user name in the paranthesis
go throught the man page read the diff option of fuser
# 6  
Old 03-26-2009
I don't have a SUNOS system handy but isn't "acctadm" for Extended Accounting?
On my HP-UX system the following configuration text file turns unix Process Accounting on/off.
/etc/rc.config.d/acct
The actual processes are usually started in a rc2 script containing "/usr/sbin/acct/startup" and "/usr/sbin/acct/shutacct"
See
man acct
A "pacct" file on a busy system can get very large and I have yet to find a use for the data so I routinely turn off Process Accounting.
Hope this helps.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Accounting Software

GNUCash - There is documented problem with auto-fill; ie, that it cannot be turned off. It will delete 1/2 of a transaction. I have searched the internet and have not been able to make any of the "work arounds" work. I have also contacted the email lists, to no avail. This is open source,... (3 Replies)
Discussion started by: Meow613
3 Replies

2. UNIX for Advanced & Expert Users

Process accounting and Shell process time

Hi All, I am running the following accounting on one of my executable, $ accton /home/myexe-acct $ ./myexe $ accton When I check the process timings I get the below result, Shell process time: 300ms myexe time: 100ms I want to know on why the shell(sh) process is taking so much time... (1 Reply)
Discussion started by: santoshbr4
1 Replies

3. UNIX for Advanced & Expert Users

Special accounting information

I need to figure out why did the system run out of memory and hung at a certain time. For further investigation, the info about every processes' CPU and memory consumption over time would be of high value. I see, that Unix accounting may be of some help. But I'm not sure if I can get this... (3 Replies)
Discussion started by: descentspb
3 Replies

4. Cybersecurity

System Accounting

How do I enable System Accounting on Solaris 8? In Solaris 7 I would copy the /usr/lib/acct file to S22acct and start it like that. That doesn't seem to be an option in Solaris 8. Thanks for your help! (2 Replies)
Discussion started by: pc9456
2 Replies

5. UNIX for Advanced & Expert Users

Accounting Process

Hi, I need to know , if there is some routine like a function "accton" to accounting process for HP-UX, because I need accounting the command executed for users and is necesary that include the argumments of command but the file "paccton" generated for function "accton" doesn't include them. ... (0 Replies)
Discussion started by: hvazquez
0 Replies

6. Programming

utmp ACCOUNTING

the utmp.h ACCOUNTING macro is set to 9 on my system. my question is: what "accounting" is it referring to? (2 Replies)
Discussion started by: thmnetwork
2 Replies

7. UNIX for Dummies Questions & Answers

Small Business Accounting Software

I'm new to Unix and currently running Solaris 9. Does anyone know of any good Small Business Accounting software that's inexpensive that runs on Solaris? (1 Reply)
Discussion started by: jbarbuto
1 Replies
Login or Register to Ask a Question