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 Reply