benwa
5 December 2017 15:19
1
For the FDB table on network devices, it would be nice to have an OUI lookup. There is a sanitized OUI database from linuxnet that is updated every Sunday.
Or, if parsing that is lame, this project uses that data and formats it in JSON.
2 Likes
If the lookup is optional and per default, I second that.
Hello
Feature is currently being developped here :
librenms:master
← PipoCanaja:mac_oid
opened 07:47AM - 08 May 21 UTC
This PR is collecting MAC OUI from https://macaddress.io/database/macaddress.io-… db.json and caching them using standard cache mecanism. This occurs during daily.sh.
Values are (currently) cached for 15 days, and refreshed between 7 and 11 days.
No significative impact on loading time can be seen in my installs.
Then, webui can display the vendor aside the mac-address, like so :
![Capture d’écran 2021-05-08 à 09 34 38](https://user-images.githubusercontent.com/38363551/117531121-441a2a80-afe1-11eb-9abd-bd0e720cc87d.png)
Vendor column is hidden by default.
Tooltips are also added on all MacAddress Tables (ARP, FDB, etc), independently of the Vendor column being displayed or not, like so:
![image](https://user-images.githubusercontent.com/38363551/117575126-c3daee80-b0e0-11eb-8320-b96dbca0e232.png)
This is a draft for the moment, we need to define if the caching mecanism (vs database storage) is fine, and the refresh times (I suspect this list to be fairly static so we could increase the refresh interval. )
DO NOT DELETE THE UNDERLYING TEXT
#### Please note
> Please read this information carefully. You can run `./lnms dev:check` to check your code before submitting.
- [x] Have you followed our [code guidelines?](https://docs.librenms.org/Developing/Code-Guidelines/)
- [x] If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply 12842 `
After you are done testing, you can remove the changes with `./scripts/github-remove`.
You need `$config['mac_oui']['enabled'] = true;` to activate the feature or use the WebUI settings :
![Capture d’écran 2021-05-09 à 16 26 21](https://user-images.githubusercontent.com/38363551/117575710-5d0b0480-b0e3-11eb-9bbc-5cba07c88a1c.png)
Feel free to comment and test
Bye