Document onnode "onnode any".
authorMartin Schwenke <martin@meltin.net>
Tue, 8 Sep 2009 05:19:24 +0000 (15:19 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 8 Sep 2009 05:19:24 +0000 (15:19 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
doc/onnode.1
doc/onnode.1.html
doc/onnode.1.xml

index 99abd80f13b67a03ff3761658286b151067c73ba..44b8aade7c8eb98be5b7f94be26e3808a0713632 100644 (file)
+'\" t
 .\"     Title: onnode
 .\"     Title: onnode
-.\"    Author: 
-.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
-.\"      Date: 05/12/2009
-.\"    Manual: 
-.\"    Source: 
+.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
+.\"      Date: 09/08/2009
+.\"    Manual: [FIXME: manual]
+.\"    Source: [FIXME: source]
+.\"  Language: English
 .\"
 .\"
-.TH "ONNODE" "1" "05/12/2009" "" ""
+.TH "ONNODE" "1" "09/08/2009" "[FIXME: source]" "[FIXME: manual]"
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
 .ad l
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
 .ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
 .SH "NAME"
 .SH "NAME"
-onnode - run commands on ctdb nodes
+onnode \- run commands on ctdb nodes
 .SH "SYNOPSIS"
 .SH "SYNOPSIS"
-.HP 38
-\fBonnode [OPTION] \.\.\. NODES COMMAND \.\.\.\fR
+.HP \w'\fBonnode\ [OPTION]\ \&.\&.\&.\ NODES\ COMMAND\ \&.\&.\&.\fR\ 'u
+\fBonnode [OPTION] \&.\&.\&. NODES COMMAND \&.\&.\&.\fR
 .SH "DESCRIPTION"
 .PP
 .SH "DESCRIPTION"
 .PP
-onnode is a utility to run commands on a specific node of a CTDB cluster, or on all nodes\.
+onnode is a utility to run commands on a specific node of a CTDB cluster, or on all nodes\&.
 .PP
 .PP
-The NODES option specifies which node to run a command on\. You can specify a numeric node number (from 0 to N\-1) or a descriptive node specification (see DESCRIPTIVE NODE SPECIFICATIONS below)\. You can also specify lists of nodes, separated by commas, and ranges of numeric node numbers, separated by dashes\. If nodes are specified multiple times then the command will be executed multiple times on those nodes\. The order of nodes is significant\.
+The NODES option specifies which node to run a command on\&. You can specify a numeric node number (from 0 to N\-1) or a descriptive node specification (see DESCRIPTIVE NODE SPECIFICATIONS below)\&. You can also specify lists of nodes, separated by commas, and ranges of numeric node numbers, separated by dashes\&. If nodes are specified multiple times then the command will be executed multiple times on those nodes\&. The order of nodes is significant\&.
 .PP
 .PP
-The COMMAND can be any shell command\. The onnode utility uses ssh or rsh to connect to the remote nodes and run the command\.
+The COMMAND can be any shell command\&. The onnode utility uses ssh or rsh to connect to the remote nodes and run the command\&.
 .SH "DESCRIPTIVE NODE SPECIFICATIONS"
 .PP
 The following descriptive node specification can be used in place of numeric node numbers:
 .PP
 all
 .RS 4
 .SH "DESCRIPTIVE NODE SPECIFICATIONS"
 .PP
 The following descriptive node specification can be used in place of numeric node numbers:
 .PP
 all
 .RS 4
-All nodes\.
+All nodes\&.
+.RE
+.PP
+any
+.RS 4
+A node where ctdbd is running\&. This semi\-random but there is a bias towards choosing a low numbered node\&.
 .RE
 .PP
 ok | healthy
 .RS 4
 .RE
 .PP
 ok | healthy
 .RS 4
-All nodes that are not disconnected, banned, disabled or unhealthy\.
+All nodes that are not disconnected, banned, disabled or unhealthy\&.
 .RE
 .PP
 con | connected
 .RS 4
 .RE
 .PP
 con | connected
 .RS 4
-All nodes that are not disconnected\.
+All nodes that are not disconnected\&.
 .RE
 .PP
 lvs | lvsmaster
 .RS 4
 .RE
 .PP
 lvs | lvsmaster
 .RS 4
-The current LVS master\.
+The current LVS master\&.
 .RE
 .PP
 natgw | natgwlist
 .RS 4
 .RE
 .PP
 natgw | natgwlist
 .RS 4
-The current NAT gateway\.
+The current NAT gateway\&.
 .RE
 .PP
 rm | recmaster
 .RS 4
 .RE
 .PP
 rm | recmaster
 .RS 4
-The current recovery master\.
+The current recovery master\&.
 .RE
 .SH "OPTIONS"
 .PP
 \-c
 .RS 4
 .RE
 .SH "OPTIONS"
 .PP
 \-c
 .RS 4
-Execute COMMAND in the current working directory on the specified nodes\.
+Execute COMMAND in the current working directory on the specified nodes\&.
 .RE
 .PP
 \-o <prefix>
 .RS 4
 .RE
 .PP
 \-o <prefix>
 .RS 4
-Causes standard output from each node to be saved into a file with name <prefix>\.<ip>\.
+Causes standard output from each node to be saved into a file with name <prefix>\&.<ip>\&.
 .RE
 .PP
 \-p
 .RS 4
 .RE
 .PP
 \-p
 .RS 4
-Run COMMAND in parallel on the specified nodes\. The default is to run COMMAND sequentially on each node\.
+Run COMMAND in parallel on the specified nodes\&. The default is to run COMMAND sequentially on each node\&.
 .RE
 .PP
 \-q
 .RS 4
 .RE
 .PP
 \-q
 .RS 4
-Do not print node addresses\. Normally, onnode prints informational node addresses if more than one node is specified\. This overrides \-v\.
+Do not print node addresses\&. Normally, onnode prints informational node addresses if more than one node is specified\&. This overrides \-v\&.
 .RE
 .PP
 \-v
 .RS 4
 .RE
 .PP
 \-v
 .RS 4
-Print a node addresses even if only one node is specified\. Normally, onnode prints informational node addresses when more than one node is specified\.
+Print a node addresses even if only one node is specified\&. Normally, onnode prints informational node addresses when more than one node is specified\&.
 .RE
 .PP
 \-h, \-\-help
 .RS 4
 .RE
 .PP
 \-h, \-\-help
 .RS 4
-Show a short usage guide\.
+Show a short usage guide\&.
 .RE
 .SH "EXAMPLES"
 .PP
 The following command would show the process ID of ctdb on all nodes
 .sp
 .RE
 .SH "EXAMPLES"
 .PP
 The following command would show the process ID of ctdb on all nodes
 .sp
+.if n \{\
 .RS 4
 .RS 4
+.\}
 .nf
       onnode all pidof ctdbd
     
 .fi
 .nf
       onnode all pidof ctdbd
     
 .fi
+.if n \{\
 .RE
 .RE
+.\}
 .PP
 The following command would show the last 5 lines of log on each node, preceded by the node\'s hostname
 .sp
 .PP
 The following command would show the last 5 lines of log on each node, preceded by the node\'s hostname
 .sp
+.if n \{\
 .RS 4
 .RS 4
+.\}
 .nf
 .nf
-      onnode all "hostname; tail \-5 /var/log/log\.ctdb"
+      onnode all "hostname; tail \-5 /var/log/log\&.ctdb"
     
 .fi
     
 .fi
+.if n \{\
 .RE
 .RE
+.\}
 .PP
 .PP
-The following command would restart the ctdb service on all nodes\.
+The following command would restart the ctdb service on all nodes\&.
 .sp
 .sp
+.if n \{\
 .RS 4
 .RS 4
+.\}
 .nf
       onnode all service ctdb restart
     
 .fi
 .nf
       onnode all service ctdb restart
     
 .fi
+.if n \{\
 .RE
 .RE
+.\}
 .PP
 .PP
-The following command would run \./foo in the current working directory, in parallel, on nodes 0, 2, 3 and 4\.
+The following command would run \&./foo in the current working directory, in parallel, on nodes 0, 2, 3 and 4\&.
 .sp
 .sp
+.if n \{\
 .RS 4
 .RS 4
+.\}
 .nf
 .nf
-      onnode \-c \-p 0,2\-4 \./foo
+      onnode \-c \-p 0,2\-4 \&./foo
     
 .fi
     
 .fi
+.if n \{\
 .RE
 .RE
+.\}
 .SH "FILES"
 .PP
 /etc/ctdb/nodes
 .RS 4
 .SH "FILES"
 .PP
 /etc/ctdb/nodes
 .RS 4
-Contains a list of each node\'s IP address or hostname\.
+Contains a list of each node\'s IP address or hostname\&.
 .RE
 .PP
 .RE
 .PP
-/etc/ctdb/onnode\.conf
+/etc/ctdb/onnode\&.conf
 .RS 4
 .RS 4
-If this file exists it is sourced by onnode\. The main purpose is to allow the administrator to set $SSH to something other than "ssh"\. In this case the \-t option is ignored\. For example, the administrator may choose to use use rsh instead of ssh\.
+If this file exists it is sourced by onnode\&. The main purpose is to allow the administrator to set $SSH to something other than "ssh"\&. In this case the \-t option is ignored\&. For example, the administrator may choose to use use rsh instead of ssh\&.
 .RE
 .SH "SEE ALSO"
 .PP
 ctdbd(1), ctdb(1),
 .RE
 .SH "SEE ALSO"
 .PP
 ctdbd(1), ctdb(1),
-\fI\%http://ctdb.samba.org/\fR
+\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
 .SH "COPYRIGHT/LICENSE"
 .sp
 .SH "COPYRIGHT/LICENSE"
 .sp
+.if n \{\
 .RS 4
 .RS 4
+.\}
 .nf
 Copyright (C) Andrew Tridgell 2007
 Copyright (C) Ronnie sahlberg 2007
 .nf
 Copyright (C) Andrew Tridgell 2007
 Copyright (C) Ronnie sahlberg 2007
@@ -149,14 +180,16 @@ Copyright (C) Martin Schwenke 2008
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or (at
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or (at
-your option) any later version\.
+your option) any later version\&.
 
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\.  See the GNU
-General Public License for more details\.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&.  See the GNU
+General Public License for more details\&.
 
 You should have received a copy of the GNU General Public License
 
 You should have received a copy of the GNU General Public License
-along with this program; if not, see http://www\.gnu\.org/licenses/\.
+along with this program; if not, see http://www\&.gnu\&.org/licenses/\&.
 .fi
 .fi
+.if n \{\
 .RE
 .RE
+.\}
index 03d40557ce5da9d41e6224a2653c6496bc36300b..c662d7cbe537fdef3f1f0df3f0cb5c50fd0cf33d 100644 (file)
@@ -1,4 +1,4 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>onnode</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="onnode.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>onnode &#8212; run commands on ctdb nodes</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">onnode [OPTION] ... NODES COMMAND ...</code> </p></div></div><div class="refsect1" lang="en"><a name="id2477311"></a><h2>DESCRIPTION</h2><p>
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>onnode</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="onnode"><a name="onnode.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>onnode &#8212; run commands on ctdb nodes</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">onnode [OPTION] ... NODES COMMAND ...</code> </p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id2998330"></a><h2>DESCRIPTION</h2><p>
       onnode is a utility to run commands on a specific node of a CTDB
       cluster, or on all nodes.
     </p><p>
       onnode is a utility to run commands on a specific node of a CTDB
       cluster, or on all nodes.
     </p><p>
     </p><p>
       The COMMAND can be any shell command. The onnode utility uses
       ssh or rsh to connect to the remote nodes and run the command.
     </p><p>
       The COMMAND can be any shell command. The onnode utility uses
       ssh or rsh to connect to the remote nodes and run the command.
-    </p></div><div class="refsect1" lang="en"><a name="id2478322"></a><h2>DESCRIPTIVE NODE SPECIFICATIONS</h2><p>
+    </p></div><div class="refsect1" title="DESCRIPTIVE NODE SPECIFICATIONS"><a name="id2998358"></a><h2>DESCRIPTIVE NODE SPECIFICATIONS</h2><p>
       The following descriptive node specification can be used in
       place of numeric node numbers:
     </p><div class="variablelist"><dl><dt><span class="term">all</span></dt><dd><p>
             All nodes.
       The following descriptive node specification can be used in
       place of numeric node numbers:
     </p><div class="variablelist"><dl><dt><span class="term">all</span></dt><dd><p>
             All nodes.
+         </p></dd><dt><span class="term">any</span></dt><dd><p>
+             A node where ctdbd is running.  This semi-random but
+             there is a bias towards choosing a low numbered node.
          </p></dd><dt><span class="term">ok | healthy</span></dt><dd><p>
             All nodes that are not disconnected, banned, disabled or
             unhealthy.
          </p></dd><dt><span class="term">ok | healthy</span></dt><dd><p>
             All nodes that are not disconnected, banned, disabled or
             unhealthy.
@@ -29,7 +32,7 @@
             The current NAT gateway.
          </p></dd><dt><span class="term">rm | recmaster</span></dt><dd><p>
             The current recovery master.
             The current NAT gateway.
          </p></dd><dt><span class="term">rm | recmaster</span></dt><dd><p>
             The current recovery master.
-         </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2479544"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-c</span></dt><dd><p>
+         </p></dd></dl></div></div><div class="refsect1" title="OPTIONS"><a name="id2997827"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-c</span></dt><dd><p>
             Execute COMMAND in the current working directory on the
             specified nodes.
          </p></dd><dt><span class="term">-o &lt;prefix&gt;</span></dt><dd><p>
             Execute COMMAND in the current working directory on the
             specified nodes.
          </p></dd><dt><span class="term">-o &lt;prefix&gt;</span></dt><dd><p>
@@ -48,7 +51,7 @@
             more than one node is specified.
          </p></dd><dt><span class="term">-h, --help</span></dt><dd><p>
             Show a short usage guide.
             more than one node is specified.
          </p></dd><dt><span class="term">-h, --help</span></dt><dd><p>
             Show a short usage guide.
-         </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2479637"></a><h2>EXAMPLES</h2><p>
+         </p></dd></dl></div></div><div class="refsect1" title="EXAMPLES"><a name="id2997920"></a><h2>EXAMPLES</h2><p>
       The following command would show the process ID of ctdb on all nodes
     </p><pre class="screen">
       onnode all pidof ctdbd
       The following command would show the process ID of ctdb on all nodes
     </p><pre class="screen">
       onnode all pidof ctdbd
@@ -66,7 +69,7 @@
       directory, in parallel, on nodes 0, 2, 3 and 4.
     </p><pre class="screen">
       onnode -c -p 0,2-4 ./foo
       directory, in parallel, on nodes 0, 2, 3 and 4.
     </p><pre class="screen">
       onnode -c -p 0,2-4 ./foo
-    </pre></div><div class="refsect1" lang="en"><a name="id2479688"></a><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term">/etc/ctdb/nodes</span></dt><dd><p>
+    </pre></div><div class="refsect1" title="FILES"><a name="id2997971"></a><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term">/etc/ctdb/nodes</span></dt><dd><p>
             Contains a list of each node's IP address or hostname.
          </p></dd><dt><span class="term">/etc/ctdb/onnode.conf</span></dt><dd><p>
             If this file exists it is sourced by onnode.  The main
             Contains a list of each node's IP address or hostname.
          </p></dd><dt><span class="term">/etc/ctdb/onnode.conf</span></dt><dd><p>
             If this file exists it is sourced by onnode.  The main
@@ -74,9 +77,9 @@
             something other than "ssh".  In this case the -t option is
             ignored.  For example, the administrator may choose to use
             use rsh instead of ssh.
             something other than "ssh".  In this case the -t option is
             ignored.  For example, the administrator may choose to use
             use rsh instead of ssh.
-         </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2479727"></a><h2>SEE ALSO</h2><p>
+         </p></dd></dl></div></div><div class="refsect1" title="SEE ALSO"><a name="id2998010"></a><h2>SEE ALSO</h2><p>
       ctdbd(1), ctdb(1), <a class="ulink" href="http://ctdb.samba.org/" target="_top">http://ctdb.samba.org/</a>
       ctdbd(1), ctdb(1), <a class="ulink" href="http://ctdb.samba.org/" target="_top">http://ctdb.samba.org/</a>
-    </p></div><div class="refsect1" lang="en"><a name="id2479739"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
+    </p></div><div class="refsect1" title="COPYRIGHT/LICENSE"><a name="id2998022"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
 Copyright (C) Andrew Tridgell 2007<br>
 Copyright (C) Ronnie sahlberg 2007<br>
 Copyright (C) Martin Schwenke 2008<br>
 Copyright (C) Andrew Tridgell 2007<br>
 Copyright (C) Ronnie sahlberg 2007<br>
 Copyright (C) Martin Schwenke 2008<br>
index 8710d36b2ea0c2173be808082152b6efd3932720..d3f6bf4498466c8ea240263716e73e80eed0ef92 100644 (file)
          </para>
         </listitem>
       </varlistentry>
          </para>
         </listitem>
       </varlistentry>
+      <varlistentry><term>any</term>
+        <listitem>
+          <para>
+             A node where ctdbd is running.  This semi-random but
+             there is a bias towards choosing a low numbered node.
+         </para>
+        </listitem>
+      </varlistentry>
       <varlistentry><term>ok | healthy</term>
         <listitem>
           <para>
       <varlistentry><term>ok | healthy</term>
         <listitem>
           <para>