No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-13 14:07:07 +03:00
check_for_new_devices.sh Fix error with command line arguments for MySQL user and password 2015-09-26 18:01:27 +02:00
LICENSE Added license file 2015-09-27 16:39:25 +02:00
README.md Update readme 2026-10-13 14:07:07 +03:00

check_for_new_devices.sh

Description: Check the local network for new devices and keep track of their IPs in a MySQL database. If a new device is found and a recipient for alerts is indicated, the script will send a mail to the recipient with the details of the new device.

Requirements:

  • A MySQL server.
  • arp-scan (will be installed if is a Debian or RedHat based Linux distribution).
  • MySQL client (will be installed if is a Debian or RedHat based Linux distribution).

Installation: If the user running the script has granted permissions to create a database, the script will do it. Otherwise create a database and add permissions to the user running the script (using the .my.cnf file in the home folder) and the script will do the rest. Main (latest) code in https://repos.susurrando.com/adelgado/check_for_new_devices.sh