[112219] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

RESOLVED Re: sorta-OT graph snmp values

daemon@ATHENA.MIT.EDU (Scott Weeks)
Fri Feb 20 16:40:30 2009

Date: Fri, 20 Feb 2009 13:39:49 -0800
From: "Scott Weeks" <surfer@mauigateway.com>
To: <nanog@merit.edu>
Reply-To: surfer@mauigateway.com
Errors-To: nanog-bounces@nanog.org





Thanks to everyone for the help! :-)  Especially to Brian Sherwood who helped me finally figure it out.  I didn't "set terminal png" because I didn't have a terminal connected to the Solaris box and wasn't using X.  However, this needs to be set anyway.  Also, "set output graph.png" needs to go *before* the plot statement.

The data I mentioned earlier is in /export/home/router/erx-cpu-util/36w/util.txt

Here is the very brief gnuplot program that now works:


-bash-3.00$ cat graph-36w-cpu.plt

#!/usr/local/bin/gnuplot

set terminal gif

set ylabel "Percent  CPU  Utilization"

set xlabel "time"

set output '/export/home/router/erx-cpu-util/gnuplot/36w-cpu-util.gif'

plot '/export/home/router/erx-cpu-util/36w/util.txt' using 1:2 title "card1" smooth csplines, '/export/home/router/erx-cpu-util/36w/util.txt' using 1:3 title "card1" smooth csplines


Thanks again,
scott



home help back first fref pref prev next nref lref last post