06-19-2009
For memory and CPU usgae take a look at sar, vmstat, mpstat and top.
For execution time take a look at time or timex.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Does any one knows any tools or method to monitor users all activities on Solaris 8, including command and its result. Similar to 'script' ???
Thanks
nana (3 Replies)
Discussion started by: nana
3 Replies
2. UNIX for Dummies Questions & Answers
Hello,
With AIX 5.3 is it possible to run a mksysb with users logged into the system?
The users are accessing a database app that runs on a separate physical disk than the system files. Does this even matter?
Thanks (1 Reply)
Discussion started by: samsa1mi
1 Replies
3. AIX
Hi,
I want to find program's file read,write for a particular time.For example i am executing an application called test1, this will get input from some parameter files(file1,file2,file3) and it will write to some files(file4,file5), so i want to execute one program which will capture these... (3 Replies)
Discussion started by: gnanadurai_it
3 Replies
4. UNIX for Dummies Questions & Answers
What commands would you recommend in order to monitor things like when a user logs on to a server, assuming you know that user's name on the server? (2 Replies)
Discussion started by: Sotau
2 Replies
5. Shell Programming and Scripting
Hello - I didn't find this with search, but I'm guessing it's out there somewhere. Apologies for reposting if that's the case.
I'm shell scripting on a 10.5.8 Mac.
I want to make a program that runs in the background and periodically logs computer use, storing things like - cpu usage,... (2 Replies)
Discussion started by: Qroid
2 Replies
6. UNIX for Dummies Questions & Answers
hi guys
My tivoli monitoring tools is reporting the monitor parameters says Pages Paged out is too high 1600 so it is a critical warning (threshold 400)
now according to them this usually happens at dawn so is there a way to monitor this? during the time I am not working?
ans something... (1 Reply)
Discussion started by: karlochacon
1 Replies
7. UNIX for Dummies Questions & Answers
When I choose to encrypt my drive during a Linux install, it encryps it, but I receive errors in dmesg and in ~/.xsessions-errors during use. The first error is in dmesg where it sometimes shows errors writing to the encypted device. The second error is in ~/.xsessions-errors with an error about... (0 Replies)
Discussion started by: justgoogleit
0 Replies
8. Infrastructure Monitoring
Hi team ,
I am working on monitoring the solaris machine utilization continously with shell script without using any thirdparty software. I stuck at below commands which are limited to 1000000000 seconds.
CPU Utilization
sar -u 1 1000000000
Disk Utilization
sar -d 1 1000000000
Memory... (4 Replies)
Discussion started by: tarun_nix
4 Replies
timex(1) User Commands timex(1)
NAME
timex - time a command; report process data and system activity
SYNOPSIS
timex [-o] [ -p [-fhkmrt]] [-s] command
DESCRIPTION
The given command is executed; the elapsed time, user time and system time spent in execution are reported in seconds. Optionally, process
accounting data for the command and all its children can be listed or summarized, and total system activity during the execution interval
can be reported.
The output of timex is written on standard error.
OPTIONS
The following options are supported:
-o Report the total number of blocks read or written and total characters transferred by command and all its children. This option
works only if the process accounting software is installed.
-p List process accounting records for command and all its children. This option works only if the process accounting software is
installed. Suboptions f, h, k, m, r, and t modify the data items reported. The options are as follows:
-f Print the fork(2)/ exec(2) flag and system exit status columns in the output.
-h Instead of mean memory size, show the fraction of total available CPU time consumed by the process during its execution.
This ``hog factor'' is computed as (total CPU time)/(elapsed time).
-k Instead of memory size, show total kcore-minutes.
-m Show mean core size (the default).
-r Show CPU factor (user time/(system-time + user-time)).
-t Show separate system and user CPU times. The number of blocks read or written and the number of characters transferred
are always reported.
-s Report total system activity (not just that due to command) that occurred during the execution interval of command. All the data
items listed in sar(1) are reported.
EXAMPLES
Example 1: Examples of timex.
A simple example:
example% timex -ops sleep 60
A terminal session of arbitrary complexity can be measured by timing a sub-shell:
example% timex -opskmt sh
session commands
EOT
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWaccu |
+-----------------------------+-----------------------------+
SEE ALSO
sar(1), time(1), exec(2), fork(2), times(2), attributes( 5)
NOTES
Process records associated with command are selected from the accounting file /var/adm/pacct by inference, since process genealogy is not
available. Background processes having the same user ID, terminal ID, and execution time window will be spuriously included.
SunOS 5.10 14 Sep 1992 timex(1)