Whatsup(1)
π WHATSUP π
okay bestie, gather round, because this is whatsup(1) from the Whatsup manual, and it is literally your cluster's group chat read receipts.
β¨ NAME β¨
whatsup β list up and/or down nodes in a cluster π¦
πΈ SYNOPSIS πΈ
whatsup [OPTION]... [NODES]...
π DESCRIPTION π
so whatsup tells you which nodes in your cluster are currently up or down. periodt. it figures out the up/down tea based on info handed over by the nodeupdown(3) library, so you might need to set up backend components or clusterlists for nodeupdown(3) first. go peek at libnodeupdown(3) for that, bestie. π«Ά
by default whatsup checks the status of every single node in the cluster β unless you name specific nodes on the command line. and here's a fun one: if the first node listed is "-", then nodes get read in from standard input. nodes can be in hostrange format, comma separated lists, or space separated lists. (HOST RANGES section below has the deets, keep scrolling π) also, the hostnames you list must be the shortened names of hostnames. no long-form, no government names. π
now, the exit value of whatsup depends on which options you ran. if you used the default --updown option, the exit value is 0 if the command succeeds without error. if you used --up, and no nodes are specified via the command line or standard input, the exit value is 0 if all cluster nodes are up. if nodes are specified via the command line or standard input, the exit value wil be 0 if all the specified nodes are up. the behavior is similar for the --down option. iconic, honestly. π
π OPTIONS π
-h,--helpβ print help and exit π-v,--versionβ print version and exit β-o STRING,--hostname=STRINGβ server hostname (default=localhost)-p INT,--port=INTβ server port (default=8649)-b,--updownβ list both up and down nodes (default) β¨-u,--upβ list only up nodes π-d,--downβ list only down nodes π-t,--countβ list only node counts π’-q,--hostrangeβ list nodes in hostrange format (default)-c,--commaβ list nodes in comma separated list-n,--newlineβ list nodes in newline separated list-s,--spaceβ list nodes in space separated list-m,--moduleβ use a specific backend module for up-down calculations. π§-r,--last-up-timeβ output last known up time of nodes and their current up or down state. heads up: this option may not be available on some configurations. π-l,--logβ enterwhatsuplogging mode.whatsupwill regularly poll the backend tool to calculate up-down state changes and output them to the appropriate output. π-f,--log-fileβ specify the log filewhatsupshould output logging information to. if not specified, defaults tostdout.-e,--log-pollβ specify the length in seconds the log mode ofwhatsupshould regularly poll. default is30seconds.-M,--monitorβ monitor up-down state changes through event monitoring. π
π¦ HOST RANGES π¦
as mentioned up top, whatsup accepts ranges of hostnames in the general form:
prefix[n-m,l-k,...]
where n < m and l < k, etc., as an alternative to explicit lists of hosts. do not confuse this with regular expression character classes (also denoted by []). for example, foo[19] does not represent foo1 or foo9 β it represents a degenerate range: foo19. so don't come for me. π
this range syntax is meant only as a convenience on clusters with a prefixNN naming convention, and specification of ranges should not be considered necessary β the list foo1,foo9 could be specified as such, or by the range foo[1,9]. both are valid, both slay.
some examples of range usage follow:
list all nodes among foo01,foo02,...,foo05 that are up and down
whatsup foo[01-05]
list all nodes among foo7,foo9,foo10 that are up and down
whatsup foo[7,9-10]
π¨ reminder bestie: some shells will interpret brackets ('['and']') for pattern matching. depending on your shell, it may be necessary to enclose ranged lists within quotes. for example, intcsh, the above two examples should be executed as:
whatsup "foo[01-05]"
whatsup "foo[7,9-10]"
π EXAMPLES π
list all nodes that are up and down.
whatsup
list all nodes that are down
whatsup -d
list all nodes among foo[0-20] that are down
whatsup -d foo[0-20]
list all nodes that are up and down by their alternate names
whatsup -a
list all nodes among foo[5-25] that are up by their alternate names
whatsup -u -a foo[5-25]
list all nodes that are up in comma separated lists.
whatsup -u -c
list all nodes that are up among the nodes foo2, foo4, and foo8
whatsup -u foo2,foo4,foo8
only output the number of nodes that are up and down
whatsup -t
only output the number of up nodes
whatsup -u -t
only output the number of up nodes among foo[5-25]
whatsup -u -t foo[5-25]
π FILES π
/usr/bin/whatsup
π SEE ALSO π
π ORIGIN π
developed by Albert Chu <chu11@llnl.gov> on LLNL's Linux clusters. this software is open source and distributed under the terms of the Gnu GPL. π«Ά
and that's the whole page, bestie β shoutout to LLNL for writing this one back in August 2003, before most of us could even type. π stay up (or down, whatsup -d has you covered) π¦β¨
π¦ where this page comes from
- epel 9: whatsup 1.14-41.el9 Β· GPLv2+
- fedora 43: whatsup 1.14-50.fc43 Β· GPL-2.0-or-later
- fedora 44: whatsup 1.14-51.fc44 Β· GPL-2.0-or-later
- Copyright (C) 2007-2011 Lawrence Livermore National Security, LLC
- Copyright (C) 2003-2007 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms