Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/man/man1/clush.1
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ execute COMMAND on the local system
.TP
.B clush> =
toggle the output format (gathered or standard mode)
.TP
.B clush> *
broadcast the next command to every configured node
.UNINDENT
.UNINDENT
.sp
Expand Down
7 changes: 7 additions & 0 deletions doc/sphinx/guide/nodesets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ a basic usage of the :class:`.NodeSet` class::
>>> print(NodeSet.fromlist(["clu-1-[1-4]", "clu-2-[1-4]"]))
clu-[1-2]-[1-4]

You can also iterate over the nodes one at a time::

>>> nodeset = NodeSet("node[1-3]")
>>> it = iter(nodeset)
>>> print it.next()
node1

All corresponding Python sets operations are available, for example::

>>> from ClusterShell.NodeSet import NodeSet
Expand Down