<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>nevermind, I just made it into tokens and counted my way though it... maybe not the best way but it works...</p>
<p> </p>
<p><a href="mailto:root@zfs10:/usr/lib/check_mk_agent/local">root@zfs10:/usr/lib/check_mk_agent/local</a># cat disk_iostat.sh<br>
varInterval=5<br>
varOutput=$(iostat -xn $varInterval 2 | grep c[0-99]);<br>
tokens=( $varOutput )<br>
tokenCount=$(echo ${tokens[*]} | wc -w )<br>
tokenStart=$(((tokenCount/2)-1))<br>
tokenInterval=11<br>
tokenEnd=$((tokenCount))<br>
for i in $(eval echo {$tokenStart..$tokenEnd..$tokenInterval});<br>
 do echo 0 disk_busy_${tokens[$i]} percent=${tokens[$i-1]} ${tokens[$i-1]} % average disk utilization last $varInterval seconds;<br>
    echo 0 disk_latency_${tokens[$i]} ms=${tokens[$i-3]} ${tokens[$i-3]} ms response time average last $varInterval seconds;<br>
done<br>
</p>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" dir="ltr">
<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> OmniOS-discuss <omnios-discuss-bounces@lists.omniti.com> on behalf of Rune Tipsmark <rt@steait.net><br>
<b>Sent:</b> Saturday, January 24, 2015 6:25 PM<br>
<b>To:</b> omnios-discuss@lists.omniti.com<br>
<b>Subject:</b> [OmniOS-discuss] iostat skip first output</font>
<div> </div>
</div>
<div>
<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>
<p> </p>
<p>br,</p>
<p>Rune</p>
<p></p>
</div>
</div>
</body>
</html>