Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to test if specific ports are open on specific machines from a file

Status
Not open for further replies.

5H4F33

Technical User
Jul 24, 2003
6
MU
Hello everyone,

I have a list of around 156 servers and the ports that are open on these machines. I know I can telnet the machines on the mentioned port but this will take a lot of time.
The list is in an Excel file. I need a script that can do the check for me; if possible feeding the script the excel file or a csv file and giving me a result like "<HOST> <PORT> open/closed/timeout" in a log file.

The list format is as follows:
Machine Protocol (TCP/UDP) Port
xx.xx.xx.xx TCP 23

Thanks in advance for any input and happy holidays for the lucky ones.

Regards.
 
I think this has the relevant things you need.



I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top