mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
This is very much like "ctdb status" but actually returns the status for use in scripts. This can be used in 2 modes: * An optional nodestring is passed directly to the command without using -n. In this mode the current node is asked for the status of all listed nodes. * The nodestring is passed via -n. In this mode the designated nodes will be asked for their status. This is like "ctdb status". These modes can be mixed. For example: ctdb nodestatus 1,2,3 -n 0 asks node 0 for the status of nodes 1, 2 and 3, returning the bitwise OR of their statuses. This version uses the auto_all functionality, so the output isn't necessarily pretty. An improved version that does its own -n processing may appear soon. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 355685a14be17bf4648788f8a72c54790fe03502)