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
тАО05-16-2002 06:00 PM
тАО05-16-2002 06:00 PM
So I made this
sar -uq 1 2 |awk '{ print $0,$1,$2,$3,$4}'
But it give me wrong result
Do you have any idea or solutin ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2002 06:16 PM
тАО05-16-2002 06:16 PM
Re: sar -uq
19:17:24 %usr %sys %wio %idle
runq-sz %runocc swpq-sz %swpocc
19:17:25 0 0 0 100
3.0 99 0.0 0
19:17:26 0 0 0 100
1.0 100 0.0 0
Average 0 0 0 100
Average 2.0 100 0.0 0
The above is a sample of sar -uq 1 2 output. As you can see you need to do some filtering before you can get what you actually wanted because it has different info in the same column. How do you want the "one-line" output to look like. Give us an example ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2002 06:49 PM
тАО05-16-2002 06:49 PM
Re: sar -uq
sar -uq 1 2 |sed '/HP-UX/d'|awk '{ l = NR % 2 ; if (l) printf ("%s", $0) ;else print $0 }'
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2002 06:50 PM
тАО05-16-2002 06:50 PM
Re: sar -uq
If you wish to get the averages of -u and -q all on the same line, simply do this:
# echo `sar -uq 1 2 | grep Average`
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2002 06:55 PM