Solved

AIX Blocked Process Count Command

Posted on 2013-06-25
2
684 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
Comment Utility
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
Comment Utility
Awesome! Thank you much.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now