- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How come I cannot get what I want from sar immedi...
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
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
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
04-23-2001 07:14 PM
04-23-2001 07:14 PM
How come I cannot get what I want from sar immediately?
sar -b 5 20|awk 'BEGIN{printf "Time %rcache %wcache\n"} {print $1, $4, $7}' to get only three columns "time", "%rcache" and "%wcache", but I have to wait for 20*5=100seconds before I get the result, how can I see the results immediately as sar is running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2001 08:20 PM
04-23-2001 08:20 PM
Re: How come I cannot get what I want from sar immediately?
Try doing your commands in a loop like,
x=0
while [ $x != 20 ]
do
let x=x+1
sar -b 5 1 | awk 'BEGIN{printf "Time %rcache %wcache\n"} {print $1, $4, $7}'
done
~Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2001 08:31 PM
04-23-2001 08:31 PM
Re: How come I cannot get what I want from sar immediately?
print "Time %rcache %wcache"
let x=0
while [ $x != 20 ]
do
let x=x+1
sar -b 5 1 | tail -n 1 | awk '{print $1, $4, $7}'
done
You can put this into a script to run.
Cheers,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 05:56 PM
04-24-2001 05:56 PM
Re: How come I cannot get what I want from sar immediately?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 06:29 PM
04-24-2001 06:29 PM
Re: How come I cannot get what I want from sar immediately?
~Philip