Update timos.inc.php (#11040)

Corrected th Nokia Service Routers (SAR) tmnxChassisType.1 to index to tmnxChassisTypeName.
This commit is contained in:
craig-nokia
2020-01-17 19:52:40 +10:00
committed by PipoCanaja
parent 10b42137e9
commit f25e3efa53

View File

@ -10,10 +10,9 @@ $versionModifier = trim(snmp_get($device, '1.3.6.1.4.1.6527.3.1.2.1.1.7.0', '-OQ
$version = 'v' . $majorVersion . '.' . $minorVersion . '.' . $versionModifier;
$chassis_type_name_array = snmpwalk_cache_oid($device, 'tmnxChassisTypeName', $a = array(), 'TIMETRA-CHASSIS-MIB', null, '-OQUs');
$hardware_array = reset($chassis_type_name_array);
$hardware = end($hardware_array);
$hardwareindex = snmp_get($device, 'tmnxChassisType.1', '-Ovq', 'TIMETRA-CHASSIS-MIB');
$tmnxChassisTypeName = 'tmnxChassisTypeName' . '.' . $hardwareindex;
$hardware = snmp_get($device, $tmnxChassisTypeName, '-Ovq', 'TIMETRA-CHASSIS-MIB');
$props = snmpwalk_cache_numerical_oid($device, 'tmnxHwEntry.7', $props = array(), 'TIMETRA-CHASSIS-MIB', null, '-OQne');
foreach ($props as $p) {