In NetIM 2.9.0, the Drool library has been upgraded from version 5.1 to 9.44.0. This upgrade requires migration of user-defined custom Drool files to ensure they are correctly loaded into the Drool engine and function properly.
In NetIM 2.9.0, the Drool library has been upgraded from version 5.1 to 9.44.0. This upgrade requires migration of user-defined custom Drool files to ensure they are correctly loaded into the Drool engine and function properly.
To ensure successful migration and functionality of custom Drool rule files, follow these steps:
// instead of #.
# this is commented line// this is commented linematches operator now uses Java Regex format.
line matches "^.*tmsh\s+show\s+net\s+stp\s*$"line matches "^.*tmsh\\s+show\\s+net\\s+stp\\s*$"<InstallDir>/log/PostInstallModification/update<date>.logAdapterServer.slf4j.<date>.logNetworkModelDatabaseService.slf4j.<date>.logAuxiliaryServices.slf4j.<date>.logERROR com.makesys.fs.is.utils.DroolHelper.createKieModuleConfigsCustom Drool Rule File Locations: Custom Drool rule files for SNMP Trap Severity mapping can be found at:
<InstallDir>/lib/xml/rules/snmpTrap/severity/Global/Custom<InstallDir>/lib/xml/rules/snmpTrap/severity/OidSpecific/CustomExample Error: An example of a migration error is shown below:
2024/07/30 11:32:10 - [Thread-175] ERROR com.makesys.fs.is.utils.DroolHelper.createKieModuleConfigs - Kie Filesystem build result [Message [id=1, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=1, column=0 text=[ERR 107] Line 1:0 mismatched input '#' expecting one of the following tokens: '[package, unit, import, global, declare, function, rule, query]'.], Message [id=2, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=2, column=0 text=[ERR 102] Line 2:66 mismatched input '.' in global], Message [id=3, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=4, column=0 text=[ERR 107] Line 4:7 mismatched input 'com' expecting one of the following tokens: '[package, unit, import, global, declare, function, rule, query]'.], Message [id=4, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=14, column=0 text=[ERR 107] Line 14:0 mismatched input '#' expecting one of the following tokens: '[package, unit, import, global, declare, function, rule, query]'.], Message [id=5, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=14, column=0 text=[ERR 102] Line 14:20 mismatched input 'variables'], Message [id=6, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=15, column=0 text=[ERR 102] Line 15:0 mismatched input 'global'], Message [id=7, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=15, column=0 text=[ERR 102] Line 15:30 mismatched input 'evalObj'], Message [id=8, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=17, column=0 text=[ERR 102] Line 17:5 mismatched input '"Global Default Trap OID Based Severity Rule - ciscoLS1010ChassisFailureNotification"'], Message [id=9, kieBase=SnmpTrapGlobalCustomRuleBase, level=ERROR, path=com/makesys/fs/is/polling/snmp/trap/severity/drools/global/custom/mycustom.drl, line=0, column=0 text=Parser returned a null Package]]