Gnuplot
From Linuxintro
Revision as of 09:59, 11 June 2011 by imported>ThorstenStaerk
Here is an example how to visualize vmstat's output using gnuplot.
vmstat 1 10 | grep -v r > vmstat.txt gnuplot -p -e "plot 'vmstat.txt' using 13 title 'CPU user load' with lines, 'vmstat.txt' using 14 title 'CPU system load' with lines, \ 'vmstat.txt' using 15 title 'CPU idle time' with lines, 'vmstat.txt' using 16 title 'CPU IO wait time' with lines"
The result will look like this:
Output to a file
To save your output as a .png file, add the commands below in bold:
gnuplot -p -e "plot 'datasource.txt' using 4 with lines;set output 'test.png';set terminal png;replot"