Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech-notes:scripts:ping [2018/05/17 20:05] – ↷ Page moved from code:java:tech-notes:scripts:ping to tech-notes:scripts:ping gerardorourketech-notes:scripts:ping [2024/03/11 11:34] (current) – [Bulk Ping] gerardorourke
Line 1: Line 1:
-** PING-Addresses.bat **+======PING Scripts======
  
-<code>+===== Bulk Ping ===== 
 + 
 +<file cmd PING-Addresses.bat>
 @echo off @echo off
 :start :start
 cls cls
  
-FOR /F %%i IN (IPaddresses.conf) DO (+set mypath=%cd% 
 +FOR /F %%i IN (%mypath%\IPaddresses.conf) DO (
 ping %%i -n 1 -w 2000 | find "TTL" || echo %%i is DOWN ping %%i -n 1 -w 2000 | find "TTL" || echo %%i is DOWN
 ) )
Line 12: Line 15:
 pause pause
 goto start goto start
-</code>+</file>
  
-** IPaddresses.conf ** +<file txt IPaddresses.conf>
- +
-<code>+
 192.168.1.1 192.168.1.1
 192.168.1.2 192.168.1.2
 192.168.1.3 192.168.1.3
 192.168.1.4 192.168.1.4
-</code>+</file> 
 + 
 + 
 +===== Ping test ==== 
 + 
 +<file cmd start-ping-test.cmd> 
 +start "ping-test" ping 1.1.1.1 -t 
 +start "ping-test" ping 8.8.8.8 -t 
 +</file> 
 + 
 +<file cmd stop-ping-test.cmd> 
 +taskkill /F /FI "WINDOWTITLE eq ping-test" 
 +</file> 
  • tech-notes/scripts/ping.1526583917.txt.gz
  • Last modified: 2018/05/17 20:05
  • by gerardorourke