Data from sar

Data from sar

am 14.09.2007 14:17:25 von apogeusistemas

Hi:
Can you tell me if is there any way to extract data from sar command
and format this output like below

solaris> sar -d | head


SunOS sol001 5.8 Generic_117359-06 sun4u 09/13/07


00:00:00 device %busy avque r+w/s blks/s avwait
avserv


00:05:00 nfs1 0 0.0 0 0 0.0
00
sd6 0 0.0 0 0 0.0
00
sd85 0 0.0 0 0 0.0
00
sd85,c 0 0.0 0 0 0.0
00
sd86 0 0.0 0 0 0.0
00


solaris> sar -d | head | ./script


09/13/07 00:05:00 nfs1 0 0.0 0 0
00 0.0
09/13/07 00:05:00 sd6 0 0.0 0 0
00 0.0
09/13/07 00:05:00 sd85 0 0.0 0 0
00 0.0
09/13/07 00:05:00 sd85,c 0 0.0 0 0
00 0.0
09/13/07 00:05:00 sd86 0 0.0 0 0
00 0.0


I=B4d like know if is there any way to extract data from sar command
using kstat command too.


Thank you.