<h2>Discovery error - Script error in sensor: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-position: inside;"><li>There is custom SNMP classifier developed for WAP device discovery. For some devices, the system is throwing below error.</li></ul> <p style="padding-left: 80px;"><span style="color: #ff0000;"> Sensor error when processing SNMP - Identity: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!</span><br /><span style="color: #ff0000;">undefined (sys_script_include.778011130a0a0b2500c4595ad1d1d768.script; line 32)</span></p> <ul style="list-style-position: inside;"><li>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.</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-position: inside;"><li>This is part of Problem - PRB1292098</li><li>The root cause is an entry 0.0.0.0/0 for the CI on <span style="text-decoration: underline;">dscy_route_interface</span> table.</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-position: inside;"><li>In order to resolve this issue, kindly make below changes to the code in '<span style="text-decoration: underline;"><span style="color: #0000ff; text-decoration: underline;">DiscoveryReconciler</span></span>' script include :</li></ul> <p style="padding-left: 80px;">From:</p> <pre style="padding-left: 120px;">var net = new SncIPNetworkV4(eigr.dest_ip_network);<br />var routeInfo = {net: net, sysid: eigr.sys_id + ''};<br />exitRoutesByIface[iface].push(routeInfo);</pre> <p style="padding-left: 80px;">To: (mainly wrapped the above code with an if condition to exclude 0.0.0.0/0 )</p> <pre style="padding-left: 120px;">if(eigr.dest_ip_network != '0.0.0.0/0') {<br />var net = new SncIPNetworkV4(eigr.dest_ip_network);<br />var routeInfo = {net: net, sysid: eigr.sys_id + ''};<br />exitRoutesByIface[iface].push(routeInfo);}</pre> <ul style="list-style-position: inside;"><li><span style="color: #ffffff; background-color: #0000ff;">NOTE</span> - Kindly make the changes on sub production and test the use case multiple times before deploying it to production.</li></ul></section></div></article></div>