buried more whitesapce
[torrus-plus.git] / src / doc / manpages / torrus_nodeid.pod.in
blob7bd42476a7284d957f9f8e6358cfe93965c4f197
1 #  Copyright (C) 2010  Stanislav Sinyagin
3 #  This program is free software; you can redistribute it and/or modify
4 #  it under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
8 #  This program is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #  GNU General Public License for more details.
13 #  You should have received a copy of the GNU General Public License
14 #  along with this program; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17 # Stanislav Sinyagin <ssinyagin@yahoo.com>
21 =head1 NAME
23 nodeid - Torrus utility
25 =head1 SYNOPSIS
27 B<torrus nodeid> --tree=I<TREENAME> --cmd=CMD I<options...>
29 =head1 DESCRIPTION
31 This command provides a way to integrate Torrus with external OSS systems.
32 It operates with I<nodeid>, a unique identifier for Torrus datasource
33 subtrees and leaves.
35 The command prints the data on the standard output in JSON data format.
37 =head1 OPTIONS
39 =over 4
41 =item B<--tree=TREE>
43 [Mandatory] Defines the datasouerce tree.
46 =item B<--cmd=CMD>
48 [Mandatory] Defines the action command. The following commands are supported:
50 =over 8
52 =item * info
54 Prints information about the nodeid. Requires B<--nodeid>.
56 =item * search
58 Performs a prefix or substring search on node IDs and prints the results.
59 Requires B<--prefix> or B<--substring>.
61 =item * render
63 Renders a specified datasource node and prints the resulting MIME type and the
64 file name. Requires B<--nodeid> and B<--view>. Optional B<--out> defines
65 a file name to copy the output to.
67 =back
70 =item B<--nodeid=NODEID>
72 Specifies the Node ID string for the commands I<info> and I<render>.
75 =item B<--details>
77 Toggles verbose output for the commands I<info> and I<search>.
80 =item B<--prefix=STR>
82 Specifies the prefix search string for the command I<search>.
85 =item B<--substring=STR>
87 Specifies the search substring for the command I<search>.
90 =item B<--view=VIEW>
92 Specifies the view name for the command I<render>. The following views are
93 defined by standard Torrus XML files and render a PNG graph:
94 C<short>, C<last24h-small>, C<last24h>, C<lastweek>,
95 C<lastmonth>, C<lastyear>. The following views are printing the datasource
96 value in a text format: C<rrd-print-daily>, C<rrd-print-last>.
99 =item B<--out=FILE>
101 If defined, instructs the utility to copy the rendered data into a
102 specified file. Otherwise the file is created in the standard renderer's cache
103 directory.
106 =item B<--help>
108 Displays a help message.
110 =back
113 =head1 SEE ALSO
115 L<torrus(@mansec_usercmd@)>
117 =head1 NOTES
119 See more documentation at Torrus home page: http://torrus.org
121 =head1 AUTHOR
123 Stanislav Sinyagin E<lt>ssinyagin@yahoo.comE<gt>