Added by Yee-Ting Li, last edited by Yee-Ting Li on Apr 02, 2007  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Background

RRD's are architecture dependent. as such, a simple copy of the files to another machine may not work. it is therefore necessary to use rrdtool dump and restore in order to port rrds over to a new architecture.

For the netflow monitoring of terapaths, a simple batch script has been created to automate this proceedure.

Usage

On the source machine, run

$ cd /var/flows/reports/rrds
$ perl convertrrd-batch-create.pl *

This will create the representative xml file for each and every rrd.

Then copy/replicate the xml files to the destination machine:

$ rsync -avz --exclude '*.rrd' /var/flows/reports/rrds/ <DEST>:/var/flows/reports/rrds/

This will copy all xml files to the destination machine.

And finally on the destination machine, run:

perl convertrrd-batch-store.pl *