[rrd-users] getting formatted output from rrdtool fetch
Anant Tamgole
anant at giaspn01.vsnl.net.in
Thu Mar 8 16:16:08 MET 2001
Hi all,
How can get formatted output from "rrdtool fetch"
I used following command to create the rrd database (collecting in/out
bytes from cisco switch ports )
/usr/local/rrdtool-1.0.28/bin/rrdtool create switch.rrd \
DS:input:COUNTER:300:U:U \
DS:output:COUNTER:300:U:U \
RRA:AVERAGE:0.5:1:8928
I am using update command as follows:
rrdtool update N:$inbytes:$outbytes
Now when I try to fetch I get following output, which is not quote
readable.
rrdtool fetch switch.rrd AVERAGE
input output
984097200: NaN NaN
984097500: 2.4100671141e+01 5.1861744966e+02
984097800: 2.4100671141e+01 5.1861744966e+02
984098100: NaN NaN
984098400: 2.3885521886e+01 5.5295286195e+02
984098700: 2.3221525028e+01 6.4252594299e+02
984099000: 2.2458127048e+01 6.4225971358e+02
984099300: 2.2437710438e+01 6.4218518519e+02
My requirements are:
1. input and output should be in Mbytes/sec ( no e+01 etc should be there)
2. Is it posssible to have local time instead of unix time
Or how to convert unix time to local time.
Thanks in advance.
anant
----------------------------------------------------------------------
$ | Anant S Tamgole
$ | Sr. Engineer
$ $ $ | VSNL, Pune
$ $ $ | e-mail:anant at vsnl.com
$ $ $ | home page: http://giaspn01.vsnl.net.in/~anant
$ $ $ | Tel: 91-20-7157770/7157771/7157474-3318
$ $ $$ | 91-20-6699922 (R)
$$ |
$$ |
----------------------------------------------------------------------
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list