Snmp-scan add ping only

I wanted to scan for devices and add them as “ping-only”. I found that snmp-scan.py and addhost.php both have an argument -P but they do different things. I find this quite anoying as it took me almost an hour to find out that snmp-scan.py -P will call addhost.php -b.

As it would break compatibility I think this problem can not easily be changed (if even wanted) to match between the two. Currently there is no way to scan and add as ping-only. I would suggest to add at least --pingonly argument to snmp-scan.py which causes addhost.php -P. This would not break anything. I could provide a PR if it is from interest.

Feedback welcome

If you can write in python then it would be great if you could contribute this feature back to the community?

Done. It’s #13810

1 Like