On Mon, Sep 18, 2006 at 11:05:07AM -0400, Krzys wrote:
> Hello folks, is there any way to get timestamps when doing "zpool iostat 1" 
> for example?
> 
> Well I did run zpool iostat 60 starting last night and I got some loads 
> indicating along the way but without a time stamps I cant figure out at 
> around what time did they happen.

Workaround (how I did it with vmstat):

/usr/bin/vmstat 1 85530 | ./time.pl

where time.pl is perl script:

#!/usr/bin/perl -w

use FileHandle;
STDOUT->autoflush(1);

while ( <> ) {
        chomp $_;
        my @Time = localtime();
        printf "%04d-%02d-%02d %02d:%02d:%02d %-100s\n", 1900 + $Time[5], 1 + 
$Time[4], $Time[3], $Time[2], $Time[1], $Time[0], $_;
}

przemol
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to