]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
doc: adds documentation for the LIST command
authorMarek Schimara <Marek.Schimara@bull.net>
Wed, 24 Aug 2016 13:20:43 +0000 (15:20 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Wed, 24 Aug 2016 13:37:42 +0000 (15:37 +0200)
doc/Makefile.am
doc/rrdcached.pod
doc/rrdlist.pod [new file with mode: 0644]
doc/rrdtool.pod

index ad097cf961e6e6bde960fdf1005ca88164277acb..008bd70debb3d5b1c4f945a0a9922ffff197d427 100644 (file)
@@ -11,7 +11,7 @@ POD = bin_dec_hex.pod        rrddump.pod            rrdgraph_examples.pod  rrdre
       rpntutorial.pod        rrdfirst.pod           rrdgraph_rpn.pod       rrdtool.pod            rrdcached.pod  \
       rrd-beginners.pod      rrdinfo.pod            rrdtune.pod            rrdbuild.pod           rrdflushcached.pod   \
       rrdcgi.pod             rrdgraph.pod           rrdlast.pod            rrdlastupdate.pod                     \
-      rrdcreate.pod          rrdgraph_data.pod      rrdresize.pod          rrdtutorial.pod                       
+      rrdcreate.pod          rrdgraph_data.pod      rrdresize.pod          rrdtutorial.pod        rrdlist.pod
 
 if BUILD_LIBDBI
   POD += rrdgraph_libdbi.pod
index 8e2afa76349d442482c97d0cecf7854c4cce70de..582a85de72624a50eabe59f80ca3957fa12688c0 100644 (file)
@@ -367,6 +367,10 @@ xport
 
 create
 
+=item *
+
+list
+
 =back
 
 The B<update> command can send values to the daemon instead of writing them to
@@ -740,6 +744,11 @@ message itself.  The first user command after B<BATCH> is command number one.
     server:  1 message for command 1
     server:  12 message for command 12
 
+=item B<LIST> I<path>
+
+This command allows to list directories and rrd databases as seen by the daemon.
+The root "directory" is the base_dir (see '-b dir').
+
 =item B<QUIT>
 
 Disconnect from rrdcached.
diff --git a/doc/rrdlist.pod b/doc/rrdlist.pod
new file mode 100644 (file)
index 0000000..cd50107
--- /dev/null
@@ -0,0 +1,51 @@
+=head1 NAME
+
+rrdlist - List directories and rrd databases.
+
+=head1 SYNOPSIS
+
+B<rrdtool> B<list>
+S<[B<--daemon>|B<-d> I<address>]>
+I<path>
+
+=head1 DESCRIPTION
+
+The B<list> function connects to L<rrdcached>, the RRD caching daemon,
+and issues a "list" command for the given path. This provides an 'ls-like'
+interface for traversing and listing the rrd database tree.
+
+=over 8
+
+=item I<path>
+
+The path (starting with '/') with '/' being the rrdcached base_dir.
+
+=item B<--daemon>|B<-d> I<address>
+
+Address of the L<rrdcached> daemon. If not specified, the
+RRDCACHED_ADDRESS environment variable must be set (see below).  For a
+list of accepted formats, see the B<-l> option in the L<rrdcached>
+manual.
+
+ rrdtool list --daemon 127.0.0.1:42218 /cluster/nodes/node1
+
+=back
+
+=head1 ENVIRONMENT VARIABLES
+
+The following environment variables may be used to change the behavior of
+C<rrdtoolE<nbsp>list>:
+
+=over 4
+
+=item B<RRDCACHED_ADDRESS>
+
+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
+
+Sebastien Dugue <sebastien.dugue@atos.net>
index 46368fb77fe4558fada72955d4f8e06c5c66d121..df8058c583cf6aeda30412860d1fd64b647edde9 100644 (file)
@@ -111,6 +111,10 @@ Export data retrieved from one or several RRDs. Check L<rrdxport>.
 
 Flush the values for a specific RRD file from memory. Check L<rrdflushcached>.
 
+=item B<list>
+
+List the directories and rrd databases remotely. Check L<rrdlist>.
+
 =back
 
 =head2 HOW DOES RRDTOOL WORK?