phpipam / phpipam

phpipam development repository
https://phpipam.net
2.21k stars 733 forks source link

phpipam autodiscover devices #3418

Open jako3412 opened 2 years ago

jako3412 commented 2 years ago

Hi all,

Does anyone know if there is an way to auto discover devices, in stead of manually add our network devices into ipam?

Should I be using a json script or something?

jasonwuwrf commented 2 years ago

See https://phpipam.net/news/automatic-host-availability-check/

jako3412 commented 2 years ago

That is host check, not device check

MetziFetzi commented 1 year ago

Hey jako3412, i did this to my Server and it works. Understand this.. https://phpipam.net/news/automatic-host-availability-check/ It do the "Discovery scan: Ping scan" and "Status Update scans: Ping scan" for you, if added to crontab.

use "crontab -e" and add

PHPIPAM update host statuses exery 15 minutes

/15 /usr/local/bin/php /usr/local/www/phpipam/functions/scripts/pingCheck.php /15 /usr/local/bin/php /usr/local/www/phpipam/functions/scripts/discoveryCheck.php

For me, it works, but my i am not sure how to override the IP and Hostname, if DHCP is set the IP to another Device. Maybe i can delete all IP Address in a subnet and scan again?