mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Updated DCN serial/hardware/version detection #5785
This commit is contained in:
committed by
Neil Lathwood
parent
a98bfdb6fb
commit
37b84f36d3
@@ -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'), '"');
|
||||
|
||||
Reference in New Issue
Block a user