Notifications

62 views

Description

  • There is custom SNMP classifier developed for WAP device discovery. For some devices, the system is throwing below error.

Sensor error when processing SNMP - Identity: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!
undefined (sys_script_include.778011130a0a0b2500c4595ad1d1d768.script; line 32)

  • This article will demonstrate on the investigations and probable use cases, hence in future, if a similar error occurs then this can be one of the cause and worth trying to fix.

Cause

  • This is part of Problem - PRB1292098
  • The root cause is an entry 0.0.0.0/0 for the CI on dscy_route_interface table.

Resolution

  • In order to resolve this issue, kindly make below changes to the code in 'DiscoveryReconciler' script include :

From:

var net = new SncIPNetworkV4(eigr.dest_ip_network);
var routeInfo = {net: net, sysid: eigr.sys_id + ''};
exitRoutesByIface[iface].push(routeInfo);

To: (mainly wrapped the above code with an if condition to exclude 0.0.0.0/0 )

if(eigr.dest_ip_network != '0.0.0.0/0') {
var net = new SncIPNetworkV4(eigr.dest_ip_network);
var routeInfo = {net: net, sysid: eigr.sys_id + ''};
exitRoutesByIface[iface].push(routeInfo);}
  • NOTE - Kindly make the changes on sub production and test the use case multiple times before deploying it to production.

Article Information

Last Updated:2020-09-24 04:38:21
Published:2020-09-24