-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.xml
87 lines (84 loc) · 3.02 KB
/
rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<Rules>
<AnalyzeRules name="Failover">
<variable index="0">Current Card Group</variable>
<variable index="1">Last Requested Card Group</variable>
<variable index="2">Slot id</variable>
<condition>(Variable['0'] != Variable['1'])</condition>
<!--Finding the "Failed Node" using "Slot id" value.
Node id is available in 7th nibble of "Slot id" as indexed by 1 -->
<evaluation index="3">((Variable['2'] & 0x000000F0) >> 4) - 1</evaluation>
<evaluation index="4">(Variable['2'] % 16)</evaluation>
<OutputPrint>
<Line>
<Message>Clock card failover details</Message>
</Line>
<Line/>
<Line>
<Message>Failed Node: </Message>
<ValueIndex>3</ValueIndex>
</Line>
<Line>
<Message>Failed card: OSC-</Message>
<ValueIndex>4</ValueIndex>
</Line>
</OutputPrint>
</AnalyzeRules>
<!--AnalyzeRules name="Wire error">
<variable index="0">CP Reg 1020019</variable>
<condition>(Variable['0'] & 0xA0000000 == 1)</condition>
<variable index="1">CP HUID</variable>
<OutputPrint>
<Line/>
<Line>
<Message>Processor with HUID: </Message>
<ValueIndex>1</ValueIndex>
<Message> switched over</Message>
</Line>
<Line/>
</OutputPrint>
</AnalyzeRules-->
<AnalyzeRules name="Power failure">
<variable index="0" type="s">Power status</variable>
<condition>(Variable['0'] == 'Power failure')</condition>
<variable index="1">Slot id</variable>
<!--Finding the "Failed Node" using "Slot id" value.
Node id is available in 7th nibble of "Slot id" as indexed by 1 -->
<evaluation index="2">((Variable['1'] & 0x000000F0) >> 4) - 1</evaluation>
<evaluation index="3">(Variable['1'] % 16)</evaluation>
<OutputPrint>
<Line/>
<Line>
<Message>Power failure detetcted</Message>
</Line>
<Line>
<Message>Failed Node: </Message>
<ValueIndex>2</ValueIndex>
</Line>
<Line>
<Message>Failed card: OSC-</Message>
<ValueIndex>3</ValueIndex>
</Line>
</OutputPrint>
</AnalyzeRules>
<AnalyzeRules name="PLL loss of lock">
<variable index="0">PLL register value 4</variable>
<condition>((Variable['0'] & 0x1) == 1)</condition>
<variable index="1">Slot id</variable>
<!-- Storing this value as string, to print complete 32 bit value-->
<variable index="2" type="s">PLL register value 4</variable>
<OutputPrint>
<Line>
<Message>PLL unlock detected</Message>
</Line>
<Line>
<Message>Slot id: </Message>
<ValueIndex>1</ValueIndex>
</Line>
<Line>
<Message>PLL register data: </Message>
<ValueIndex>2</ValueIndex>
</Line>
</OutputPrint>
</AnalyzeRules>
</Rules>