librenms/includes/polling/os/ies.inc.php
2015-07-11 16:12:35 +02:00

7 lines
188 B
PHP

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