Debian Codegraph @

doc/man/man1/clubak.1

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "CLUBAK" 1 "2026-07-16" "1.10.1" "ClusterShell User Manual"
31 .SH NAME
32 clubak \- format output from clush/pdsh-like output and more
33 .SH SYNOPSIS
34 .sp
35 \fBclubak\fP [ OPTIONS ]
36 .SH DESCRIPTION
37 .sp
38 \fBclubak\fP formats text from standard input containing lines of the form
39 \(dq\fInode:output\fP\(dq. It is fully backward compatible with \fBdshbak\fP(1) but
40 provides additional features. For instance, \fBclubak\fP always displays
41 its results sorted by node/nodeset.
42 .sp
43 You do not need to use \fBclubak\fP when using \fBclush\fP(1) as all output
44 formatting features are already included in it. It is provided for other usages,
45 like post\-processing results of the form \(dq\fInode:output\fP\(dq.
46 .sp
47 Like \fBclush\fP(1), \fBclubak\fP uses the \fIClusterShell.MsgTree\fP module of the
48 ClusterShell library (see \fBpydoc ClusterShell.MsgTree\fP).
49 .SH INVOCATION
50 .sp
51 \fBclubak\fP should be started with connected standard input.
52 .SH OPTIONS
53 .INDENT 0.0
54 .TP
55 .B \-\-version
56 show \fBclubak\fP version number and exit
57 .TP
58 .B \-b\fP,\fB \-c\fP,\fB \-\-dshbak
59 gather nodes with same output (\-c and \-\-dshbak are provided
60 for \fBdshbak\fP(1) compatibility)
61 .TP
62 .B \-B
63 same as \-b; accepted for compatibility with \fBclush\fP(1), where \-B also gathers standard error
64 .TP
65 .B \-q\fP,\fB \-\-quiet
66 be quiet, print essential output only (e.g. suppress the node count displayed next to gathered nodeset headers)
67 .TP
68 .B \-v\fP,\fB \-\-verbose
69 be verbose, print informative messages; also echo each input line to standard output prefixed by \fBINPUT\fP
70 .TP
71 .B \-d\fP,\fB \-\-debug
72 output more messages for debugging purpose
73 .TP
74 .B \-L
75 disable header block and order output by nodes
76 .TP
77 .B \-N
78 disable labeling of command output
79 .TP
80 .B \-r\fP,\fB \-\-regroup
81 fold nodeset using node groups
82 .TP
83 .BI \-\-axis\fB= RANGESET
84 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.
85 .TP
86 .BI \-s \ GROUPSOURCE\fR,\fB \ \-\-groupsource\fB= GROUPSOURCE
87 optional \fBgroups.conf\fP(5) group source to use
88 .TP
89 .BI \-\-groupsconf\fB= FILE
90 use alternate config file for \fBgroups.conf\fP(5)
91 .TP
92 .B \-G\fP,\fB \-\-groupbase
93 do not display group source prefix (always \fI@groupname\fP)
94 .TP
95 .BI \-S \ SEPARATOR\fR,\fB \ \-\-separator\fB= SEPARATOR
96 node / line content separator string (default: \fI:\fP)
97 .TP
98 .B \-F\fP,\fB \-\-fast
99 faster but memory hungry mode (preload all messages per node)
100 .TP
101 .B \-T\fP,\fB \-\-tree
102 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
103 .TP
104 .BI \-\-interpret\-keys\fB= INTERPRET_KEYS
105 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.
106 .TP
107 .BI \-\-color\fB= WHENCOLOR
108 \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.
109 .TP
110 .B \-\-diff
111 show diff between gathered outputs
112 .UNINDENT
113 .SH EXIT STATUS
114 .sp
115 An exit status of zero indicates success of the \fBclubak\fP command.
116 .SH EXAMPLES
117 .INDENT 0.0
118 .IP 1. 3
119 \fBclubak\fP can be used to gather some recorded \fBclush\fP(1) results:
120 .UNINDENT
121 .INDENT 0.0
122 .TP
123 .B Record \fBclush\fP(1) results in a file:
124 .nf
125 # clush \-w node[1\-7] uname \-r >/tmp/clush_output
126 # clush \-w node[32\-159] uname \-r >>/tmp/clush_output
127 .fi
128 .sp
129 .TP
130 .B Display file gathered results (in line\-mode):
131 .nf
132 # clubak \-bL </tmp/clush_output
133 .fi
134 .sp
135 .UNINDENT
136 .INDENT 0.0
137 .IP 2. 3
138 Another example, iterate over \fInode*\fP text files in current directory and gather characters count for all of them:
139 .INDENT 3.0
140 .INDENT 3.5
141 .nf
142 # find \-name \(dqnode*\(dq \-exec wc \-c {} ; | awk \(aq{ gsub(\(dq./\(dq,\(dq\(dq,$2); print $2\(dq: \(dq$1 }\(aq | clubak \-bL
143 node[1,3]: 7
144 node2: 9
145 .fi
146 .sp
147 .UNINDENT
148 .UNINDENT
149 .UNINDENT
150 .SH SEE ALSO
151 .sp
152 \fBcluset\fP(1), \fBclush\fP(1), \fBnodeset\fP(1), \fBgroups.conf\fP(5).
153 .sp
154 \fI\%https://clustershell.readthedocs.io/\fP
155 .SH BUG REPORTS
156 .INDENT 0.0
157 .TP
158 .B Use the following URL to submit a bug report or feedback:
159 \fI\%https://github.com/clustershell/clustershell/issues\fP
160 .UNINDENT
161 .SH AUTHOR
162 Stephane Thiell
163 .SH COPYRIGHT
164 GNU Lesser General Public License version 2.1 or later (LGPLv2.1+)
165 .\" Generated by docutils manpage writer.
166 .