. * * @link https://www.librenms.org * * @copyright 2018 Tony Murray * @author Tony Murray */ namespace LibreNMS\OS; use App\Models\Device; class Ftos extends Dnos { public function discoverOS(Device $device): void { parent::discoverOS($device); // yaml $device = $this->getDevice(); $device->hardware = $this->getHardware(); } protected function getHardware() { $hardware = [ '.1.3.6.1.4.1.6027.1.1.1' => 'E1200', '.1.3.6.1.4.1.6027.1.1.2' => 'E600', '.1.3.6.1.4.1.6027.1.1.3' => 'E300', '.1.3.6.1.4.1.6027.1.1.4' => 'E610', '.1.3.6.1.4.1.6027.1.1.5' => 'E1200i', '.1.3.6.1.4.1.6027.1.2.1' => 'C300', '.1.3.6.1.4.1.6027.1.2.2' => 'C150', '.1.3.6.1.4.1.6027.1.3.1' => 'S50', '.1.3.6.1.4.1.6027.1.3.2' => 'S50E', '.1.3.6.1.4.1.6027.1.3.3' => 'S50V', '.1.3.6.1.4.1.6027.1.3.4' => 'S25P-AC', '.1.3.6.1.4.1.6027.1.3.5' => 'S2410CP', '.1.3.6.1.4.1.6027.1.3.6' => 'S2410P', '.1.3.6.1.4.1.6027.1.3.7' => 'S50N-AC', '.1.3.6.1.4.1.6027.1.3.8' => 'S50N-DC', '.1.3.6.1.4.1.6027.1.3.9' => 'S25P-DC', '.1.3.6.1.4.1.6027.1.3.10' => 'S25V', '.1.3.6.1.4.1.6027.1.3.11' => 'S25N', ]; return $hardware[$this->getDevice()->sysObjectID] ?? null; } }