Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Want to save tracerts - batch (or otherwise)

$
0
0

Hope this isn't off-topic with batch files.  I want to keep an eye on ICMP latencies to various destinations.  I found this batch file and it is at least a good starting point. It gives me what I want, but limited to once per day.  I haven't worked with batch files much, and I coudln't tell you what the stuff at the top means (yet.  I'd like to...if you could point me to good places)

for /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set weekday=%%a& set day=%%c& set month=%%b& set year=%%d)date /t > tracert_%year%%month%%day%.txt

tracert 8.8.8.8 >> tracert_%year%%month%%day%.txt

tracert 10.88.10.5 >> tracert_%year%%month%%day%.txt
This creates one per day, otherwise it overwrites the existing.  I though about using thetime /t command to somehow let me save more than one output file.  For now I'd be happy to get forum help in order to have multiple files per day.  Boyond this batch file, would it be possible to script the output into a format that would be more rich?  Plot latencies in Excel and chart results?  Send an alert if a route changes, or if latency increases by X?  Thanks in advance.

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>