mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve some things in PBN OS polling
This commit is contained in:
@@ -7,8 +7,9 @@ if (preg_match('/^Pacific Broadband Networks .+\n.+ Version ([^,]+), .+\n.+\n.+\
|
||||
// for PBN CPE 120/121
|
||||
}
|
||||
else if (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');
|
||||
$version = str_replace(array('"'), '', snmp_get($device, '1.3.6.1.4.1.11606.24.1.1.6.0', '-Ovq'));
|
||||
$hardware = str_replace(array('"'), '', snmp_get($device, '1.3.6.1.4.1.11606.24.1.1.7.0', '-Ovq'));
|
||||
$features = str_replace(array('"'), '', snmp_get($device, '1.3.6.1.4.1.11606.24.1.1.10.0', '-Ovq'));
|
||||
// normalize MAC address (serial)
|
||||
$serial = str_replace(array(' ', ':', '-', '"'), '', strtolower(snmp_get($device, '1.3.6.1.4.1.11606.24.1.1.4.0', '-Ovq')));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user