- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to check what processes running when disk b...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 06:02 PM
тАО08-07-2011 06:02 PM
Script to check what processes running when disk busy reach above 80%
Hi Gurus,
I'm not expert in scripting and need your help to share with me how to extract data with other script's output. I need to have a script to check what processes running when the disk busy reach above 80%. For disk busy we use #sar -d and check on 3rd column (%busy). To check processes we need to run #ps -ef. But how can I intergrate these two commands?
- Tags:
- sar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 10:53 PM
тАО08-07-2011 10:53 PM
Re: Script to check what processes running when disk busy reach above 80%
>But how can I integrate these two commands?
Possibly only by looking at the glance output. I don't know if pstat(2) provides this info?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 11:12 PM
тАО08-07-2011 11:12 PM
Re: Script to check what processes running when disk busy reach above 80%
please check above link if its usefull.
Regards,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2011 07:13 AM
тАО08-08-2011 07:13 AM
Re: Script to check what processes running when disk busy reach above 80%
The value of 'disk busy' is over-rated.
You may want to focus on raw IO rate.
Instead of watching iostat as a first trigger, you may want to go straight to a process view ans declare yourself per-process IO IO threshholds. But please realize that the the IO might not be done directly, but through some helper, like update for the cache writes, or maybe and Oracle database-write process.
You may want to describe the application a little bit if you need further help, as many application have better source-level performance indicators then second guessing it from OS data can provide (Oracle, SAP,...)
Glance has options to display per process IO stats, but I don't think that is easy to script.
You may need a help program based on pstat data
( http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02267025/c02267025.pdf )
Check out for example:
http://yong321.freeshell.org/freeware/pio.html#hpux
Hope this helps some,
Hein
HvdH Performance Consulting.