- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The "hysteretic" output of the sar with some s...
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
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
тАО02-20-2019 06:50 AM
тАО02-20-2019 06:50 AM
The "hysteretic" output of the sar with some special parameter !
I find that the outputs of the sar with some special parameter, such as -H and -L, would be "hysteretic" until the total counts finished я╝Б
So I wonder why this type of output method would be taken, versus with other parameters would normally output in every intervalя╝Я
#
#
# sar -L 1 5|grep disk0
22:31:39 disk0_lunpath0 0.00 0.50 0 1 2 0.00 2.72
22:31:40 disk0_lunpath0 1.00 0.50 0 1 16 0.00 5.22
22:31:41 disk0_lunpath0 0.00 0.50 0 1 8 0.00 6.33
22:31:42 disk0_lunpath0 1.00 0.50 0 1 16 0.00 3.80
Average disk0_lunpath0 0.40 0.50 0 1 8 0.00 4.52
#
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2019 12:02 AM
тАО02-22-2019 12:02 AM
Re: The "hysteretic" output of the sar with some special parameter !
Hello
I dont see anything abnormal on the outputs you have shared.
As per man page -L will provide report activity for each "active lunpath". One line is printed for each lunpath that had activity during the last interval. If no lunpath were active, a blank line isprinted.
Could you please more specific on your query . here is an example from my system.
# sar -L 1 5|grep disk1
13:32:29 disk1_lunpath0 2.00 0.50 0 2 32 0.00 11.29
13:32:30 disk1_lunpath0 1.00 0.50 0 1 2 0.00 12.86
13:32:31 disk1_lunpath0 3.00 0.50 0 3 40 0.00 9.83
Average disk1_lunpath0 1.20 0.50 0 1 15 0.00 10.82
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2019 07:02 AM
тАО02-22-2019 07:02 AM
Re: The "hysteretic" output of the sar with some special parameter !
Thanksя╝М but it seems that you would not understand what I meanя╝Ъ
The outputs of the sar with some special parameters, such as -H and -L, would be "hysteretic" until all the counts finished я╝Б
In other wordsя╝М the outputs with these parameters could not be displayed on the screen in real timeя╝Б
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2019 08:44 PM
тАО02-22-2019 08:44 PM
Re: The "hysteretic" output of the sar with some special parameter !
If you mean that the output from your command line is intermittant, that is exactly normal:
# sar -L 1 5|grep disk0
The sar command is sending data all the time (once per interval), but you have added grep to remove anything that doesn't have disk0 in the output. So there are likely some intervals where disk0 was not active, ths no output per your grep filter,
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2019 09:34 PM
тАО02-22-2019 09:34 PM
Re: The "hysteretic" output of the sar with some special parameter !
Hello
As Bill Hassel mentioned, you are not viweing the real-time information because you have used "grep" to filter specific disk.
If you dont use "grep" , you can see the realtime data.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2019 10:52 PM - edited тАО02-25-2019 10:56 PM
тАО02-25-2019 10:52 PM - edited тАО02-25-2019 10:56 PM
Re: The "hysteretic" output of the sar with some special parameter !
Thanksя╝Б This should be my negligent mistakeя╝Б
The correct description for this question is the following contents :
Why the outputs of the sar with the grep pipeline would be "hysteretic" until the total counts finished, versus the iostat would always output in every interval even with the same grep pipelineя╝Б
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2019 02:00 PM
тАО02-27-2019 02:00 PM
Re: The "hysteretic" output of the sar with some special parameter !
OK. I see the behavior you are describing (no output from grep until sar is finished)
And it appears to be a feature of sar as implemented on HP-UX.
I tested all the way back to HP-UX 11.00, and it appears that the stream from sar is filled but not released until end of job.
sar is an ancient tool and may have some strange last century code inside.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2019 06:42 AM
тАО02-28-2019 06:42 AM
Re: The "hysteretic" output of the sar with some special parameter !
I feel that the "problem" would never been improved since it has still been the internal core mechanism for the sarя╝Б
Because the iostat is also a very long-standing historical performance tool, but it can do output in every intervalя╝Б