Auto Discovery by ip range and seed file

It would be useful to link one or more external files as a seed file for discovery; the file should contain one ip or dns name per line.
In addition it would be good to have the option to specify an ip-range in the discovery file instead of the subnet because usually just few addresses at the beginning or the end of each subnet are reserved for the network devices.

Try this https://docs.librenms.org/Extensions/Auto-Discovery/#snmp-scan

Do you mean to use snmp-scan.py on every /32 address? Yes, it could be a solution but I thought about a solution embedded into the config.php file such as…
Network:
$config[‘nets’][] = ‘192.168.0.0/24’;

Seed
$config[‘seed’][] = ‘/path/to/seed/file’;

…just an idea

snmp-scan.py without any arguments will scan your $config['nets'] as it says in the docs.

Try this:

cat ips.txt | xargs ./snmp-scan.py

1 Like