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
Last published date
Overview
This article provides steps to save continuous ping results to a text file for troubleshooting.
Product section
Cause
N/A
Resolution
Command Prompt
- RDP to Orion server
- Open Command Prompt as Administrator
- 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. - Stop the test by pressing CTRL+C while selecting Command Prompt window
- 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
- RDP to Orion server
- Open PowerShell as Administrator
- Execute the following command:
ping -t X.X.X.X|Foreach{"{0} - {1}" -f (Get-Date),$_} > $env:ProgramData\SolarWinds\pingtest.txtNote: Please replace the X.X.X.X with the target IP address. - Stop the test by pressing CTRL+C while selecting the PowerShell window
- Retrieve the results file from the following location:
- %ProgramData%\SolarWinds\pingtest.txt