The “Silent Ping” Command is a sort of improvement for the well known ping command.
So, why do we need it?
When you reboot a serve or PC remotely, you can never be sure when it was booted again or when it is online again,
Most people use the ping command with the -t parameter to check if a server is online again.
But what if you could know exactly when a server is up again or even simply monitor a server when it goes offline over the night,
Or if a communication error occurs that cause some kind of service outage.
the sping script-command enable you to see exactly when a server went down, just with a simple use of the ping command.
Usage: sping [IP Address/HostName]
copy the code to a notepad file and Save the file as sping.bat
Run the utility like this: sping <ip address>
@Echo off Cls Echo Background Pinging %1 ... SetLocal Set PINGSTATUS= :ping %SystemRoot%\System32\ping.exe -n 2 %1 | find "TTL=" > nul GOTO level%ERRORLEVEL% goto end :level1 IF NOT "%PINGSTATUS%"=="NOREPLY" ( set PINGSTATUS=NOREPLY Echo. Echo %DATE% %TIME% Status: No Reply ) goto ping :level0 IF NOT "%PINGSTATUS%"=="REPLY" ( set PINGSTATUS=REPLY Echo. Echo %DATE% %TIME% Status: Reply ) goto ping :end
ping -t command with CTRL+Break
One more feature that most system administrators doesn’t know of:
When you use the ping -t command, you can use CTRL+Break combination keys while the command executes.
This will show you a summary statistics of the command.