- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SAR report
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
Forums
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
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
тАО10-21-2002 06:01 AM
тАО10-21-2002 06:01 AM
%usr %sys %wio %idle %rcache %wcache
no other columns.
Thanks in Advance .
VB.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 06:04 AM
тАО10-21-2002 06:04 AM
Re: SAR report
with "sar -A 1 1" you'll have
more columns. Look at "man sar"
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 06:24 AM
тАО10-21-2002 06:24 AM
Re: SAR report
I'm not sure you can. sar -ub is probably about the closest I can think of.
Cheers
Keely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 06:31 AM
тАО10-21-2002 06:31 AM
Re: SAR report
I am looking for 6 columns only.(but it generationg
12 columns. i don't want the other 6 columns),
Thnx,
VB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 08:45 AM
тАО10-21-2002 08:45 AM
Re: SAR report
Example:
sar -b 1 1 >> sar.tmp.file
cat sar.tmp.file | cut (fields you want) > sar.final.file
Just a real quick thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 09:37 AM
тАО10-21-2002 09:37 AM
Re: SAR report
your info is good.
my 'sar -b' output like this
bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s
0 61 100 10 17 41 0 0
I need the output only as followes.
%rcache %wcache
100 41
any body can give exact script?
Thnx,
VB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2002 10:20 AM
тАО10-21-2002 10:20 AM
SolutionCreate a small script...
#!/bin/sh
#
#
sar -b 1 5 > sar.tmp
#
awk ' BEGIN {
while ( "cat '/sar.tmp' " | getline ) {
entries++
if ( $1 ~ "[0-9]" ) printf ("%s", $1 "\t" $4 "\t" $7 "\n") }
} ' >> /sar.file
#
Hope this gives you something to build on..
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 07:37 AM
тАО10-22-2002 07:37 AM
Re: SAR report
Thank You.
U r script is working fine , except that I want to take only the average output for the (SAR -b).
I mean
Script has to be like :
SAR -b 1 5 |grep Average > /sar .. AWK{ } etc.
Can You try to make this work.
thnak you.
VB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2002 03:56 AM
тАО10-23-2002 03:56 AM
Re: SAR report
( $1 ~ "Average" )....
That says that if column one has the word Average than print column $1 $4 & $7 or whatever columns you want..
Rgrds,
Rita
....scripting is a good percentage of what we Admins do. You may want to consider taking a course on this (Posix Shell Programming) to help you..I know it helped me.