rrdxport
SYNOPSIS rrdtool xport [sstart seconds] [eend seconds]
[mmaxrows rows] [step value] [DEF:vname=rrd:ds
name:CF] [CDEF:vname=rpnexpression] [XPORT:vname[:leg
end]]
DESCRIPTION The xport functions main purpose is to write XML formatted
representation of the data stored in one or several RRDs.
It can also extract numerical reports.
If no XPORT statements are found, there will be no output.
sstart seconds (default end1day)
The time when the exported range should begin. Time in
seconds since epoch (19700101) is required. Negative
numbers are relative to the current time. By default
one day worth of data will be printed. See also AT
STYLE TIME SPECIFICATION section in the rrdfetch docu
mentation for a detailed explanation on how to specify
time.
eend seconds (default now)
The time when the exported range should end. Time in
seconds since epoch. See also ATSTYLE TIME SPECIFI
CATION section in the rrdfetch documentation for a
detailed explanation of ways to specify time.
mmaxrows rows (default 400 rows)
This works like the wwidth parameter of rrdgraph.
In fact it is exactly the same, but the parameter was
renamed to describe its purpose in this module. See
rrdgraph documentation for details.
step value (default automatic)
See rrdgraph documentation.
DEF:vname=rrd:dsname:CF
See rrdgraph documentation.
CDEF:vname=rpnexpression
See rrdgraph documentation.
XPORT:vname::legend
At least one XPORT statement should be present. The
values referenced by vname are printed. Optionally add
a legend.
Output format
The output is enclosed in a xport element and contains two
The resulting meta data section (the values will depend on
the RRD characteristics):
<meta>
<start>1020611700</start>
<step>300</step>
<end>1020615600</end>
<rows>14</rows>
<columns>2</columns>
<legend>
<entry>out bytes</entry>
<entry>in and out bits</entry>
</legend>
</meta>
The resulting data section:
<data>
<row><t>1020611700</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612000</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612300</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020612600</t><v>3.4113333333e+00</v><v>5.4581333333e+01</v></row>
<row><t>1020612900</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613200</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613500</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020613800</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614100</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614400</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020614700</t><v>3.7333333333e+00</v><v>5.9733333333e+01</v></row>
<row><t>1020615000</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020615300</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>
<row><t>1020615600</t><v>NaN</v><v>NaN</v></row>
</data>
EXAMPLE 1 rrdtool xport \
DEF:out=if1inouts.rrd:outoctets:AVERAGE \
XPORT:out:"out bytes"
EXAMPLE 2 rrdtool xport \
DEF:out1=if1inouts.rrd:outoctets:AVERAGE \
DEF:out2=if2inouts.rrd:outoctets:AVERAGE \
CDEF:sum=out1,out2,+ \
XPORT:out1:"if1 out bytes" \
XPORT:out2:"if2 out bytes" \
XPORT:sum:"output sum"
AUTHOR Tobias Oetiker <oetiker@ee.ethz.ch>
