Using fping and redirecting stout and stderr to the same file.
fping -lDf IPlist >IPoutput 2>&1
The "host unreachable" error messages in the file have no timestamps.
How do I get timestamps on those?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
fping -lDf IPlist 2>&1 | logger
Then check the syslog, typically your output will appear in
A side effect of syslog is that it timestamps all entries.