Log devices on your network

Fing logger (finglogger.sh):

#!/bin/sh
 
FING_LOG_FILE=/path/to/fing.log
 
# append current public ip
echo `date +"%Y/%m/%d %T"`";publicip;"`curl -s ipecho.net/plain`";;;" >> $FING_LOG_FILE
 
# append current fing output
/usr/bin/fing -r1 -o log,csv,$FING_LOG_FILE,1000 --silent

Add to cron (run every hour):

0 * * * * /path/to/finglogger.sh

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.