mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3535 from nwautomator/issue-3534
Add inventory support for Alcatel-Lucent SR devices
This commit is contained in:
@@ -10,6 +10,11 @@ if ($config['enable_inventory']) {
|
||||
echo ' jnxBoxAnatomy';
|
||||
$entity_array = snmpwalk_cache_oid($device, 'jnxBoxAnatomy', $entity_array, 'JUNIPER-MIB');
|
||||
}
|
||||
elseif ($device['os'] == 'timos') {
|
||||
$entity_array = array();
|
||||
echo 'tmnxHwObjs';
|
||||
$entity_array = snmpwalk_cache_multi_oid($device, 'tmnxHwObjs', $entity_array, 'TIMETRA-CHASSIS-MIB', '+'.$config['mib_dir'].'/aos:'.$config['mib_dir']);
|
||||
}
|
||||
else {
|
||||
$entity_array = array();
|
||||
echo ' entPhysicalEntry';
|
||||
@@ -39,7 +44,25 @@ if ($config['enable_inventory']) {
|
||||
$entPhysicalAssetID = $entry['entPhysicalAssetID'];
|
||||
// fix for issue 1865, $entPhysicalIndex, as it contains a quad dotted number on newer Junipers
|
||||
// using str_replace to remove all dots should fix this even if it changes in future
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
}
|
||||
elseif ($device['os'] == 'timos') {
|
||||
$entPhysicalDescr = $entry['tmnxCardTypeDescription'];
|
||||
$entPhysicalContainedIn = $entry['tmnxHwContainedIn'];
|
||||
$entPhysicalClass = $entry['tmnxHwClass'];
|
||||
$entPhysicalName = $entry['tmnxCardTypeName'];
|
||||
$entPhysicalSerialNum = $entry['tmnxHwSerialNumber'];
|
||||
$entPhysicalModelName = $entry['tmnxHwMfgBoardNumber'];
|
||||
$entPhysicalMfgName = $entry['tmnxHwMfgBoardNumber'];
|
||||
$entPhysicalVendorType = $entry['tmnxCardTypeName'];
|
||||
$entPhysicalParentRelPos = $entry['tmnxHwParentRelPos'];
|
||||
$entPhysicalHardwareRev = '1.0';
|
||||
$entPhysicalFirmwareRev = $entry['tmnxHwBootCodeVersion'];
|
||||
$entPhysicalSoftwareRev = $entry['tmnxHwBootCodeVersion'];
|
||||
$entPhysicalIsFRU = $entry['tmnxHwIsFRU'];
|
||||
$entPhysicalAlias = $entry['tmnxHwAlias'];
|
||||
$entPhysicalAssetID = $entry['tmnxHwAssetID'];
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
}
|
||||
else {
|
||||
$entPhysicalDescr = $entry['entPhysicalDescr'];
|
||||
|
||||
Reference in New Issue
Block a user