Python script to check if a server's IP connectivity is working.
You must first create a .txt file and insert the different sites you want to test (one per line).
When running it, you have to give a parameter which is the name of the file name.
I'm going to create a "servers.txt" file that contains the different sites I want to test.
- ephec.be
- ecam.be
- pountokdo.com
- google.be
- helha.be
Then I will run my script and provide the name of this file as a parameter.
>py main.py servers.txt
- ephec.be UP
- ecam.be UP
- pountokdo.com DOWN
- google.be UP
- helha.be UP
here is the output ;)