Solved

AIX Blocked Process Count Command

Posted on 2013-06-25
2
703 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Samba using Kerberos to Auth from Active Directory 9 70
SMB share across internet 15 65
PHP error function not working on AWS 10 72
Apache module 5 47
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

829 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