. * * @link https://www.librenms.org * * @copyright 2021 Tony Murray * @author Tony Murray */ namespace LibreNMS\OS; use App\Models\Device; use LibreNMS\Interfaces\Discovery\OSDiscovery; use LibreNMS\OS; use LibreNMS\Util\StringHelpers; class Areca extends OS implements OSDiscovery { public function discoverOS(Device $device): void { parent::discoverOS($device); //yaml // Sometimes firmware outputs serial as hex-string if (StringHelpers::isHex($device->serial)) { $device->serial = StringHelpers::hexToAscii($device->serial, ' '); } } }