Revision 6d846d0e man/gnt-node.rst
b/man/gnt-node.rst | ||
---|---|---|
612 | 612 |
``UNKNOWN``. Items with status ``WARNING`` or ``CRITICAL`` are logged and |
613 | 613 |
annotated in the command line output. |
614 | 614 |
|
615 |
|
|
616 |
RESTRICTED-COMMAND |
|
617 |
~~~~~~~~~~~~~~~~~~ |
|
618 |
|
|
619 |
| **restricted-command** [-M] [--sync] |
|
620 |
| { -g *group* *command* | *command* *nodes*... } |
|
621 |
|
|
622 |
Executes a restricted command on the specified nodes. Restricted commands are |
|
623 |
not arbitrary, but must reside in |
|
624 |
``@SYSCONFDIR@/ganeti/remote-commands`` on a node, either as a regular |
|
625 |
file or as a symlink. The directory must be owned by root and not be |
|
626 |
world- or group-writable. If a command fails verification or otherwise |
|
627 |
fails to start, the node daemon log must be consulted for more detailed |
|
628 |
information. |
|
629 |
|
|
630 |
Example for running a command on two nodes:: |
|
631 |
|
|
632 |
# gnt-node restricted-command mycommand \ |
|
633 |
node1.example.com node2.example.com |
|
634 |
|
|
635 |
The ``-g`` option can be used to run a command only on a specific node |
|
636 |
group, e.g.:: |
|
637 |
|
|
638 |
# gnt-node restricted-command -g default mycommand |
|
639 |
|
|
640 |
The ``-M`` option can be used to prepend the node name to all command |
|
641 |
output lines. ``--sync`` forces the opcode to acquire the node lock(s) |
|
642 |
in exclusive mode. |
|
643 |
|
|
615 | 644 |
.. vim: set textwidth=72 : |
616 | 645 |
.. Local Variables: |
617 | 646 |
.. mode: rst |
Also available in: Unified diff