Re: [OmniOS-discuss] iostat skip first output

2015-01-24 Thread Rune Tipsmark
hi Richard, thanks for that input, will see what I can do with it. I do store data and graph it so I can keep track of things :) br, Rune From: Richard Elling Sent: Sunday, January 25, 2015 1:02 AM To: Rune Tipsmark Cc: omnios-discuss@lists.omniti.com Subject:

Re: [OmniOS-discuss] iostat skip first output

2015-01-24 Thread Richard Elling
> On Jan 24, 2015, at 9:25 AM, Rune Tipsmark wrote: > > 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

Re: [OmniOS-discuss] iostat skip first output

2015-01-24 Thread Rune Tipsmark
nevermind, I just made it into tokens and counted my way though it... maybe not the best way but it works... root@zfs10:/usr/lib/check_mk_agent/local# cat disk_iostat.sh varInterval=5 varOutput=$(iostat -xn $varInterval 2 | grep c[0-99]); tokens

[OmniOS-discuss] iostat skip first output

2015-01-24 Thread Rune Tipsmark
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? b