short-scripts/windows/network/ping_logger
Theenoro 47b320f196 fixed some logrotate issues~ 2022-08-05 10:32:24 +02:00
..
log added logrotate to ping_logger 2022-08-05 09:56:59 +02:00
README.md „windows/network/ping_logger/README.md“ ändern 2022-08-03 22:34:37 +02:00
ping_logger.bat fixed some logrotate issues~ 2022-08-05 10:32:24 +02:00

README.md

Ping Logger

Replace the variables check_host & check_hostname from the ping_logger.bat like:

set check_host=8.8.8.8
set check_hostname=google_dns

You can also alter the path of the log file or name. Normally logs will be written in the .\log folder.

set filename=.\log\%check_hostname%.log

One better solution if you have more hosts. Replace

set check_host=%1
set check_hostname=%2

then you can start the bat file via start .\ping_logger.bat 8.8.8.8 google_dns. This will open a new cmd window pinging the given host info and create the logfile for it.