Solved

AIX Blocked Process Count Command

Posted on 2013-06-25
2
696 Views
Last Modified: 2013-06-26
I'm attempting to use a Monitoring tool to scrape a screen for blocked process count and record it.

Is there a similar command to grep "procs_blocked" /proc/stat on a Linux box that I can run on a AIX box to get a similar output?

The output returns as this:

procs_blocked 0
0
Comment
Question by:buckwheattb
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39277223
The number of processes waiting for resources or I/O ("blocked" processes)
can be seen in the "b" column (the second column) of "vmstat".

"vmstat" without parameters shows the summary values since system startup, "vmstat" invoked with an interval parameter shows the average values for that interval.

To get the count of processes currently being blocked (i.e. the average of the last 1-second interval) run

vmstat 1 1

to filter out only the desired value run

vmstat 1 1 |awk '{b=$2} END {print b}'

The output is a single number. To get an output similar to Linux run

vmstat 1 1 |awk '{b=$2} END {print "procs_blocked", b}'

wmp
0
 

Author Closing Comment

by:buckwheattb
ID: 39280233
Awesome! Thank you much.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 91
Bash Script to Analyze Oracle Schemas 11 108
Install Predefined Certificate on Ubunto 4 40
Expiration and Locking of Unix/Solaris OS Accounts 7 36
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question