12-08-2008
The subject of unix Process Accounting is covered in "man 1m acct" and the links from there. If this is not already set up on you computer it requires proper sizing because the accounting files can get very big and the commands are fiddly. The whole subject is made easier with a good book or a training course.
10 More Discussions You Might Find Interesting
1. Solaris
Hello All,
I am quite new to Solaris.
Can someone tell me what's the equivalent of HP-UX ps -efx on Solaris? It basically displays the whole command, instead of te first 80 characters of the command.
I need that to differentiate among multiple Weblogic processes where all the specifics... (1 Reply)
Discussion started by: usfrog
1 Replies
2. Solaris
I'm currently fixing a bug in a C program in which I need to check to make sure another specific application is up and running before continuing.
Are there any SunOS API functions that can provide me with a list of currently running processes on the system? I'd like to avoid using 'ps' with a... (1 Reply)
Discussion started by: jalburger
1 Replies
3. UNIX for Advanced & Expert Users
Hello Community,
I've got a unix server and 13 pcs with windows. I'm trying to built some tiny winy app to monitorize the windows processes. Any one knows if exist some kind of pstools for unix to communicate with windows.
I'm the system administartor so I've got rights in all computers.
... (3 Replies)
Discussion started by: ncatdesigner
3 Replies
4. UNIX for Advanced & Expert Users
Hi all,
How can I get the list of all the processes that are either Orphan or Zombie or Running or Ended or Stopped ?
Please suggest !!
Thanks.
Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies
5. AIX
Hi Expert,
Can anyone tell what command can list the resources used for each process in AIX, including the following columns:
Process ID, Program Name, Resources used(CPU,RAM,SWAP),Start Time
Thanks!!
Victor Cheung (3 Replies)
Discussion started by: victorcheung
3 Replies
6. UNIX for Dummies Questions & Answers
i read in ps manual that -C cmdlist will just result to processes stated in the cmdlist. i intend to issue this command
ps c -FC "firefox-bin, soffice.bin"
here cmdlist contains two executables only. in the future, this cmdlist will grow. is there a way i can make ps read a csv file as... (2 Replies)
Discussion started by: mbaste2
2 Replies
7. Shell Programming and Scripting
i want to list which process using how many cpu ,but i must be list cpu rate and process name,not only PID
how can i do? (5 Replies)
Discussion started by: utoptas
5 Replies
8. Shell Programming and Scripting
Hi,
I need an output of process running on server, i am executing
ps -ef | grep test
output is
asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117
asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies
9. Shell Programming and Scripting
Most of the code I've seen is been listing processes or capturing process ids, etc. But here's what I need to do. Preferably in Korn shell.
1. do a ps -ef |grep tns |grep -v grep
in order to get a list or Oracle listeners that are running.
2. parse the line into components which... (7 Replies)
Discussion started by: MRMonteith
7 Replies
10. Shell Programming and Scripting
Hi team,
Anyone help me cut a process name from ps -ef output?
lit-dbrac01-b004: $ ps -ef|grep pmon|cut -f5 ...
oracle 448 1 0 2014 ? 00:04:15 ora_pmon_blms50db2
Like I need just the process name:
ora_pmon_blms50db2
Any ideas?
Thanks in advance.
jd (3 Replies)
Discussion started by: jonnyd
3 Replies
LEARN ABOUT HPUX
acctwtmp
acct(1M) acct(1M)
NAME
acct: acctdisk, acctdusg, accton, acctwtmp, closewtmp, utmp2wtmp - overview of accounting and miscellaneous accounting commands
SYNOPSIS
file] file]
[file]
reason
DESCRIPTION
Accounting software is structured as a set of tools (consisting of both C programs and shell procedures) that can be used to build account-
ing systems. The shell procedures, described in acctsh(1M), are built on top of the C programs.
Connect time accounting is handled by various programs that write records into the The programs described in acctcon(1M) convert this file
into session and charging records which are then summarized by (see acctmerg(1M)).
Process accounting is performed by the HP-UX system kernel. Upon termination of a process, one record per process is written to a file
(normally The programs in acctprc(1M) summarize this data for charging purposes; is used to summarize command usage (see acctcms(1M)).
Current process data can be examined using (see acctcom(1M)).
Process accounting and connect time accounting (or any accounting records in the format described in acct(4)) can be merged and summarized
into total accounting records by (see the format in acct(4)). is used to format any or all accounting records (see acctsh(1M)).
reads lines that contain user ID, login name, and number of disk blocks, and converts them to total accounting records that can be merged
with other accounting records.
reads its standard input (usually from and computes disk resource consumption (including indirect blocks) by login. Only files found under
login directories (as determined from the password file) are accounted for. All files under a login directory are assumed to belong to
that user regardless of actual owner. If is given, records consisting of those file names for which charges no one are placed in file (a
potential source for finding users trying to avoid disk charges). If is given, file is the name of the password file. This option is not
needed if the password file is (See diskusg(1M) for more details.)
turns process accounting off if the optional file argument is omitted. If file is given, it must be the name of an existing file, to which
the kernel appends process accounting records (see acct(2) and acct(4)).
writes a utmp record to its standard output if the option is not used. If the option is used, writes a record to The record contains the
current time and a string of characters that describe the reason for writing the record. A record type of is assigned (see utmp(4) and
utmps(4)). The string argument reason must be 11 or fewer characters, numbers, or spaces if option is not used. Otherwise, it must be 63
or fewer characters, numbers, or spaces. For example, the following are suggestions for use in reboot and shutdown procedures, respec-
tively:
writes a record, for each user currently logged in, to the file This program is invoked by runacct to close the existing file before creat-
ing a new one.
writes a record, for each user currently logged in, to the file This program is invoked by runacct to initialize the newly created file.
FILES
Holds all accounting commands listed in section(1M) of this manual.
Current process accounting file.
Used for converting login name to user ID
Login/logoff history file.
New login/logoff history database.
SEE ALSO
acctcms(1M), acctcom(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), diskusg(1M), fwtmp(1M), runacct(1M), acct(2), acct(4),
utmp(4). utmps(4), wtmps(4).
STANDARDS CONFORMANCE
acct(1M)