Analyzing Events
Understanding Root Cause Analysis
Root Cause Analysis (RCA) is a fault management feature located in the Live Event Browser that allows you to diagnose trap events and recommend corrective actions. It is accessed by right-clicking an event and selecting Analyze Event from the menu. This feature references a list of rules defined for a device and event type, performs user-defined actions on the device, searches the output of those actions, and highlights if the expected results of the actions are found. The expected results can be used to diagnose the cause of the event and offer suggestions for further action.
Root Cause Analysis helps you analyze the root cause of the
events based on user-defined rules in the /u/wandl/db/config/rca-rules
file. You can define various commands such as SNMP and CLI to query
event specific details or you can define rules to generate an event.
After the rca-rules list is defined, these rules will appear in the
Root Cause Analysis window. You can select and execute one or more
commands in the RCA Rules pane. Selected commands are executed and
the results and status are updated. Figure 2 shows the Root Cause Analysis window and the RCA Rules pane.
Each rule in the rca-rules
file
should be in a single line and in the following format:
<vendor>, <type>, <action>, <expected-result>,
<probable-cause>
RCA Rules Field Explanations:
cisco, juniper, huawei
linkUp, linkDown, jnxVpnPwDown
line protocol is down
. Supports variables such as (ElementName), simple regular expressions,
and logical operators &&
and ||
.RCA Rules Command Results:
<expected-result>
found—Command status is updated as Matched and the matching text is highlighted in the
command result with yellow color.<expected-result>
not found—Command status is updated as Not Matched.<expected-result>
is not defined for the rule—After successful
completion of the command, the status is updated as Executed.RCA Rules General Keywords:
RCA Rules Action Commands:
RCA Rules Conditional Action
Only the action command @cli: or @sh: or @snmp is required in the action field. The labelname:, @match:, and @notmatch: are optional keywords used for conditional action statements. If an action command is not specified, the root cause analysis parser will attempt to identify the type of command although it is recommended to define the action command type.
See also
Analyzing an Event
To analyze an event:
- Select Fault > Live Event Browser.
The Live Event Browser window is displayed. The following figure shows the Live Event Browser window with Analyze Event selected.
Figure 1: Selection for Analyze Event - Select the event, right-click, and select Analyze
Event.
The Root Cause Analysis window is displayed.
- Select an event in the top pane.
- In the RCA Rules pane, select the commands to use to analyze
the event, and then click Analyze.
The commands are executed on the node.
- Expand the command in the RCA Rules pane to display the
results.
Figure 2 shows the Root Cause Analysis window and RCA rules command results.
Figure 2: Root Cause Analysis Results