03-23-2007
Quote:
Originally Posted by Georgesaa
Hey,
Using one single line of command i am trying to show the CPU usage for 4 processors and then filter it out and write it to a text file. Everything seams ok except that i am not able to switch from having the top command show me all CPU processes seperate opposed to showing me the average of all 4.
I know once i go into top, i can toggle that option by hitting the '1' key. However, i would like to have one command that does this.
I've looked into different configurations files as well but no luck. Any ideas or help would be appreciated. Thanck You
Georges A A
EX:
top -n 1 | cat | head -6 | tail -3 | tr -cs 'a-z',.,'0-9' '\n' | sed '1,8d' | sed '2,8d' | sed '3,9d'> /output.txt
This commmand will get and filter the CPU process and write it to a text file. However, this is only displaying the average of all 4.
What do you get when you replace "top -n 1" with just "top" ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I understand the numbers displayed in variable "load average". My question: what are the correct/ideal numbers?
Sometimes, I got less than 1. Others, above 6.
Also, what HW/SW should I tune in order to have the ideal numbers?
Thank you ... (1 Reply)
Discussion started by: dgromerog
1 Replies
2. UNIX for Dummies Questions & Answers
hi guys,
i am having a dual cpu xeon machine.
i came to know that i can view the performance by giving top command.
but top command shows only the usage of one cpu in percentage
while the process are using more than 100% usage in the list .
can i know separately the usage of cpus.
can you... (5 Replies)
Discussion started by: bijuhpd
5 Replies
3. SCO
Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources.
Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies
4. UNIX for Dummies Questions & Answers
Hey,
Using one single line of command i am trying to show the CPU usage for 4 processors and then filter it out and write it to a text file. Everything seams ok except that i am not able to switch from having the top command show me all CPU processes seperate opposed to showing me the average of... (0 Replies)
Discussion started by: Georgesaa
0 Replies
5. Solaris
Hi,
How to install software package top in solaris, (4 Replies)
Discussion started by: manoj.solaris
4 Replies
6. Shell Programming and Scripting
Hi ,
can some one please assist me in using top command
im facing following after using top:
# top -hv
UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected
# top -p
UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected
thanks in advance (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies
7. AIX
Is there a 'top' command equivalent in AIX 4.2 ?
I already checked and I do not see the following ones anywhere:
top
nmon
topas (1 Reply)
Discussion started by: Browser_ice
1 Replies
8. Shell Programming and Scripting
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies
9. Shell Programming and Scripting
Currently when i run top command i get the following columns .
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
In this how to remove '%WCPU' column ?
Thanks very much in advance . (6 Replies)
Discussion started by: kpravinraj
6 Replies
10. Shell Programming and Scripting
Hi All,
i am using the below command and once get the output and i need to keep the
first batch only.in this case how to do this one. please help me on thistop -b -n 5 >top.txt
Thanks, (3 Replies)
Discussion started by: bmk
3 Replies
LEARN ABOUT SUSE
wmsmpmon
WMSMPMON(1) General Commands Manual WMSMPMON(1)
NAME
wmSMPmon - Window Maker System Monitor
SYNOPSIS
wmSMPmon [options]
DESCRIPTION
wmSMPmon is a Window Maker dock application that displays the following information about the system:
- Current CPU utilization of up to two CPUs
- Up to two minutes history of CPU utilization
- Current memory usage
- Current swap usage
On dual CPU systems, wmSMPmon has three different styles for the utilization graph. To toggle between them just click into the graph.
OPTIONS
All options start with one dash.
-h Show summary of options.
-r REFRESH_RATE
Set the refresh rate of the graph in microseconds. The default is 250000 (a quarter of a second).
-g GRAPH_STYLE
Start using graph style #[1-3] (only on dual CPU systems). Style 1 shows the utiliziation in one graph, while 2 and 3 are split in
two little graphs. Style 2 shows the two graphs on top of each other. Style 3 uses a mirror like type. The default style is 1, which
is also the style used on single CPU systems.
-c1 IDX, -c2 IDX
On systems with more than 2 CPUs, select the CPUs to show. Per default CPU number 1 and 2 are shown. On a quad CPU systems you may
launch second wmSMPmon showing CPUs number 3 and 4.
-no-swap
Do not monitor swap.
SEE ALSO
wmaker(1x)
AUTHOR
This manual page was originally written by Alain Schroeder <alain@debian.org> and adapted for wmSMPmon 3 by Thomas Ribbrock
<emgaron@gmx.net>
WMSMPMON(1)