mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added support for LLDP on ALCATEL/NOKIA SR OS (#9298)
* add support for LLDP on ALCATEL/NOKIA SR OS * add dest data for discovery-protocols
This commit is contained in:
committed by
Neil Lathwood
parent
f8f1540f38
commit
fcadd3ca65
@ -154,6 +154,39 @@ if (($device['os'] == 'routeros') && Config::get('autodiscovery.xdp') === true)
|
||||
}
|
||||
}//end foreach
|
||||
echo PHP_EOL;
|
||||
} elseif (($device['os'] == 'timos') && Config::get('autodiscovery.xdp') === true) {
|
||||
echo ' TIMETRA-LLDP-MIB: ';
|
||||
$lldp_array = snmpwalk_group($device, 'tmnxLldpRemoteSystemsData', 'TIMETRA-LLDP-MIB');
|
||||
foreach ($lldp_array as $key => $lldp) {
|
||||
$ifIndex = key($lldp['tmnxLldpRemPortId']);
|
||||
$MacIndex = key($lldp['tmnxLldpRemPortId'][$ifIndex]);
|
||||
$RemIndex = key($lldp['tmnxLldpRemPortId'][$ifIndex][$MacIndex]);
|
||||
$interface = get_port_by_ifIndex($device['device_id'], $ifIndex);
|
||||
$remote_device_id = find_device_id($lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex]);
|
||||
|
||||
if (!$remote_device_id &&
|
||||
is_valid_hostname($lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex]) &&
|
||||
!can_skip_discovery($lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex], $lldp['tmnxLldpRemSysDesc'][$ifIndex][$MacIndex][$RemIndex])
|
||||
) {
|
||||
$remote_device_id = discover_new_device($lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex], $device, 'LLDP', $interface);
|
||||
}
|
||||
|
||||
if ($interface['port_id'] && $lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex] && $lldp['tmnxLldpRemPortId'][$ifIndex][$MacIndex][$RemIndex]) {
|
||||
$remote_port_id = find_port_id($lldp['tmnxLldpRemPortDesc'][$ifIndex][$MacIndex][$RemIndex], $lldp['tmnxLldpRemPortId'][$ifIndex][$MacIndex][$RemIndex], $remote_device_id);
|
||||
discover_link(
|
||||
$interface['port_id'],
|
||||
'lldp',
|
||||
$remote_port_id,
|
||||
$lldp['tmnxLldpRemSysName'][$ifIndex][$MacIndex][$RemIndex],
|
||||
$lldp['tmnxLldpRemPortId'][$ifIndex][$MacIndex][$RemIndex],
|
||||
null,
|
||||
$lldp['tmnxLldpRemSysDesc'][$ifIndex][$MacIndex][$RemIndex],
|
||||
$device['device_id'],
|
||||
$remote_device_id
|
||||
);
|
||||
}
|
||||
}//end foreach
|
||||
echo PHP_EOL;
|
||||
} elseif (Config::get('autodiscovery.xdp') === true) {
|
||||
echo ' LLDP-MIB: ';
|
||||
$lldp_array = snmpwalk_group($device, 'lldpRemTable', 'LLDP-MIB', 3);
|
||||
|
1422
mibs/nokia/TIMETRA-LLDP-MIB
Normal file
1422
mibs/nokia/TIMETRA-LLDP-MIB
Normal file
File diff suppressed because it is too large
Load Diff
@ -85,4 +85,40 @@
|
||||
1.3.6.1.4.1.6527.3.1.2.2.1.8.1.19.1.201327105|2|-1
|
||||
1.3.6.1.4.1.6527.3.1.2.2.1.8.1.19.1.201327106|2|-1
|
||||
1.3.6.1.4.1.6527.3.1.2.2.1.8.1.19.1.201327107|2|-1
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.4.13890.35717120.1.1|2|4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.4.14402.69238784.1.1|2|4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.4.58355808.35684352.1.2|2|4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.5.13890.35717120.1.1|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.5.14402.69238784.1.1|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.5.58355808.35684352.1.2|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.6.13890.35717120.1.1|2|7
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.6.14402.69238784.1.1|2|7
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.6.58355808.35684352.1.2|2|7
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.7.13890.35717120.1.1|4|35717120
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.7.14402.69238784.1.1|4|102793216
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.7.58355808.35684352.1.2|4|35717120
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.8.13890.35717120.1.1|4|1/1/2, 10-Gig Ethernet
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.8.14402.69238784.1.1|4|3/1/1, 10-Gig Ethernet
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.8.58355808.35684352.1.2|4|1/1/2, 10-Gig Ethernet
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.9.13890.35717120.1.1|4|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.9.14402.69238784.1.1|4|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.9.58355808.35684352.1.2|4|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.10.13890.35717120.1.1|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.10.14402.69238784.1.1|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.10.58355808.35684352.1.2|4x|<private>
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.11.13890.35717120.1.1|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.11.14402.69238784.1.1|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.11.58355808.35684352.1.2|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.12.13890.35717120.1.1|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.12.14402.69238784.1.1|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.1.1.12.58355808.35684352.1.2|4|28 00 2 4
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.3.13890.35717120.1.1.1.4.172.17.0.1|2|2
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.3.14402.69238784.1.1.1.4.172.17.2.0|2|2
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.3.58355808.35684352.1.2.1.4.172.17.0.3|2|2
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.4.13890.35717120.1.1.1.4.172.17.0.1|2|16777216
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.4.14402.69238784.1.1.1.4.172.17.2.0|2|16777216
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.4.58355808.35684352.1.2.1.4.172.17.0.3|2|16777216
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.5.13890.35717120.1.1.1.4.172.17.0.1|6|1.3.6.1.4.1.6527.6.2.1.2.6.1
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.5.14402.69238784.1.1.1.4.172.17.2.0|6|1.3.6.1.4.1.6527.6.2.1.2.6.1
|
||||
1.3.6.1.4.1.6527.3.1.2.59.4.2.1.5.58355808.35684352.1.2.1.4.172.17.0.3|6|1.3.6.1.4.1.6527.1.3.12
|
||||
1.3.6.1.6.3.10.2.1.3.0|2|2139627
|
||||
|
Reference in New Issue
Block a user