[rrd-users] ANNOUNCE: dsreport (WAS: getting formatted output from rrdtool fetch)

steve rader rader at ginseng.physics.wisc.edu
Fri Mar 9 22:22:41 MET 2001


 > From: Anant Tamgole
 > How can get formatted output from "rrdtool fetch"
 > [snip]
 > 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

I was already altering my "rrdlastds" script to do generic
DS pretty printing so I've added the fuctionality you specify
above and renamed the script "dsreport".  [1]

For example, here's how to pretty print (autoscale, convert
bytes to bits and label with "b/s") some data from an hour ago
to 30 minutes ago:

 chive(rader): ./dsreport -s -1hr -e -30min -a -c 8 -lab "b/s" 2nd*rrd
 Fri Mar  9 13:50:00 2001  74.86 kb/s in  84.76 kb/s out
 Fri Mar  9 13:55:00 2001  77.22 kb/s in  99.35 kb/s out
 Fri Mar  9 14:00:00 2001  150.86 kb/s in  131.96 kb/s out
 Fri Mar  9 14:05:00 2001  14.75 Mb/s in  913.61 kb/s out
 Fri Mar  9 14:10:00 2001  7.43 Mb/s in  472.02 kb/s out
 Fri Mar  9 14:15:00 2001  1.22 Mb/s in  164.62 kb/s out
 Fri Mar  9 14:20:00 2001  0.00 b/s in  0.00 b/s out

dsreport also supports "-last" and "-now":

 chive(rader): ./dsreport --last -a -c 8 -lab "b/s" 2nd*rrd
 Fri Mar  9 14:15:00 2001  1.22 Mb/s in  164.62 kb/s out

 chive(rader): ./dsreport -now -a -c 8 -lab "b/s" 2nd*rrd
 Fri Mar  9 14:50:00 2001  0.00 b/s in  0.00 b/s out

 >    Or how to convert unix time to local time.

Try the scripts I posted to this list with the Subject:
"date/timestamp conversion"... check the archive circa July
27th 2000.

steve 
- - - 
systems & network guy
high energy physics
university of wisconsin

 [1] ftp://nrg.hep.wisc.edu/pub/src/misc/dsreport


--
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