@@ -129,6 +129,147 @@ The default value is
129129.Qq / .
130130.Bl -tag -width Ds
131131.\" ------------------------------------
132+ .It Cm help
133+ .Pp
134+ Displays general help and commands supported by
135+ .Nm .
136+ .Pp
137+ Always exits with code 64 (EX_USAGE).
138+ .\" ------------------------------------
139+ .It Cm ping
140+ .Pp
141+ Most basic health check. Succeeds if target node (runtime) is running
142+ and
143+ .Nm
144+ can authenticate with it successfully.
145+ .\" ------------------------------------
146+ .It Cm memory_breakdown Op Fl -unit Ar memory_unit
147+ .Pp
148+ Displays node's memory usage by category.
149+ Supported memory units are:
150+ .Bl -bullet
151+ .It
152+ bytes
153+ .It
154+ megabytes
155+ .It
156+ gigabytes
157+ .It
158+ terabytes
159+ .El
160+ .Pp
161+ See
162+ .Lk https://www.rabbitmq.com/memory-use.html " RabbitMQ Memory Use guide"
163+ to learn more.
164+ .Pp
165+ Example:
166+ .Sp
167+ .Dl
168+ .Nm
169+ memory_breakdown --unit gigabytes
170+ .\" ------------------------------------
171+ .It Cm server_version
172+ .Pp
173+ Reports target node's version.
174+ .Pp
175+ Example:
176+ .Sp
177+ .Dl
178+ .Nm
179+ server_version -q
180+ .\" ------------------------------------
181+ .It Cm erlang_version
182+ .Pp
183+ Reports target node's Erlang/OTP version.
184+ .Pp
185+ Example:
186+ .Sp
187+ .Dl
188+ .Nm
189+ erlang_version -q
190+ .\" ------------------------------------
191+ .It Cm maybe_stuck
192+ .Pp
193+ Periodically samples stack traces of all Erlang processes
194+ ("lightweight threads") on the node. Reports the processes for which
195+ stack trace samples are identical.
196+ .Pp
197+ Identical samples may indicate that the process is not making any progress
198+ but is not necessarily an indication of a problem.
199+ .Pp
200+ Example:
201+ .Sp
202+ .Dl
203+ .Nm
204+ maybe_stuck -q
205+ .\" ------------------------------------
206+ .It Cm runtime_thread_stats Op Fl -sample-interval Ar interval
207+ .Pp
208+ Performs sampling of runtime (kernel) threads' activity for
209+ .Ar interval
210+ seconds and reports it.
211+ .Pp
212+ For this command to work, Erlang/OTP on the target node must be compiled with
213+ microstate accounting support and have the runtime_tools package available.
214+ .Pp
215+ Example:
216+ .Sp
217+ .Dl
218+ .Nm
219+ runtime_thread_stats --sample-interval 15
220+ .\" ------------------------------------
221+ .It Cm tls_versions
222+ .Pp
223+ Lists all TLS versions supported by the runtime on the target node.
224+ Note that RabbitMQ can be configured to only accept a subset of those
225+ versions, for example, SSLv3 is disabled by default.
226+ .Pp
227+ See
228+ .Lk https://www.rabbitmq.com/ssl.html " RabbitMQ TLS guide"
229+ to learn more.
230+ .Pp
231+ Example:
232+ .Sp
233+ .Dl
234+ .Nm
235+ tls_versions -q
236+ .\" ------------------------------------
237+ .It Cm erlang_cookie_hash
238+ .Pp
239+ Outputs a hashed value of the shared secret used by the target node
240+ to authenticate CLI tools and peers. The value can be compared with the hash
241+ found in error messages of CLI tools.
242+ .Pp
243+ See
244+ .Lk https://www.rabbitmq.com/clustering.html#erlang-cookie " RabbitMQ Clustering guide"
245+ to learn more.
246+ .Pp
247+ Example:
248+ .Sp
249+ .Dl
250+ .Nm
251+ erlang_cookie_hash -q
252+ .\" ------------------------------------
253+ .It Cm discover_peers
254+ .Pp
255+ Runs a peer discovery on the target node and prints the discovered nodes, if any.
256+ .Pp
257+ See
258+ .Lk https://www.rabbitmq.com/cluster-formation.html " RabbitMQ Cluster Formation guide"
259+ to learn more.
260+ .Pp
261+ Example:
262+ .Sp
263+ .Dl
264+ .Nm
265+ discover_peers --timeout 60
266+ .\" ------------------------------------
267+ .It Cm list_channels Op Ar channelinfoitem ...
268+ See
269+ .Cm list_channels
270+ in
271+ .Xr rabbitmqctl 8
272+ .\" ------------------------------------
132273.It Cm list_queues Oo Fl p Ar vhost Oc Oo Fl -offline | Fl -online | Fl -local Oc Op Ar queueinfoitem ...
133274See
134275.Cm list_queues
171312in
172313.Xr rabbitmqctl 8
173314.\" ------------------------------------
315+ .It Cm cluster_status
316+ See
317+ .Cm cluster_status
318+ in
319+ .Xr rabbitmqctl 8
320+ .\" ------------------------------------
174321.It Cm node_health_check
175322Performs several health checks of the target node.
176323.Pp
@@ -179,7 +326,9 @@ then checks that every queue and channel on the node can emit basic stats.
179326.Pp
180327Example:
181328.Sp
182- .Dl rabbitmqctl node_health_check -n rabbit@hostname
329+ .Dl
330+ .Nm
331+ node_health_check -n rabbit@hostname
183332.\" ------------------------------------
184333.It Cm environment
185334See
0 commit comments