I use a fairly simple WGET command to verify if the IP Address and port are open or closed for a particular server:
wget -a /tmp/ports.log -t1 -T1 10.178.30.45:443
The issue I have is that there are a number of servers that I need to check, and each server links to other IP addresses/ports.
Currently I have several of these one liner type scripts deployed on each of the specific servers which require being run manually as and when required.
Ideally, I am looking to customize this with one script that can recursively read in a flat file of IP addresses/ports using a WGET command. The resulting report produced will identify those that are not connected (ie: "failed: Connection timed out.").
The script should ideally run from within windows rather than deployed and run on each of the server. A list of user id’s/passwords can be obtained for each server if this needs to be passed via the script.