- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can you retrieve sar data for one disk device?
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
тАО01-26-2006 04:04 AM
тАО01-26-2006 04:04 AM
I'm currently running something like:
sar -d -s 00:00 -e 04:00 -f /var/adm/sa/sa26
but I have 264 devices!!! - and it is a pain to manually go through the data to look at one disk...
Yes, I can awk/grep - but I also need the time stamp....which is only displayed on the first disk of that period...
Rgds...Geoff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:24 AM
тАО01-26-2006 04:24 AM
Re: Can you retrieve sar data for one disk device?
How about:
# perl -lne 'if (m/(\d\d:\d\d:\d\d)/) {$t=$1};if (m/DEVICE/) {print $t,$_}' /var/adm/sa/sa26
Modify DEVICE to match your disk of interest.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:25 AM
тАО01-26-2006 04:25 AM
Re: Can you retrieve sar data for one disk device?
Can iostat be used to get the information ?.
Regards,
bl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:33 AM
тАО01-26-2006 04:33 AM
Re: Can you retrieve sar data for one disk device?
Doesn't seem to grab anything:
perl -lne 'if (m/(\d\d:\d\d:\d\d)/) {$t=$1};if (m/c62t0d2/) {print $t,$_}' /var/adm/sa/sa20
returns blank...
But it is there:
sar -d -s 00:00 -e 04:00 -f /var/adm/sa/sa20 |grep c62t0d2
c62t0d2 1.79 0.50 13 526 4.98 1.71
c62t0d2 1.66 0.50 11 464 5.12 1.82
c62t0d2 1.39 0.50 10 412 5.04 1.74
c62t0d2 0.66 0.50 9 274 5.13 0.73
c62t0d2 1.44 0.50 10 432 5.02 1.82
c62t0d2 1.25 0.50 8 361 4.95 1.87
c62t0d2 1.65 0.50 8 373 5.04 2.78
c62t0d2 0.77 0.50 3 337 4.96 2.89
c62t0d2 0.56 0.50 1 126 5.11 4.18
c62t0d2 1.52 0.50 5 252 5.00 4.42
c62t0d2 0.90 0.50 5 162 5.07 1.94
c62t0d2 1.60 0.50 7 309 5.03 2.98
c62t0d2 0.51 0.50 4 149 5.00 1.32
c62t0d2 1.64 0.50 7 377 5.01 3.06
c62t0d2 1.00 0.50 5 270 5.07 2.48
c62t0d2 3.09 0.50 17 769 5.07 2.28
c62t0d2 2.39 0.50 15 634 5.01 1.82
c62t0d2 2.77 0.50 15 686 4.98 2.40
c62t0d2 1.63 0.50 8 468 4.97 2.28
c62t0d2 1.13 0.50 5 288 4.97 2.65
c62t0d2 0.40 0.50 5 150 5.03 0.78
c62t0d2 0.55 0.50 7 195 5.06 0.77
c62t0d2 0.80 0.50 6 256 4.98 1.75
Average c62t0d2 1.30 0.50 8 345 5.02 2.06
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:33 AM
тАО01-26-2006 04:33 AM
Re: Can you retrieve sar data for one disk device?
I'd reccommend this:
http://www.hpux.ws/system.perf.sh
But!!!!
Before looking at the disk stuff, grep it.
It would be easy enough to actually modify the above programs to monitor only certain devices, but I'd like to have the data and fileter it after the fact.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:38 AM
тАО01-26-2006 04:38 AM
Re: Can you retrieve sar data for one disk device?
http://www.hpux.ws/
Cannot find server or DNS Error
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:40 AM
тАО01-26-2006 04:40 AM
Re: Can you retrieve sar data for one disk device?
Hope you are well. Orlando seems a long time ago.
Anyway,
Check out the following prior discussion:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988904
It seems to solve much similar problems.
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:47 AM
тАО01-26-2006 04:47 AM
Re: Can you retrieve sar data for one disk device?
Well, could you post a snippet of your output?
It works for me when doing:
# sar -d 5 5||perl -lne 'if (m/(\d\d:\d\d:\d\d)/) {$t=$1};if (m/cXtYdZ/) {print $t,$_}'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 04:55 AM
тАО01-26-2006 04:55 AM
Re: Can you retrieve sar data for one disk device?
did you mean two pipes from sar?
sar -d 5 5||perl -lne 'if (m/(\d\d:\d\d:\d\d)/) {$t=$1};if (m/c62t0d2/) {print $t,$_}'
Returns everything...
Or one:
sar -d 5 5|perl -lne 'if (m/(\d\d:\d\d:\d\d)/) {$t=$1};if (m/c62t0d2/) {print $t,$_}'
10:53:08 c62t0d2 0.20 0.50 4 141 5.34 0.57
10:53:18 c62t0d2 0.20 0.50 5 128 3.55 0.48
10:53:23 c62t0d2 0.20 0.50 2 61 6.22 0.39
10:53:28Average c62t0d2 0.12 0.50 2 66 4.71 0.50
One pipe worked...
But I must say - Doug O'Leary's script in the link in the post that my good friend Hein posted above works great!
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 05:01 AM
тАО01-26-2006 05:01 AM
Re: Can you retrieve sar data for one disk device?
One pipe. I just can't type today :-))
BTW, the problem with the daily files is that they are binary files, hence require some more special treatment. Ooops.
Regards!
...JRF...