MAC Vendor OUI use scheduler (#15187)

* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true
Improve scheduler validation handle non-standard install directories and systems without systemd
Add index to table to improve speed and improve mac->vendor lookup speed
Scheduled weekly with random wait to prevent stampeding herd issues for upstream
drop oui update from daily

* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true

* Lint fixes and better prefix detection

* update schema file
This commit is contained in:
Tony Murray
2023-08-03 19:29:30 -05:00
committed by GitHub
parent 5a56e9081e
commit 12f8bb2040
19 changed files with 273 additions and 135 deletions
+18
View File
@@ -157,6 +157,24 @@ return [
'optionValue' => 'Selected :option is invalid. Should be one of: :values',
],
],
'maintenance:fetch-ouis' => [
'description' => 'Fetch MAC OUIs and cache them to display vendor names for MAC addresses',
'options' => [
'force' => 'Ignore any settings or locks that prevent the command from being run',
'wait' => 'Wait a random amount of time, used by the scedueler to prevent server strain',
],
'disabled' => 'Mac OUI integration disabled (:setting)',
'enable_question' => 'Enable Mac OUI integration and scheduled fetching?',
'recently_fetched' => 'MAC OUI Database fetched recently, skipping update.',
'waiting' => 'Waiting :minutes minute before attempting MAC OUI update|Waiting :minutes minutes before attempting MAC OUI update',
'starting' => 'Storing Mac OUI in the database',
'downloading' => 'Downloading',
'processing' => 'Processing CSV',
'saving' => 'Saving results',
'success' => 'Successfully updated OUI/Vendor mappings. :count modified OUI|Successfully updated. :count modified OUIs',
'error' => 'Error processing Mac OUI:',
'vendor_update' => 'Adding OUI :oui for :vendor',
],
'plugin:disable' => [
'description' => 'Disable all plugins with the given name',
'arguments' => [