coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Friday May 24, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 22 guests online

Newest Member

nbewwmbxog

Hit Counter
11570370 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620358
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

how to reports the elapsed time, user time, and system execution time for a command in IBM AIX
Description

The timex command reports, in seconds, the elapsed time, user time, and system execution time for a command. With specified flags, the timex command lists or summarizes process accounting data for a command and all of its children. Command is the name of any executable file on the system.

# timex [ -o ] [ -p ] [ -s ] Command

where :

-o : reports the total number of blocks read or written and total characters transferred by a command and all its children.

-p ; lists process accounting records for a command and all its children. The number of blocks read or written and the number of characters transferred are reported. The -p flag takes the f, h, k, m, r, and t arguments defined in the acctcom command to modify other data items.

-f : print the fork/ exec flag and system exit status columns in the output.

-h : instead of mean memory size, shows the fraction of total available CPU time consumed by the process (hogfactor).

-k : instead of memory size, shows total kcore minutes (memory measurement in kilobyte segments used per minute of run time).

-m : shows mean main-memory size. This is the default. The -h flag or -k flag turn off the -m flag.

-r : shows CPU factor.

-t : shows separate system and user CPU times.

-s : reports total system activity during the execution of the command. All the data items listed in the sar command are reported.

Note: Accounting must be turned on to use the -o or -p flags.
Example

timex -o ls

Return to search results

Random coolcommands

coolcommand: fwstart - how to load (start) the firewall module in Checkpoint Firewall-1
Example: fwstart
[show me the details]
coolcommand: procflags - how to display tracing flags, signals and status info of a process in AIX 5L
Example: procflags 233628; procflags -r 233628
[show me the details]
coolcommand: to confirm which network adapter is plugged into the switch in IBM AIX
Example: netstat -v |grep -E "ETHER|Media"
[show me the details]
coolcommand: rrdtool - restore a rrdtool (round robin database) database file from xml
Example: rrdtool restore cpu.xml cpu.rrd
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51966
Category AIX49058
Category General UNIX47583
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum