Sponsored Content
Operating Systems Solaris Capture PRSTAT based on CPU usage percentage Post 302974432 by MadeInGermany on Monday 30th of May 2016 02:56:44 PM
Old 05-30-2016
problem #2 is that /usr/bin/awk cannot read a number if a character is appended. Here in $9 a % character is appended. Work-around: /usr/bin/nawk
With the default print action
Code:
prstat 5 1 | nawk '($9+0 >= 3)'

The last line (summary) eventually matches. An extra condition excludes it
Code:
prstat 5 1 | nawk '($9+0 >= 3 && $1+0 > 0)'

This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to determine cpu&memory percentage usage per user

Using HP-UX v11 Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode. Found out next ways to monitor total cpu usage under hp-ux: 1) vmstat, also shows free memory 2) sar -M ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
4 Replies

2. UNIX for Dummies Questions & Answers

Usage of prstat -j option.

Hi, I need to capture output of prstat command for certain pid's .I found it as prstat -j filename. I created a filename projlist gave the pid number on the projlist file and run the cmd like this >prstat -j projlist prstat: illegal argument -- projlist can anybody suggest how to... (1 Reply)
Discussion started by: vipin771
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. Shell Programming and Scripting

get percentage cpu from pid

Hi all, I need a script that will check the cpu usage of a certain process and then kill the process if the % cpu is greater than 25%. I know i can get the pid of a process by doing pidof <processname>. Once I have the pid number is there a command in bash to return the current % cpu? (2 Replies)
Discussion started by: borderblaster
2 Replies

5. 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

6. Solaris

100% memory usage in prstat

Hi Guys, I have observed the Oracle (DB USER) is utilizing 100% of the memory in the prstat -a output. I am bit confused is it normal and if not how to bring it down? ABout the machine it is a SunOS 5.10 Generic_125100-10 sun4v sparc SUNW,Sun-Fire-T200. Please see below output of prstat -a... (12 Replies)
Discussion started by: Asteroid
12 Replies

7. Shell Programming and Scripting

Help with bash script - Need to get CPU usage as a percentage

I'm writing a bash script to log some selections from a sensors output (core temp, mb temp, etc.) and I would also like to have the current cpu usage as a percentage. I have no idea how to go about getting it in a form that a bash script can use. For example, I would simply look in the output of... (3 Replies)
Discussion started by: graysky
3 Replies

8. Shell Programming and Scripting

Finding total Percentage CPU usage

Hi, How can I find total CPU usage in percentage? e.g. if my system has 8 CPUs and I want to list total usage for all of them, is it possible through a command? I have tried some of the commands like top, mpstat, sar. The output of those commands has to be manipulated to derive the percentage... (14 Replies)
Discussion started by: jal_capri
14 Replies

9. Shell Programming and Scripting

Questions about prstat and CPU utility

Question 1: I want to store the result of prstat to a file. If I write in this way: prstat -a >>prstat.log, the result of prstat is stored to the file prstat.log correctly; but if I write it in this way:prstat -a |grep abc>>prstat.log (abc is the name of a program since I only want to trace... (3 Replies)
Discussion started by: lilili07
3 Replies

10. Solaris

Capture PRSTAT

Is there any scripts to capture the process which use more than 5% CPU from prstat output? (9 Replies)
Discussion started by: tharmendran
9 Replies
ISV(4)							   BSD Kernel Interfaces Manual 						    ISV(4)

NAME
isv -- IDEC Supervision/16 image capture board SYNOPSIS
isv0 at isa? port 0x2f0 isv0 at isa? port 0x2e0 isv0 at isa? port 0x3f0 isv0 at isa? port 0x3e0 DESCRIPTION
isv is a driver for the IDEC Supervision/16, an image capture board that plugs into a 16-bit ISA bus. The IDEC Supervision/16 digitizes an NTSC television signal, storing a 512 x 480-pixel, 8-bit grayscale image in its 256kB dynamic RAM array every 1/30th of a second. The host reads frames from the DRAM using 122881 16-bit I/O reads. Reading frames from the Supervision/16 is quite slow: after the host reads a 16-bit word from the DRAM, the Supervision/16 state machine takes approximately 0.5 microseconds to get ready for the next read. Theoreti- cally, a frame rate of approximately 10 frames per second is possible. isv achieves a frame rate of approximately 6 frames per second. SEE ALSO
Programming the Supervision/16 Image Capture Board, IDEC, circa 1991. HISTORY
The isv device first appeared in NetBSD 5.0. AUTHORS
The isv driver was written by David Young <dyoung@NetBSD.org>. BUGS
Synchronizing with the hardware and reading frames from it is very CPU-intensive. isv will not detect the capture board if it is not attached to an active video source. To force NetBSD to detect the capture board at any time, re-scan the ISA bus using, e.g., drvctl -r isa0. BSD
April 1, 2008 BSD
All times are GMT -4. The time now is 01:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy