Issue Polling Cisco NCS-5500
Closed this issue · 0 comments
We see successful queries for teh sysDescr and the sysObjectID and then an error in the Cisco module.
I commented out line 100 and set the variable statically and IXP Manager was able to read all the interfaces.
Here are the return values from the NCS-5500
xxxxx@ixpmgr:/srv/ixpmanager/storage/logs$ snmpget -c XXXXXXX -v 2c xx.xx.xx.xx .1.3.6.1.2.1.1.1.0
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS XR Software (NCS-5500), Version 7.3.2 Copyright (c) 2013-2021 by Cisco Systems, Inc."
xx@ixpmgr:/srv/ixpmanager/storage/logs$ snmpget -c xxxxxxx -v 2c xx.xx.xx.xx .1.3.6.1.2.1.1.2.0
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.9.1.2350
[2022-12-06 14:49:21] production.ERROR: Undefined array key 1
{"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined
array key 1 at /srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/Platforms/vendor_cisco.php:100)
[stacktrace]
#0 /srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/Platforms/vendor_cisco.php(100):
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/Platform.php(133):
include('...')
#2 /srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/Platform.php(107):
OSS_SNMP\Platform->parse()
#3 /srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/SNMP.php(964):
OSS_SNMP\Platform->__construct()
#4 /srv/ixpmanager/app/Models/Switcher.php(296): OSS_SNMP\SNMP->getPlatform()
#5 /srv/ixpmanager/app/Http/Controllers/Switches/SwitchPortController.php(539):
IXP\Models\Switcher->snmpPoll()
#6 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54):
IXP\Http\Controllers\Switches\SwitchPortController->listOpStatus()
#7 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45):
Illuminate\Routing\Controller->callAction()
#8 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Route.php(262):
Illuminate\Routing\ControllerDispatcher->dispatch()
#9 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205):
Illuminate\Routing\Route->runController()
#10 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(721):
Illuminate\Routing\Route->run()
#11 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128):
Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#12 /srv/ixpmanager/app/Utils/Http/Controllers/Frontend/EloquentController.php(188):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#13 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
IXP\Utils\Http\Controllers\Frontend\EloquentController->IXP\Utils\Http\Controllers\Frontend\{closure}()
#14 /srv/ixpmanager/app/Http/Middleware/Google2FA.php(79):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#15 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
IXP\Http\Middleware\Google2FA->handle()
#16 /srv/ixpmanager/app/Http/Middleware/Eloquent2Frontend.php(72):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#17 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
IXP\Http\Middleware\Eloquent2Frontend->handle()
#18 /srv/ixpmanager/app/Http/Middleware/ControllerEnabled.php(94):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#19 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
IXP\Http\Middleware\ControllerEnabled->handle()
#20 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#21 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Routing\Middleware\SubstituteBindings->handle()
#22 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#23 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
#24 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#25 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#26 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#27 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64):
Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
#28 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Session\Middleware\StartSession->handle()
#29 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#30 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#31 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#32 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Cookie\Middleware\EncryptCookies->handle()
#33 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#34 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(723):
Illuminate\Pipeline\Pipeline->then()
#35 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(698):
Illuminate\Routing\Router->runRouteWithinStack()
#36 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662):
Illuminate\Routing\Router->runRoute()
#37 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(651):
Illuminate\Routing\Router->dispatchToRoute()
#38 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167):
Illuminate\Routing\Router->dispatch()
#39 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128):
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#40 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#41 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31):
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#42 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
#43 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#44 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40):
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#45 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
#46 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#47 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#48 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#49 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#50 /srv/ixpmanager/vendor/fruitcake/laravel-cors/src/HandleCors.php(38):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#51 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Fruitcake\Cors\HandleCors->handle()
#52 /srv/ixpmanager/vendor/fideloper/proxy/src/TrustProxies.php(57):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#53 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167):
Fideloper\Proxy\TrustProxies->handle()
#54 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#55 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142):
Illuminate\Pipeline\Pipeline->then()
#56 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111):
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#57 /srv/ixpmanager/public/index.php(89):
Illuminate\Foundation\Http\Kernel->handle()
#58 {main}