Solved

AIX Blocked Process Count Command

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

685 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