From 049fd54bebed8b973818002c840d46b97799b1c9 Mon Sep 17 00:00:00 2001 From: vitalisator Date: Sat, 4 Jul 2015 23:22:26 +0200 Subject: [PATCH] Add support fo PBN CPE device" Fixes #1382 --- includes/discovery/os/pbn.inc.php | 5 ++--- includes/polling/os/pbn.inc.php | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/discovery/os/pbn.inc.php b/includes/discovery/os/pbn.inc.php index d8930fbb9..d2a5a805c 100644 --- a/includes/discovery/os/pbn.inc.php +++ b/includes/discovery/os/pbn.inc.php @@ -1,9 +1,8 @@ diff --git a/includes/polling/os/pbn.inc.php b/includes/polling/os/pbn.inc.php index aae6675f2..d498dddf8 100644 --- a/includes/polling/os/pbn.inc.php +++ b/includes/polling/os/pbn.inc.php @@ -3,6 +3,13 @@ if (preg_match('/^Pacific Broadband Networks .+\n.+ Version ([^,]+), .+\n.+\n.+\nSerial num:([^,]+), .+/', $poll_device['sysDescr'], $regexp_result)) { $version = $regexp_result[1]; $serial = $regexp_result[2]; + +# for PBN CPE 120/121 +} elseif (strstr(snmp_get($device, "SNMPv2-MIB::sysObjectID.0", "-Ovqn"), ".1.3.6.1.4.1.11606.24.1.1.10")) { + $version = snmp_get($device, "1.3.6.1.4.1.11606.24.1.1.6.0", "-Ovq"); + $hardware = snmp_get($device, "1.3.6.1.4.1.11606.24.1.1.7.0", "-Ovq"); + $features = snmp_get($device, "1.3.6.1.4.1.11606.24.1.1.10.0", "-Ovq"); + $serial = snmp_get($device, "1.3.6.1.4.1.11606.24.1.1.4.0", "-Ovq"); } ?>