mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
a4c96397f5
(This used to be ctdb commit b7be4ee6c9a670cdf148fd36b092c3991a554964)
46 lines
2.8 KiB
HTML
46 lines
2.8 KiB
HTML
<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 — 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>
|
||
onnode is a utility to run commands on a specific node of a CTDB
|
||
cluster, or on all nodes.
|
||
</p><p>
|
||
The NODE option specifies which node to run a command on. You
|
||
can specify a numeric node number (from 0 to N-1) or the special
|
||
node 'all'.
|
||
</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>
|
||
If the COMMAND starts with a /, then the command is run via the
|
||
'at' service. Otherwise the command is run in the foreground.
|
||
</p></div><div class="refsect1" lang="en"><a name="id2487793"></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
|
||
</pre><p>
|
||
The following command would show the last 5 lines of log on each
|
||
node, preceded by the nodes hostname
|
||
</p><pre class="screen">
|
||
onnode all "hostname; tail -5 /var/log/log.ctdb"
|
||
</pre><p>
|
||
The following command would restart the ctdb service on all nodes.
|
||
</p><pre class="screen">
|
||
onnode all service ctdb restart
|
||
</pre></div><div class="refsect1" lang="en"><a name="id2488691"></a><h2>SEE ALSO</h2><p>
|
||
ctdbd(1), ctdb(1), <a href="http://ctdb.samba.org/" target="_top">http://ctdb.samba.org/</a>
|
||
</p></div><div class="refsect1" lang="en"><a name="id2488704"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
|
||
Copyright<EFBFBD>(C)<29>Andrew<65>Tridgell<6C>2007<br>
|
||
Copyright<EFBFBD>(C)<29>Ronnie<69>sahlberg<72>2007<br>
|
||
<br>
|
||
This<EFBFBD>program<EFBFBD>is<EFBFBD>free<EFBFBD>software;<3B>you<6F>can<61>redistribute<74>it<69>and/or<6F>modify<br>
|
||
it<EFBFBD>under<EFBFBD>the<EFBFBD>terms<EFBFBD>of<EFBFBD>the<EFBFBD>GNU<EFBFBD>General<EFBFBD>Public<EFBFBD>License<EFBFBD>as<EFBFBD>published<EFBFBD>by<br>
|
||
the<EFBFBD>Free<EFBFBD>Software<EFBFBD>Foundation;<3B>either<65>version<6F>3<EFBFBD>of<6F>the<68>License,<2C>or<6F>(at<br>
|
||
your<EFBFBD>option)<29>any<6E>later<65>version.<br>
|
||
<br>
|
||
This<EFBFBD>program<EFBFBD>is<EFBFBD>distributed<EFBFBD>in<EFBFBD>the<EFBFBD>hope<EFBFBD>that<EFBFBD>it<EFBFBD>will<EFBFBD>be<EFBFBD>useful,<2C>but<br>
|
||
WITHOUT<EFBFBD>ANY<EFBFBD>WARRANTY;<3B>without<75>even<65>the<68>implied<65>warranty<74>of<br>
|
||
MERCHANTABILITY<EFBFBD>or<EFBFBD>FITNESS<EFBFBD>FOR<EFBFBD>A<EFBFBD>PARTICULAR<EFBFBD>PURPOSE.<2E><>See<65>the<68>GNU<br>
|
||
General<EFBFBD>Public<EFBFBD>License<EFBFBD>for<EFBFBD>more<EFBFBD>details.<br>
|
||
<br>
|
||
You<EFBFBD>should<EFBFBD>have<EFBFBD>received<EFBFBD>a<EFBFBD>copy<EFBFBD>of<EFBFBD>the<EFBFBD>GNU<EFBFBD>General<EFBFBD>Public<EFBFBD>License<br>
|
||
along<EFBFBD>with<EFBFBD>this<EFBFBD>program;<3B>if<69>not,<2C>see<65>http://www.gnu.org/licenses/.<br>
|
||
</p></div></div></div></body></html>
|