Sponsored Content
Top Forums Shell Programming and Scripting CPU usage of particular processes Post 302369345 by proactiveaditya on Saturday 7th of November 2009 04:01:36 PM
Old 11-07-2009
Code:
[root@mypbxadmin ~]# ps aecv
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
 2954 pts/0    R+     0:00      0    74  8289   696  0.0 ps
 6003 tty1     Ss+    0:00      0    10  3781   492  0.0 mingetty
 6004 tty2     Ss+    0:00      0    10  3781   492  0.0 mingetty
 6005 tty3     Ss+    0:00      0    10  3781   492  0.0 mingetty
 6006 tty4     Ss+    0:00      0    10  3781   488  0.0 mingetty
 6007 tty5     Ss+    0:00      0    10  3781   492  0.0 mingetty
 6009 tty6     Ss+    0:00      0    10  3781   492  0.0 mingetty
18939 pts/0    Ss     0:00      0   710 65385  1540  0.0 bash
19106 pts/0    S      0:00      0   710 10221  1492  0.0 bash

Code:
[root@mypbxadmin ~]# ps -C openser
  PID TTY          TIME CMD
 6059 ?        00:00:00 openser
 6089 ?        00:00:31 openser
 6091 ?        00:00:31 openser
 6093 ?        00:00:30 openser
 6094 ?        00:00:31 openser
 6096 ?        00:00:30 openser
 6098 ?        00:00:31 openser
 6100 ?        00:00:30 openser
 6102 ?        00:00:30 openser
 6104 ?        00:00:07 openser
 6106 ?        00:00:00 openser
 6108 ?        00:00:00 openser
 6110 ?        00:00:00 openser
 6112 ?        00:00:00 openser
 6114 ?        00:00:00 openser
 6116 ?        00:00:00 openser
 6118 ?        00:00:00 openser
 6120 ?        00:00:00 openser
 6122 ?        00:00:00 openser
 6126 ?        00:00:00 openser

Code:
[root@mypbxadmin ~]# ps aecv | grep "openser" | awk '{print $11}'
No output

 

10 More Discussions You Might Find Interesting

1. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies

2. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

3. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

4. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

5. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. UNIX for Advanced & Expert Users

Monitoring cpu usage of mysql processes/threads/queries without any tool

hi all, i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it? show processlist is of no use as no information abt cpu usage is given. plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies

8. AIX

Script to identify high CPU usage processes

Hi Guys, I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks. Harby. (6 Replies)
Discussion started by: arizah
6 Replies

9. UNIX for Advanced & Expert Users

CPU utilization by processes

OS is HP Number of CPU available is 4 I am running 8 multiple parallel application processes. I observed that the application is NOT able to occupy maximum CPU. Out of 4, 2 of them are used by 89% and 11% respectively. Where as other two are always sitting idle. Can anyone please comment... (3 Replies)
Discussion started by: sbiswas
3 Replies

10. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies
MINGETTY(8)                                                  Linux Programmer's Manual                                                 MINGETTY(8)

NAME
mingetty - minimal getty for consoles SYNOPSIS
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup] [--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10] [--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username] [--loginpause] tty DESCRIPTION
mingetty is a minimal getty for use on virtual consoles. Unlike agetty(8), mingetty is not suitable for serial lines. I recommend using mgetty(8) for this purpose. OPTIONS
--noclear Do not clear the screen before prompting for the login name (the screen is normally cleared). --nonewline Do not print a newline before writing out /etc/issue. --noissue Do not output /etc/issue. --nohangup Do not call vhangup() to disable writing to this tty by other applications. --nohostname Do not print the hostname before the login prompt. --long-hostname By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown. --loginprog /bin/login Change the login app. --nice 10 Change the priority by calling nice(). --delay 5 Sleep this many seconds after startup of mingetty. --chdir /home Change into this directory before calling the login prog. --chroot /chroot Call chroot() with this directory name. --autologin username Log the specified user automatically in without asking for a login name and password. Check the -f option from /bin/login for this. --loginpause Wait for any key before dropping to the login prompt. Can be combined with --autologin to save memory by lazily spawning shells. ISSUE ESCAPES
mingetty recognizes the following escapes sequences which might be embedded in the /etc/issue file: d insert current day (localtime), l insert line on which mingetty is running, m inserts machine architecture (uname -m), inserts machine's network node hostname (uname -n), o inserts domain name, inserts operating system release (uname -r), insert current time (localtime), s inserts operating system name, u resp. U the current number of users which are currently logged in. U inserts "n users", where as u only inserts "n". v inserts operating system version (uname -v). EXAMPLE
"Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996" was produced by putting "s m v" into /etc/issue. FILES
/etc/issue, /var/run/utmp. SEE ALSO
mgetty(8), agetty(8). AUTHOR
Copyright (C) 1996 Florian La Roche <laroche@redhat.com>. Man-page written by David Frey <David.Frey@eos.lugs.ch> and Florian La Roche. Debian-Local 6 Apr 1996 MINGETTY(8)
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy