<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>hi Richard,</p>
<p>thanks for that input, will see what I can do with it.</p>
<p>I do store data and graph it so I can keep track of things :)</p>
<p>br,</p>
<p>Rune</p>
<p></p>
<div style="-ms-word-wrap: break-word;">
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> Richard Elling <richard.elling@richardelling.com><br>
<b>Sent:</b> Sunday, January 25, 2015 1:02 AM<br>
<b>To:</b> Rune Tipsmark<br>
<b>Cc:</b> omnios-discuss@lists.omniti.com<br>
<b>Subject:</b> Re: [OmniOS-discuss] iostat skip first output</font>
<div> </div>
</div>
<div><br>
<div>
<blockquote type="cite">
<div>On Jan 24, 2015, at 9:25 AM, Rune Tipsmark <<a href="mailto:rt@steait.net">rt@steait.net</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div><style type="text/css">
<!--
p
{margin-top:0px;
margin-bottom:0px}
-->
</style>
<div style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" dir="ltr">
<p>hi all, I am just writing some scripts to gather performance data from iostat... or at least trying... I would like to completely skip the first output since boot from iostat output and just get right to the period I specified with the data current from
that period. Is this possible at all?</p>
<div><br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div style="margin: 0px; color: rgb(76, 47, 45); font-family: Menlo; background-color: rgb(223, 219, 196);">
iostat -xn 10 2 | awk '$1 == "extended" && NR > 2 {show=1} show == 1'</div>
<div><br>
</div>
<div>NB, this is just a derivative of a sample period. A better approach is to store</div>
<div>long-term trends in a database intended for such use. If that is too much work,</div>
<div>then you should consider storing the raw data that iostat uses for this:</div>
<div>
<div style="margin: 0px; color: rgb(76, 47, 45); font-family: Menlo; background-color: rgb(223, 219, 196);">
kstat -p 'sd::/sd[0-9]+$/'</div>
</div>
<div><br>
</div>
<div>or in JSON:</div>
<div>
<div style="margin: 0px; color: rgb(76, 47, 45); font-family: Menlo; background-color: rgb(223, 219, 196);">
kstat -jp 'sd::/sd[0-9]+$/'</div>
</div>
<div><br>
</div>
<div>insert shameless plug for Circonus here :-)</div>
<div> -- richard</div>
</div>
<br>
</div>
</div>
</body>
</html>