more merges for GPLv3 update
[vlendec/samba-autobuild/.git] / ctdb / doc / onnode.1.html
1 <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.72.0"></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 NODE COMMAND ...</code> </p></div></div><div class="refsect1" lang="en"><a name="id2490457"></a><h2>DESCRIPTION</h2><p>
2       onnode is a utility to run commands on a specific node of a CTDB
3       cluster, or on all nodes.
4     </p><p>
5       The NODE option specifies which node to run a command on. You
6       can specify a numeric node number (from 0 to N-1) or the special
7       node 'all'.
8     </p><p>
9       The COMMAND can be any shell command. The onnode utility uses
10       ssh or rsh to connect to the remote nodes and run the command.
11       </p><p>
12       If the COMMAND starts with a /, then the command is run via the
13       'at' service. Otherwise the command is run in the foreground.
14     </p></div><div class="refsect1" lang="en"><a name="id2487793"></a><h2>EXAMPLES</h2><p>
15       The following command would show the process ID of ctdb on all nodes
16       </p><pre class="screen">
17 onnode all pidof ctdbd
18       </pre><p>
19       The following command would show the last 5 lines of log on each
20       node, preceded by the nodes hostname
21       </p><pre class="screen">
22 onnode all "hostname; tail -5 /var/log/log.ctdb"
23       </pre><p>
24       The following command would restart the ctdb service on all nodes.
25       </p><pre class="screen">
26 onnode all service ctdb restart
27       </pre></div><div class="refsect1" lang="en"><a name="id2488691"></a><h2>SEE ALSO</h2><p>
28       ctdbd(1), ctdb(1), <a href="http://ctdb.samba.org/" target="_top">http://ctdb.samba.org/</a>
29     </p></div><div class="refsect1" lang="en"><a name="id2488704"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
30 Copyright (C) Andrew Tridgell 2007<br>
31 Copyright (C) Ronnie sahlberg 2007<br>
32 <br>
33 This program is free software; you can redistribute it and/or modify<br>
34 it under the terms of the GNU General Public License as published by<br>
35 the Free Software Foundation; either version 3 of the License, or (at<br>
36 your option) any later version.<br>
37 <br>
38 This program is distributed in the hope that it will be useful, but<br>
39 WITHOUT ANY WARRANTY; without even the implied warranty of<br>
40 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>
41 General Public License for more details.<br>
42 <br>
43 You should have received a copy of the GNU General Public License<br>
44 along with this program; if not, see http://www.gnu.org/licenses/.<br>
45 </p></div></div></div></body></html>