X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdxport.pod;h=d7e6bb34616e9a4c76a75e0b168136e0f76adf04;hp=f5f11f460a84fde80d6f156c08e04a172fc03fa2;hb=22129bb15a8ad204cf8a5e88e8834ec0b51908c0;hpb=389ef87660f6b7e86683741393e44cd2e60b74e5 diff --git a/doc/rrdxport.pod b/doc/rrdxport.pod index f5f11f4..d7e6bb3 100644 --- a/doc/rrdxport.pod +++ b/doc/rrdxport.pod @@ -1,25 +1,24 @@ =head1 NAME -rrdtool xport - Export data in XML format based on data from one or several RRD - -=for html
PDF version.
+rrdxport - Export data in XML format based on data from one or several RRD =head1 SYNOPSIS -B B -S<[B<-s>|B<--start> I]> +B B +S<[B<-s>|B<--start> I]> S<[B<-e>|B<--end> I]> S<[B<-m>|B<--maxrows> I]> S<[B<--step> I]> +S<[B<--daemon> I
]> S<[BIB<=>IB<:>IB<:>I]> S<[BIB<=>I]> S<[BB<:>I[B<:>I]]> =head1 DESCRIPTION -The B functions main purpose is to write XML formatted +The B function's main purpose is to write an XML formatted representation of the data stored in one or several Bs. It -can also extract numerical reports. +can also extract numerical reports. If no I statements are found, there will be no output. @@ -48,7 +47,22 @@ for details. =item B<--step> I (default automatic) -See I documentation. +See L documentation. + +=item B<--daemon> I
+ +Address of the L daemon. If specified, a C command is sent +to the server before reading the RRD files. This allows B to return +fresh data even if the daemon is configured to cache values for a long time. +For a list of accepted formats, see the B<-l> option in the L manual. + + rrdtool xport --daemon unix:/var/run/rrdcached.sock ... + +=item B<--enumds> + +The generated xml should contain the data values in enumerated tags. + + valval =item BIB<=>IB<:>IB<:>I @@ -67,9 +81,9 @@ referenced by I are printed. Optionally add a legend. =head1 Output format -The output is enclosed in a B element and contains two +The output is enclosed in an B element and contains two blocks. The first block is enclosed by a B element and -contains some meta data. The second block is enclosed by a +contains some meta data. The second block is enclosed by a B element and contains the data rows. Let's assume that the I command looks like this: @@ -82,9 +96,9 @@ Let's assume that the I command looks like this: XPORT:xx:"out bytes" \ XPORT:aa:"in and out bits" -The resulting meta data section (the values will depend on the +The resulting meta data section is (the values will depend on the RRD characteristics): - + 1020611700 300 @@ -96,8 +110,8 @@ RRD characteristics): in and out bits - -The resulting data section: + +The resulting data section is: 10206117003.4000000000e+005.4400000000e+01 @@ -133,8 +147,22 @@ The resulting data section: XPORT:out2:"if2 out bytes" \ XPORT:sum:"output sum" +=head1 ENVIRONMENT VARIABLES + +The following environment variables may be used to change the behavior of +Cxport>: + +=over 4 + +=item B + +If this environment variable is set it will have the same effect as specifying +the C<--daemon> option on the command line. If both are present, the command +line argument takes precedence. + +=back =head1 AUTHOR -Tobias Oetiker Eoetiker@ee.ethz.chE +Tobias Oetiker Etobi@oetiker.chE