We are constructing an event procedure with regex to parse out strings from a trap, and generate new events and alarms from the parsed text. We enabled event_disp_error= file in .vnmrc and have output showing this event procedure, but the procedure is not working. Is there further debugging available?
Platform Independent
There may be issue with the variables of the trap and regex unable to parse the proper strings.
There is event variable debugging function "DebugValue()" available to use and it will dump the event variables to the event_disp_file for review.
The following is an example of its use for dumping event variables for event 0xfff00000:
0xfff00000 E 50 P “DebugValue( { S \”event varbind list dump: \” }, GetEventVariableList() )”
Note: It is recommended to not copy and paste the entry above as the KB article may have hidden format characters that would cause the
SS to have parse errors when compiling. If possible manually type out the entry above.
Further details on DebugValue can be found in Spectrum Guides:
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-1/managing-network/event-configuration/how-to-use-procedures-in-event-processing/troubleshooting-event-procedures.html