newdevice: Updated DCN serial/hardware/version detection #5785

This commit is contained in:
David Bell
2017-02-06 22:40:34 +00:00
committed by Neil Lathwood
parent a98bfdb6fb
commit 37b84f36d3
+3 -5
View File
@@ -23,8 +23,6 @@
* @author Neil Lathwood <[email protected]>
*/
preg_match('/([\w-]+) Device, .* SoftWare Version ([\w\.\(\)]+) .* Serial No.:([\w]+) .*/', $poll_device['sysDescr'], $match);
$hardware = $match[1];
$version = $match[2];
$serial = $match[3];
$hardware = trim(snmp_get($device, '.1.3.6.1.4.1.6339.100.25.1.1.1.0', '-OQv'), '"');
$version = trim(snmp_get($device, '.1.3.6.1.4.1.6339.100.25.1.1.2.0', '-OQv'), '"');
$serial = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-OQv'), '"');