Get servers sorted by operating system is very useful and easy with CollectNode, let’s see how to do it.
Occasionally we have to check our environment is aligned, and in the right version we need, with CollectNode is very easy to check it, let’s see how to do it.
First, we add in a file, the servers we want to check, only one per line.
# cat hosts.file
Execute the command:
collectnode --file hosts.file --os --groupby=os
The command os reports the operating system distribution and version, because by default CollectNode displays the report sorted by server name, we use the command groupby that allows to group the servers displayed by any of the commands available at CollectNode.
For more information about CollectNode please visit Documentation