Sponsored Content
Operating Systems AIX Need a list of top 10 CPU using processes (also top 10 memory hogs, separately) Post 302349981 by vbe on Wednesday 2nd of September 2009 12:35:30 PM
Old 09-02-2009
Code:
on4:/home/vbe $ oslevel;UNIX95=1 /usr/bin/ps -e -o pcpu,args | /bin/sort -u -r | sed -e 's/\.[0-9][0-9]/&\%/g>
5.3.0.0
  2.3 expres63 /tmp/xsauthn /tmp/xsauthz POFA1 25 28 29 32 648019971 148897804 
  0.1 PatrolAgent 
  0.0 xsauthz -s /tmp/xsauthz 
  0.0 xsauthn -s /tmp/xsauthn 
  0.0 xsagent 9457 /opt/ofa/oes634/olap/log/xsagent.log 
  0.0 sendmail: accepting connections 
  0.0 rlogind 
  0.0 p_ctmat 
  0.0 p_ctmag 
  0.0 ds_listener -port=50005 -hosts= -period=3 -interval=1440 -log=/opt/patrol/dsclient/log/dslistener.log -start



---------- Post updated at 18:26 ---------- Previous update was at 18:25 ----------

works also for HPUX...

---------- Post updated at 18:32 ---------- Previous update was at 18:26 ----------

Code:
on4:/home/vbe $ UNIX95=1 /usr/bin/ps -e -o vsz,args | /bin/sort -u -r | sed -n 2,11p
844780 expres63 /tmp/xsauthn /tmp/xsauthz POFA1 25 28 29 32 648019971 148897804 
16080 /usr/tivoli/tsm/client/ba/bin/dsmc sched 
15164 /usr/sbin/rsct/bin/IBM.CSMAgentRMd 
110156 /usr/bin/xmwlm -L 
 7176 bgscollect -I noInstance -B /opt/patrol/Patrol3.5/AIX5.3.0.0-64/best1/7.3.00 
 2964 /opt/patrol/Patrol3.5/AIX5.3.0.0-64/best1/7.3.00/bgs/bin/dcm -f /opt/patrol/Patrol3.5/AIX5.3-64/log/patrol.FIFO-morgon04-3181
 2948 /opt/OmniVision/bin/omv_bdc -OW -D /opt/OmniVision/data 
 2636 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r 
 2552 /usr/sbin/nmon_aix53 -A -R -F /tmp/nmon_grapher.data.1004034 -c 49 -s 300 
 2340 /opt/ofa/oes634/olap/bin/xsdaemon



---------- Post updated at 18:35 ---------- Previous update was at 18:32 ----------

but Im no AIX specialist and waiting for my boss to send me follow some courses such as AW18FR...(and after AU73FR... I can always dream...)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number. top -n 20 i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Advanced & Expert Users

top %CPU.

I am using the Red Hat Enterprise Linux AS release 3 (Taroon), 2.4.21-4.EL. When I see the output of the command 'top'. I am getting the following ************************************************************************************ 2 processes: 227 sleeping, 5 running, 0 zombie, 0 stopped... (3 Replies)
Discussion started by: praveen_b744
3 Replies

3. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

4. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

5. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

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

6. Shell Programming and Scripting

Warning in Top 10 cpu consuming processes

I m using following command to find top 10 cpu consuming processes. However whenever i execute the command i get following warning. What can be done to avoid it? # ps -auxf | sort -nr -k 3 | head -10 Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root ... (6 Replies)
Discussion started by: pinga123
6 Replies

7. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

8. Shell Programming and Scripting

Print 10 most CPU-intensive processes (wo/ top)

ps -eo pid,comm,%cpu lists all processes (in increasing PID number). How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise. I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies

9. Shell Programming and Scripting

Discrepancy in finding the top memory consuming processes

When I run 'top' command,I see the following Memory: 32G real, 12G free, 96G swap free Though it shows as 12G free,I am not able to account for processes that consume the rest 20G. In my understanding some process should be consuming atleast 15-16 G but I am not able to find them. Is... (1 Reply)
Discussion started by: prasperl
1 Replies

10. Shell Programming and Scripting

Need a script to see top processes for every hour

Hi All, I am new to Scripting , please give me guidance to write the script to see top processes on the Linux operating system. I executed this script on my Virtual Server(Linux) DATE=`date +%Y%m%d%H%M%S` HOME=/home/xmp/testing/xmp_report RADIUS_PID=`xms -xmp sh pr | grep... (2 Replies)
Discussion started by: madala
2 Replies
stl_mi(4)						     Kernel Interfaces Manual							 stl_mi(4)

NAME
stl_mi - Software distribution master inventory files DESCRIPTION
Each software product that is distributed as subsets for the setld(8) command has an associated master inventory file. The master inventory file's name consists of the product's unique 3-letter name and a 3-digit version number with the string .mi for a suffix. The master inven- tory file is used by the software kitting program kits(1) in producing software distribution packages. A master inventory file contains one ASCII record, describing vendor-specified attribute information, for each file in the product kit. Each record is composed of three fields which must be separated by TAB characters. The fields are: A 16-bit unsigned integer. Bit 1 is the v (volatility) bit; when it is set, changes to the existing copy of the file can occur during kit installation. It is usually set for log files required by applications. The remaining bits are reserved. Possible values for this field are therefore 0 or 2. The dot-relative (./) pathname of the file described by this record. Each pathname must appear only once in the master inventory file. Pathnames must begin with a period (.). Records must be sorted in ascending ASCII sequence on this field. The name of the subset containing the file. Standard system directories are not included in subsets; they are represented by the keyword RESERVED in place of a subset name. Files that exist in the product hierarchy but are not distributed as part of any subset have a minus sign (-) in this field. Files that share a gnode (links) must all be included in the same subset. EXAMPLES
This example shows a section of the master inventory for a hypothetical layered product kit: 0 . RESERVED 0 ./usr/opt RESERVED 0 ./usr/opt/OAT100 OATDCB100 0 ./usr/opt/OAT100/bin OATDCB100 0 ./usr/opt/OAT100/bin/attr OATDCB100 0 ./usr/opt/OAT100/bin/dcb.spr OATDCB100 0 ./usr/opt/OAT100/bin/dcb_defaults OATDCB100 0 ./usr/opt/OAT100/bin/dcb_diag.sed OATDCB100 0 ./usr/opt/OAT100/bin/docbld OATDCB100 0 ./usr/opt/OAT100/bin/unstamp OATDCB100 0 ./usr/opt/OAT100/lib OATDCB100 0 ./usr/opt/OAT100/lib/br OATDCB100 0 ./usr/opt/OAT100/lib/br/README.dcb OATDCB100 0 ./usr/opt/OAT100/lib/br/attr.1 OATDCBDOC100 0 ./usr/opt/OAT100/lib/br/dcb.ps OATDCBDOC100 0 ./usr/opt/OAT100/lib/br/docbld.1 OATDCBDOC100 0 ./usr/opt/OAT100/lib/br/docbld.5 OATDCBDOC100 0 ./usr/opt/OAT100/lib/br/unstamp.1 OATDCBDOC100 0 ./usr/opt/OAT100/lib/doclib OATDCB100 0 ./usr/opt/OAT100/lib/doclib/templates OATDCB100 0 ./usr/opt/OAT100/lib/doclib/templates/conv.braces OATDCB100 0 ./usr/opt/OAT100/lib/doclib/templates/conv.command OATDCB100 . . . RELATED INFORMATION
invcutter(1), kits(1), newinv(1), setld(8) Guide to Preparing Product Kits delim off stl_mi(4)
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy