Add inventory support for Alcatel-Lucent SR devices #3535

Merged
merged 3 commits into from May 26, 2016

Projects

None yet

3 participants

@nwautomator
Contributor

This adds basic inventory gathering support for Alcatel-Lucent (now Nokia) service router (SR) devices.

nwautomator added some commits May 18, 2016
@nwautomator nwautomator add basic inventory support for Alcatel-Lucent SR devices 7522314
@nwautomator nwautomator remove debug print statement and submit this as a PR for Alcatel-Luce…
…nt inventory support
94b2fcb
@laf laf commented on an outdated diff May 19, 2016
includes/discovery/entity-physical.inc.php
+ $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);
@laf
laf May 19, 2016 Member

Extremely minor but can you fix the indentation on this pls.

@laf laf commented on an outdated diff May 19, 2016
includes/discovery/entity-physical.inc.php
@@ -10,6 +10,11 @@
echo ' jnxBoxAnatomy';
$entity_array = snmpwalk_cache_oid($device, 'jnxBoxAnatomy', $entity_array, 'JUNIPER-MIB');
}
+ elseif ($device['os'] == 'timos') {
+ $entity_array = array();
@laf
laf May 19, 2016 Member

Extremely minor but can you fix the indentation on this pls.

@nwautomator nwautomator fix indentation per request
cf39436
@laf laf changed the title from Issue 3534 to Add inventory support for Alcatel-Lucent SR devices May 26, 2016
@laf laf merged commit a1f85c3 into librenms:master May 26, 2016

1 of 2 checks passed

Auto-Deploy Triggered
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment