mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -358,15 +358,6 @@ if ($options['f'] === 'peeringdb') {
|
||||
}
|
||||
}
|
||||
|
||||
if ($options['f'] === 'mac_oui') {
|
||||
$lock = Cache::lock('vendor_oui_db', 86000);
|
||||
if ($lock->get()) {
|
||||
$res = mac_oui_to_database();
|
||||
$lock->release();
|
||||
exit($res);
|
||||
}
|
||||
}
|
||||
|
||||
if ($options['f'] === 'refresh_os_cache') {
|
||||
echo 'Clearing OS cache' . PHP_EOL;
|
||||
if (is_file(Config::get('install_dir') . '/cache/os_defs.cache')) {
|
||||
|
||||
Reference in New Issue
Block a user