Scripting - Ping date and time log creation and real time view

Often it could be useful to ping a remote host and save information with date and time indication as well. Useful for statistical and analysis purpose

At the same time it would be very useful to view real time log progress too.

You could get this result following these steps:

  1. Create a .cmd scripting file with this command, in yellow information that need to be customized.
    REMARK: Folder location must exist.

    ping -t xx.yy.bb.dd|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 xx.yy.bb.dd>nul" >C:\tempt\pingtest_xx.yy.bb.dd.log
  2. Utilize CMTrace.exe log viewer tool (for SCCM tool) :

    https://www.microsoft.com/en-us/download/details.aspx?id=50012
  3. Here it is result that appear using previously script and CMTrace conjunctively: