Capture Ping Responses with Time Stamps

The trusty ping command is a network administrator's best friend for testing connectivity. But what if you need to document your findings and track response times over time? The standard output can be fleeting, making it difficult to analyze trends.

This guide will show you how to save ping responses with timestamps

Ping command:

ping -t 1.1.1.1|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 1.1.1.1>nul" >D:1.1.1.1.txt
In the above script will ping the address 1.1.1.1 continuously. It will add date and time stamp and save the output in D drive: 1.1.1.1.txt

Command Output:

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.