I need someone to write a shell script that will utilize the "nc" command to check connectivity of IP addresses to a specified mail server. I need it to be versatile in the respect that it needs to check multiple IP addresses either from the same Class C range or multiple Class C ranges.
Here is an example of a scenario:
I want to check the connectivity of the following IPs that are binded to the server:
[login to view URL] - [login to view URL]
[login to view URL] - 1.84.55.12-54
[login to view URL] - [login to view URL]
I want to check if the above IPs will connect to the following server:
[login to view URL]
The command to do the above one by one would be the following:
nc -s [login to view URL] 25
--
The problem with checking the IPs one by one is that it will take forever so I need an automated way to do this (hence the shell script). I want the shell script to be versatile and allow input when run so it would do something like the following when run:
Please input IP ranges in the following format (X.X.X.X - X.X.X.X):
Please enter server you would like to connect to:
--
I would then be allowed to input one or several IP ranges. The shell script would then utilize the "nc" command to check all IPs in the ranges I assigned and output the results in real time to the screen and also save the results in a .txt file.
--
This should be a simple job for someone who knows how to do this. I am looking to have this completed in one day and please don't bid some outrageous amount. Please message me explaining your knowledge and a personalized message of when you can complete the job (no random automated copy/paste responses please).
Thank you!
If you refer to my private message, I have offered an alternative solution. I will be able to complete the work within one day. I work with Linux and BASH on a regular basis.