On Thu, Mar 24, 2005 at 04:11:45PM -0500, D.Walsh wrote:
> I have examined "rrdtool dump filename >outfile.xml", problem is the 
> data recovered is hard to understand since I am trying to edit this 
> data and correct or add missing data and I was hoping for something in 
> a human-readable format.
> 
> If HR is not an possible option, how do I interpret the following so I 
> can make the changes I require?
> 
>                       <!-- 2005-03-21 18:00:00 EST / 1111446000 --> <row><v> 
> 0.0000000000e+00 </v></row>
>                       <!-- 2005-03-21 18:30:00 EST / 1111447800 --> <row><v> 
> 2.7777777778e-03 </v></row>
>
at 2005-03-21 18:00:00 EST (1111446000 seconds since 1970-01-01 00:00),
   the value was 0
at 2005-03-21 18:30:00 EST (1111447800 seconds since 1970-01-01 00:00),
   the value was 2.778e-03, thats 0.002778
how much more readable do you want it? :)

If you need simple time:value pairs, you could do sth like
perl -n -e 'printf ("%s %s\n", $1, $2) if (s/(\d{9,10}) .* ([\d.e+\-]{16})/)' \
    < file.rrd > file.txt
(untested :)
-- 
+------------------------------------------------------------------* .-.
|            Martin Schuster            Microsoft is not the answer  /v\
|    <[EMAIL PROTECTED]> www.tabr.org    Microsoft is the question  // \\
|  <[EMAIL PROTECTED]>  ICQ# 20511117    "Linux!"  is the answer  /(   )\
+--------------------------------------------------------------*    ^^-^^

-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pgp-signature
-- Desc: Digital signature
-- Size: 190 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/4243C9E722021-signature.asc


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to