Files
librenms-librenms/includes/polling/os/ies.inc.php
djamp42 85addc5933 Updated regex for IES os (#10899)
Forgot to update this with the previous PR, this goes along with updated discovery in PR #10897
2019-12-02 22:44:08 +01:00

7 lines
182 B
PHP

<?php
$version = trim(snmp_get($device, 'accessSwitchFWVersion.0', '-OQv', 'ZYXEL-AS-MIB'), '"');
preg_match('/IES(\d)*/', $device['sysDescr'], $matches);
$hardware = $matches[0];