[rrd-users] Re: copy with no data

Serge Maandag serge.maandag at staff.zeelandnet.nl
Mon Oct 17 23:24:07 MEST 2005


> I forgot to save the command line I used to create an rrd. 
> Is there an easy way to clone an rrd but leave the data and 
> the 'last updated' info behind?
> I want the resulting rrd to be empty like when I originally 
> created it.

serge at server$ rrdtool info temp.rrd       
filename = "temp.rrd"
rrd_version = "0001"
step = 300
last_update = 1095609000
ds[a].type = "GAUGE"
ds[a].minimal_heartbeat = 450
ds[a].min = NaN
ds[a].max = NaN
ds[a].last_ds = "UNKN"
ds[a].value = 0.0000000000e+00
ds[a].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 12
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0

So that must have been:

rrdtool create temp.rrd -s 300 DS:a:GAUGE:450:U:U \
 	RRA:AVERAGE:0.5:1:12

Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

-------------
For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list