06-16-2011
when i ran prstat -Lc 1 1
i got following o/p
bash-3.00$ prstat -Lc 1 1
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/LWPID
5301 s2yb 3577M 3386M sleep 59 0 10:27:53 1.4% db2sysc/1
6316 s2yb 3578M 3387M sleep 59 0 6:37:57 1.2% db2sysc/1
10121 root 21M 9824K sleep 60 0 62:02:21 0.9% scopeux/1
6230 s2d0 2900M 2673M sleep 59 0 3:46:00 0.6% db2sysc/1
2240 daemon 2864K 1680K sleep 60 -20 1:36:37 0.4% nfsd/9287
5331 root 35M 21M sleep 59 0 33:01:25 0.4% irmulticol/1
2240 daemon 2864K 1680K sleep 60 -20 2:23:33 0.4% nfsd/9285
2205 dsfad05 659M 486M sleep 59 0 2:23:00 0.4% java/10
2240 daemon 2864K 1680K sleep 60 -20 2:30:44 0.4% nfsd/9284
2240 daemon 2864K 1680K sleep 60 -20 1:26:52 0.4% nfsd/9288
10167 root 2008K 912K sleep 59 0 28:10:17 0.4% perf64/1
5330 root 17M 8208K sleep 59 0 27:00:49 0.4% iravcol/1
2240 daemon 2864K 1680K sleep 60 -20 2:22:38 0.4% nfsd/9286
5356 s2yb 3582M 3395M sleep 59 0 4:41:55 0.3% db2sysc/1
23693 s2c8 2213M 2164M sleep 59 0 0:06:18 0.2% db2sysc/1
Total: 964 processes, 12670 lwps, load averages: 1.76, 2.03, 2.05
Load aveage is not column ..i want to cpature only 1.76 bold one..thanks
---------- Post updated at 04:58 AM ---------- Previous update was at 04:54 AM ----------
or else one thing i can do sort with username and CPU%?
take result CPU% in variable
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Guys im trying to create a script that will load ballance 3 devices. Unix is still very alien to me having only been in this position for 3 months now. Not to mention the fact that i've been thrown in the deep end. Anyway so far i've managed to make a script that looks at all 4 devices and make a... (1 Reply)
Discussion started by: yorkyboy
1 Replies
2. Shell Programming and Scripting
I have a tab delimited file which has 27 character fields. The file needs to be loaded into an Oracle table. But the challenge is that everytime the file comes it may or may not have values in all 27 fields.
Column Definition of the 27 fields:
TYPE: Char (1)
NAME: Char (30)
CUSTOM_VAL: Char... (8 Replies)
Discussion started by: madhunk
8 Replies
3. Shell Programming and Scripting
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies
4. Linux
Hello
anybody know how use Load balance in linux?
Summer (2 Replies)
Discussion started by: summerpeh
2 Replies
5. UNIX for Dummies Questions & Answers
Ok so I have files that are going to land on /apps/, but I need to load balance them so I need to load balance them to four different folders.
The three file extensions I get are .mpe .mpd and mpf which will land here... /apps/ I can't move them until the mpf is there it triggers the next... (8 Replies)
Discussion started by: xgringo
8 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I wanted to know what time the box jobs were loaded into a particular Autosys Instance.
Is there a autosys command to find out the above? (The timestamp at which a box was loaded)
I had loaded my JIL script without outputting it to the log file. (4 Replies)
Discussion started by: grep_me
4 Replies
7. Shell Programming and Scripting
Hi,
I need to balance the load to be processed by the system using shell script.
The scenario is like below:
Suppose there are some files in a directory:
-rw-rw-r-- 1 usr usrgrp 456432306 Oct 23 07:53 abc_queue_q1
-rw-rw-r-- 1 usr usrgrp 4123934 Oct 23 07:53... (1 Reply)
Discussion started by: vsachan
1 Replies
8. Shell Programming and Scripting
Hey everyone
can you check this script logic ?
it has to restart webservice if found server load is higher than X,
also i have put it in crontab to run every one minute
#!/bin/bash
loadavg=$(uptime | awk -F "." '{ print $1 }' | awk -F ":" '{ print $5 }')
if ; then
pkill -9 httpd
service... (7 Replies)
Discussion started by: nimafire
7 Replies
9. Shell Programming and Scripting
Hi,
Im going to use shell script for load the data into DB.
First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD).
In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies