Find a server filtering for a specific feature

Find a server filtering for a specific feature

The other day someone asked me to find a server that match with the Serial Number they passed me. There were only 10 servers, but anyway with CollectNode there is no reason to make the search manually.

in this case we are going to find a server with a specific serial number, so let’s see how to do it.

First off all, we create the list of servers:

To get the serial number we can execute the CollectNode command --system. That gives basic information about servers. Click here to see the documentation about --system.

A basic execution will display all servers with the information required for all of them. The serial numbers are blurred for security reasons ūüėČ

Find servers serial number

But in this case we want just to appear the server that matches the serial number. So we use the filter --where, that only displays the servers that accomplish the condition specify. Click here to see the documentation about --where

Find server filtering by serial number

In this case we are filtering the servers to only display the information for the ones that the output of the command --system contains the serial number specify.

And that’s all!!
I hope you have enjoyed the reading. ūüėČ

Get CollectNode now !

Leave CollectNode to make the hard work, and spend your time where really matters.

5 tasks CollectNode can help managing servers

5 tasks CollectNode can help managing servers

CollectNode will allow you manage your servers, execute tasks, get status, make any type of checks, generate reports, etc etc. CollectNode is agentless, you can have it installed and configured in a couple of minutes, and start executing tasks though thousands of servers, It is based in ssh and winrm, which are both of them secure protocols.

 

Let’s see the 5 tasks CollectNode can help managing servers:

 

1. Execute commands on remote servers fast and easily:

CollectNode can execute in few seconds commands on hundred of servers, save the output to be displayed later in the final report, where all the information is displayed in a very readable way.

2. Connect to Windows servers

It is not only possible execute remote tasks on Unix/Linux servers, but on Windows too. Using the protocol winrm (Windows Remote Management) CollectNode can connect remotely to them and execute any command.

Configuring the windows credentials to be used, execute remote commans on Windows servers is as simple as executing remote command on Unix/Linux. Making very simple get some tasks executed in all servers, independently  if it is a Unix/Linux or Windows system.

 

3. Copy files and execute scripts

You can simply copy a file from CollectNode side to remoter servers (Unix/Linix and Windows), in the final report you will be informed if the file has been copied successfully to the servers selected. If you want to execute an script allocated on the CollectNode side, you can do it. The script will be copied to the remote servers, executed, and removed from the remote servers, and in the final report the output of the script will be displayed, making all the process very easy.

4. Get Report with filtered information

In all the CollectNode executions you can chose which information you want to be displayed in the final report, making the report very customizable. Sorting the servers by name, displaying only the servers where the some condition is accomplished, displaying only the specific lines of the output….

 

5. Save servers

CollectNode DB allows you to save any server  you work with and tag them. Next time you need to execute a tasks at, for instance, production servers with apache installed, just make the right query to CollectNode-DB and get them.

 

To see a CollectNode execution explained step by step, check the post below this line.

Video: Understanding CollectNode output

That’s all for now¬† ūüôā
If you feel CollectNode can help you, just try it!

Get CollectNode now !

Leave CollectNode to make the hard work, and spend your time where really matters.

Pin It on Pinterest