CLUBAK(1)
π CLUBAK β the clubak manual page, bestie edition π
okay so this is the manual for clubak, from the ClusterShell User Manual β and I am so excited to walk you through it, no cap. π
β¨ NAME β¨
clubak β format output from clush/pdsh-like output and more π¦
πΈ SYNOPSIS πΈ
clubak [ OPTIONS ]
π DESCRIPTION π
so basically, clubak takes text from standard input and formats it. that text has to be lines shaped like "node:output". it is fully backward compatible with dshbak(1) but it gives you extra features on top. for instance β and this is the iconic part β clubak always displays its results sorted by node/nodeset. always. periodt. π
real talk though: you do not need to use clubak when you're using clush(1), because literally all the output formatting features are already baked into it. clubak is there for other usages, like post-processing results of the form "node:output". π«Ά
and just like clush(1), clubak uses the ClusterShell.MsgTree module of the ClusterShell library (see pydoc ClusterShell.MsgTree). iykyk. π
π INVOCATION π
clubak should be started with connected standard input. (fr fr, don't just run it staring at a terminal with no input, it needs the pipes.)
π₯ OPTIONS π₯
one bullet per option, bestie, nothing skipped:
--versionβ show theclubakversion number and exit. cute and quick. β¨-b,-c,--dshbakβ gather nodes with the same output. (-cand--dshbakare provided fordshbak(1)compatibility β they're here so your old scripts don't get sad.) π-Bβ same as-b; accepted for compatibility withclush(1), where-Balso gathers standard error. note that here it's just the same as-bokay? π-q,--quietβ be quiet, print essential output only (e.g. suppress the node count displayed next to gathered nodeset headers). low-key mode activated. π€«-v,--verboseβ be verbose, print informative messages; also echo each input line to standard output prefixed byINPUT. highkey yapping mode. π’-d,--debugβ output more messages for debugging purpose. for when you're in your detective era. π΅οΈ-Lβ disable header block and order output by nodes. π-Nβ disable labeling of command output. π·οΈ-r,--regroupβ fold nodeset using node groups. πΈ--axis=RANGESETβ for nD nodesets, fold the displayed nodeset (e.g. in gathered output headers) along the provided axis only. axes are indexed from1tonand can be specified here either using the rangeset syntax, e.g.'1','1-2','1,3', or by a single negative number meaning that the index is counted from the end. because some nodesets may have several different dimensions, axis indices are silently truncated to fall in the allowed range. this is the per-invocation equivalent of thefold_axislibrary default. π§-s GROUPSOURCE,--groupsource=GROUPSOURCEβ optionalgroups.conf(5)group source to use. π--groupsconf=FILEβ use alternate config file forgroups.conf(5). π-G,--groupbaseβ do not display group source prefix (always@groupname). π-S SEPARATOR,--separator=SEPARATORβ node / line content separator string (default::). yes bestie, you can change the colon. π«Ά-F,--fastβ faster but memory hungry mode (preload all messages per node). it's giving speed demon with a big appetite. β‘-T,--treeβ message tree trace mode; switch to enableClusterShell.MsgTreetrace mode, all keys/nodes being kept for each message element of the tree, thus allowing special output display. π³--interpret-keys=INTERPRET_KEYSβ whether to interpret keys (the field before the separator on each input line) as node sets.INTERPRET_KEYSisnever,alwaysorauto(the default). withnever, each key is kept as a plain string; withalways, every key must be a valid node set; withauto, keys are interpreted as node sets, but if any key cannot be parsed,clubaksilently switches to treating all keys as plain strings. π--color=WHENCOLORβclubakcan useNO_COLOR,CLICOLORandCLICOLOR_FORCEenvironment variables. the--colorcommand line option always takes precedence over environment variables.NO_COLORtakes precedence overCLICOLOR_FORCEwhich takes precedence overCLICOLOR.--colortells whether to use ANSI colors to surround node or nodeset prefix/header with escape sequences to display them in color on the terminal.WHENCOLORisnever,alwaysorauto(which uses color if standard output refers to a terminal). color is set to[34m(blue foreground text) and cannot be modified. π--diffβ show diff between gathered outputs. the drama of comparison. π
β EXIT STATUS β
an exit status of zero indicates success of the clubak command. anything else? not success, bestie. π
π¦ EXAMPLES π¦
1. clubak can be used to gather some recorded clush(1) results:
record clush(1) results in a file:
# clush -w node[1-7] uname -r >/tmp/clush_output
# clush -w node[32-159] uname -r >>/tmp/clush_output
display file gathered results (in line-mode):
# clubak -bL </tmp/clush_output
2. another example, iterate over node* text files in current directory and gather characters count for all of them:
# find -name "node*" -exec wc -c {} ; | awk '{ gsub("./","",$2); print $2": "$1 }' | clubak -bL
node[1,3]: 7
node2: 9
π SEE ALSO π
and also this link, which we are keeping exactly as-is:
https://clustershell.readthedocs.io/
π BUG REPORTS π
use the following URL to submit a bug report or feedback β please do, they actually want to hear from you:
https://github.com/clustershell/clustershell/issues
π AUTHOR π
Stephane Thiell
π COPYRIGHT π
GNU Lesser General Public License version 2.1 or later (LGPLv2.1+)
this page is from ClusterShell version1.10.1, dated2026-07-16π slay, go format some output, bestie β you've got this π«Άβ¨
π¦ where this page comes from
- arch rolling: clustershell 1.10.1-2 Β· LGPL-2.1-or-later
- epel 10: clustershell 1.10.1-1.el10_3 Β· LGPL-2.1-or-later
- epel 9: clustershell 1.10.1-1.el9 Β· LGPL-2.1-or-later
- fedora 43: clustershell 1.10.1-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: clustershell 1.10.1-1.fc44 Β· LGPL-2.1-or-later
- ubuntu stonking: clustershell 1.10.1-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms