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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I setup a script to run a tracert on multiple servers ??

Status
Not open for further replies.

Pyro777

MIS
Jul 14, 2006
47
US
I need to monitor my servers in my California office and would like to setup a script to pull my servers from a text file and then display the route for each server in a text or excel format. I am very new to scripting and any help along the way would be most appreciated.
 
The easyest way is a plain old batch file some thing like

tracert yahoo.com > c:\test.txt
tracert microsoft.com >> c:\test.txt
tracert cisco.com >> c:\test.txt
notepad c:\test.txt

There is no native VB/VBA tracert command so you would have to run it as an external command and that would not give you any control over it. Then you have to bring the file into a text control.

Also if you were not able to complete the route it would just sit and run till it hits maximum hops.

Uncle Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top