#!/bin/sh tail -28800 /var/log/vmstat.log |\ grep '^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] [0-9]' >\ /var/tmp/vmstat.log.x11.$USER gnuplot -persist << EOF set term x11 set ytics nomirror set y2tics nomirror set xdata time set timefmt "%s" set xtics nomirror set logscale y set logscale y2 plot "/var/tmp/vmstat.log.x11.$USER" using 1:13 axes x1y2 title "dsk>m0" with linespoints, \ "/var/tmp/vmstat.log.x11.$USER" using 1:14 axes x1y2 title "dsk>w0" with linespoints, \ "/var/tmp/vmstat.log.x11.$USER" using 1:15 axes x1y2 title "dsk>w1" with linespoints, \ "/var/tmp/vmstat.log.x11.$USER" using 1:2 axes x1y2 title "prc>r" with points, \ "/var/tmp/vmstat.log.x11.$USER" using 1:3 axes x1y2 title "prc>b" with points, \ "/var/tmp/vmstat.log.x11.$USER" using 1:4 axes x1y2 title "prc>w" with points, \ "/var/tmp/vmstat.log.x11.$USER" using 1:5 axes x1y1 title "mflt" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:8 axes x1y2 title "pag>re" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:9 axes x1y2 title "pag>pi" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:10 axes x1y2 title "pag>po" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:11 axes x1y2 title "pag>fr" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:12 axes x1y2 title "pag>sr" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:16 axes x1y2 title "flt>in" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:17 axes x1y1 title "fltus" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:20 axes x1y2 title "cpu>sy" with lines, \ "/var/tmp/vmstat.log.x11.$USER" using 1:21 axes x1y2 title "cpu>id" with lines EOF rm /var/tmp/vmstat.log.x11.$USER