Network Management

Ping test and save to text file

​​​​​​​This covers a continuous ping test  by using Command Prompt or PowerShell from one server to a particular node for status checking if it matches the status shown on the web console

First published date

10/31/2018 9:51 PM

Last published date

7/31/2026 11:33 AM

Overview

This article provides steps to save continuous ping results to a text file for troubleshooting.

Product section

Network Performance Monitor

Cause

N/A

Resolution

Command Prompt

  1. RDP to Orion server
  2. Open Command Prompt as Administrator
  3. Execute the following command:
    ping -t X.X.X.X|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 X.X.X.X>nul" > %ProgramData%\SolarWinds\pingtest.txt
    Note: Please replace the X.X.X.X with the target IP address.
  4. Stop the test by pressing CTRL+C while selecting Command Prompt window
  5. Retrieve the results file from the following location: 
    • %ProgramData%\SolarWinds\pingtest.txt

Note: A 24-hour ping test will create a file of around 4MB in size.

PowerShell

  1. RDP to Orion server
  2. Open PowerShell as Administrator
  3. Execute the following command:
    ping -t X.X.X.X|Foreach{"{0} - {1}" -f (Get-Date),$_} > $env:ProgramData\SolarWinds\pingtest.txt
    Note: Please replace the X.X.X.X with the target IP address.
  4. Stop the test by pressing CTRL+C while selecting the PowerShell window
  5. Retrieve the results file from the following location: 
    • %ProgramData%\SolarWinds\pingtest.txt