new device: Added detection for new dasan device, and fixed the poll for serial n… (#5713)

* Added detection for new dasan device, and fixed the poll for serial number

* Actually add new files to commit...
This commit is contained in:
David Bell
2017-02-01 20:07:03 +00:00
committed by Neil Lathwood
parent b5a8cb0f5b
commit f76fc5a897
4 changed files with 6 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
list($hardware, $version) = explode(' ', $poll_device['sysDescr'], 2);
$tmp = snmp_get_multi_oid($device, 'dsSerialNumber.0 dsFirmwareVersion', '-OQUs', 'DASAN-SWITCH-MIB:DASAN-PRODUCTS-MIB');
$tmp = snmp_get_multi_oid($device, 'dsSerialNumber.0 dsFirmwareVersion.0', '-OQUs', 'DASAN-SWITCH-MIB:DASAN-PRODUCTS-MIB');
$serial = $tmp['dsSerialNumber.0'];
$version = $tmp['dsFirmwareVersion.0'];