<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 24, 2015, at 9:25 AM, Rune Tipsmark <<a href="mailto:rt@steait.net" class="">rt@steait.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" class="">
<style type="text/css" style="display:none" class=""><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>

<div dir="ltr" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><p class="">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 class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div style="margin: 0px; font-family: Menlo; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">iostat -xn 10 2 | awk '$1 == "extended" && NR > 2 {show=1} show == 1'</div><div><br class=""></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; font-family: Menlo; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">kstat -p 'sd::/sd[0-9]+$/'</div></div><div><br class=""></div><div>or in JSON:</div><div><div style="margin: 0px; font-family: Menlo; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">kstat -jp 'sd::/sd[0-9]+$/'</div></div><div><br class=""></div><div>insert shameless plug for Circonus here :-)</div><div> -- richard</div></div><br class=""></body></html>