[mrtg] Re: rrdtool dump script

Eric Garnel egarnel3470 at yahoo.com
Fri Jul 11 04:06:53 MEST 2003


thanks to all who responded so quickly.
It worked like a charm
--- Tobias Oetiker <oetiker at ee.ethz.ch> wrote:
> Yesterday Eric Garnel wrote:
> 
> > I am in the (slow) proccess of migating off an i386 redhat box to
> a
> > ppc yellowdog box and need to convert many rrdfiles for the new
> > architecture.
> >
> > In order to move my rrd files over, I have to dump them out to
> xml,
> > scp them over and then do an rrd restore on the xml files.
> >
> > Has anyone come across a script that would dump all the rrd files
> > (lots) into their respective files at once? as well as a similar
> > script to restore them?
> 
> for x in `find . -name '*.rrd'`; do
> cd `dirname $x` && rrdtool dump `basename $x` `basename $x
> .rrd`.xml
> done
> 
> or something like this (sh/bash/zsh/ksh)
> 
> for csh tcsh it would be
> 
> foreach x (`find . -name '*.rrd'`)
> cd `dirname $x` && rrdtool dump `basename $x` `basename $x
> .rrd`.xml
> end
> 
> cheers
> tobi


=====

Eric Garnel CCNP, MCSE



eric at garnel.com

 

 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list