.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CLUBAK" 1 "2026-07-16" "1.10.1" "ClusterShell User Manual" .SH NAME clubak \- format output from clush/pdsh-like output and more .SH SYNOPSIS .sp \fBclubak\fP [ OPTIONS ] .SH DESCRIPTION .sp \fBclubak\fP formats text from standard input containing lines of the form \(dq\fInode:output\fP\(dq. It is fully backward compatible with \fBdshbak\fP(1) but provides additional features. For instance, \fBclubak\fP always displays its results sorted by node/nodeset. .sp You do not need to use \fBclubak\fP when using \fBclush\fP(1) as all output formatting features are already included in it. It is provided for other usages, like post\-processing results of the form \(dq\fInode:output\fP\(dq. .sp Like \fBclush\fP(1), \fBclubak\fP uses the \fIClusterShell.MsgTree\fP module of the ClusterShell library (see \fBpydoc ClusterShell.MsgTree\fP). .SH INVOCATION .sp \fBclubak\fP should be started with connected standard input. .SH OPTIONS .INDENT 0.0 .TP .B \-\-version show \fBclubak\fP version number and exit .TP .B \-b\fP,\fB \-c\fP,\fB \-\-dshbak gather nodes with same output (\-c and \-\-dshbak are provided for \fBdshbak\fP(1) compatibility) .TP .B \-B same as \-b; accepted for compatibility with \fBclush\fP(1), where \-B also gathers standard error .TP .B \-q\fP,\fB \-\-quiet be quiet, print essential output only (e.g. suppress the node count displayed next to gathered nodeset headers) .TP .B \-v\fP,\fB \-\-verbose be verbose, print informative messages; also echo each input line to standard output prefixed by \fBINPUT\fP .TP .B \-d\fP,\fB \-\-debug output more messages for debugging purpose .TP .B \-L disable header block and order output by nodes .TP .B \-N disable labeling of command output .TP .B \-r\fP,\fB \-\-regroup fold nodeset using node groups .TP .BI \-\-axis\fB= RANGESET for nD nodesets, fold the displayed nodeset (e.g. in gathered output headers) along provided axis only. Axes are indexed from 1 to n and can be specified here either using the rangeset syntax, e.g. \(aq1\(aq, \(aq1\-2\(aq, \(aq1,3\(aq, 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 the \fBfold_axis\fP library default. .TP .BI \-s \ GROUPSOURCE\fR,\fB \ \-\-groupsource\fB= GROUPSOURCE optional \fBgroups.conf\fP(5) group source to use .TP .BI \-\-groupsconf\fB= FILE use alternate config file for \fBgroups.conf\fP(5) .TP .B \-G\fP,\fB \-\-groupbase do not display group source prefix (always \fI@groupname\fP) .TP .BI \-S \ SEPARATOR\fR,\fB \ \-\-separator\fB= SEPARATOR node / line content separator string (default: \fI:\fP) .TP .B \-F\fP,\fB \-\-fast faster but memory hungry mode (preload all messages per node) .TP .B \-T\fP,\fB \-\-tree message tree trace mode; switch to enable \fBClusterShell.MsgTree\fP trace mode, all keys/nodes being kept for each message element of the tree, thus allowing special output display .TP .BI \-\-interpret\-keys\fB= INTERPRET_KEYS whether to interpret keys (the field before the separator on each input line) as node sets. \fIINTERPRET_KEYS\fP is \fBnever\fP, \fBalways\fP or \fBauto\fP (the default). With \fBnever\fP, each key is kept as a plain string; with \fBalways\fP, every key must be a valid node set; with \fBauto\fP, keys are interpreted as node sets, but if any key cannot be parsed, \fBclubak\fP silently switches to treating all keys as plain strings. .TP .BI \-\-color\fB= WHENCOLOR \fBclubak\fP can use NO_COLOR, CLICOLOR and CLICOLOR_FORCE environment variables. \fB\-\-color\fP command line option always takes precedence over environment variables. NO_COLOR takes precedence over CLICOLOR_FORCE which takes precedence over CLICOLOR. \fB\-\-color\fP tells whether to use ANSI colors to surround node or nodeset prefix/header with escape sequences to display them in color on the terminal. \fIWHENCOLOR\fP is \fBnever\fP, \fBalways\fP or \fBauto\fP (which uses color if standard output refers to a terminal). Color is set to [34m (blue foreground text) and cannot be modified. .TP .B \-\-diff show diff between gathered outputs .UNINDENT .SH EXIT STATUS .sp An exit status of zero indicates success of the \fBclubak\fP command. .SH EXAMPLES .INDENT 0.0 .IP 1. 3 \fBclubak\fP can be used to gather some recorded \fBclush\fP(1) results: .UNINDENT .INDENT 0.0 .TP .B Record \fBclush\fP(1) results in a file: .nf # clush \-w node[1\-7] uname \-r >/tmp/clush_output # clush \-w node[32\-159] uname \-r >>/tmp/clush_output .fi .sp .TP .B Display file gathered results (in line\-mode): .nf # clubak \-bL