-
Notifications
You must be signed in to change notification settings - Fork 10
/
test_agent.data.example
287 lines (253 loc) · 4.75 KB
/
test_agent.data.example
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# create resource with empty caps
new {SYSTEM_BLADE,1}
cd {SYSTEM_BLADE,1}
set RptEntry.ResourceCapabilities = RESOURCE
set Visible = TRUE
cd /
# create resource with FRU caps
new {SYSTEM_BLADE,2}
cd {SYSTEM_BLADE,2}
set RptEntry.ResourceCapabilities = RESOURCE | FRU
set Visible = TRUE
cd /
# create resource with HS caps
new {SYSTEM_BLADE,3}
cd {SYSTEM_BLADE,3}
set RptEntry.ResourceCapabilities = RESOURCE | FRU | MANAGED_HOTSWAP
set Visible = TRUE
cd /
## create failed resource
#new {SYSTEM_BLADE,4}
#cd {SYSTEM_BLADE,4}
#set ResourceFailed = TRUE
#set Visible = TRUE
#cd /
# create resource with HS caps but without HS indicator
new {SYSTEM_BLADE,5}
cd {SYSTEM_BLADE,5}
set RptEntry.ResourceCapabilities = RESOURCE | FRU | MANAGED_HOTSWAP
set RptEntry.HotSwapCapabilities = 0
set Visible = TRUE
cd /
# create resource with HS caps and with read-only AI timeout
new {SYSTEM_BLADE,6}
cd {SYSTEM_BLADE,6}
set RptEntry.ResourceCapabilities = RESOURCE | FRU | MANAGED_HOTSWAP
set RptEntry.HotSwapCapabilities = AUTOEXTRACT_READ_ONLY
set Visible = TRUE
cd /
# create just resource
new {SYSTEM_BLADE,7}
cd {SYSTEM_BLADE,7}
set Visible = TRUE
# create log
new log
# create controls
new ctrl-1
cd ctrl-1
set Rdr.CtrlRec.Type = DIGITAL
set Rdr.CtrlRec.Digital.Default = ON
set State.Digital = ON
set Visible = TRUE
cd ..
new ctrl-2
cd ctrl-2
set Rdr.CtrlRec.Type = DISCRETE
set Visible = TRUE
cd ..
new ctrl-3
cd ctrl-3
set Rdr.CtrlRec.Type = ANALOG
set Rdr.CtrlRec.Analog.Min = 0
set Rdr.CtrlRec.Analog.Max = 100
set Rdr.CtrlRec.Analog.Default = 50
set State.Analog = 60
set Visible = TRUE
cd ..
new ctrl-4
cd ctrl-4
set Rdr.CtrlRec.Type = STREAM
set Rdr.CtrlRec.Stream.Default.Stream = BINARY:123456
set State.Stream.Stream = BINARY:654321
set Visible = TRUE
cd ..
new ctrl-5
cd ctrl-5
set Rdr.CtrlRec.Type = TEXT
set Visible = TRUE
cd ..
new ctrl-6
cd ctrl-6
set Rdr.CtrlRec.Type = OEM
set Visible = TRUE
cd ..
# write-only control
new ctrl-7
cd ctrl-7
set Rdr.CtrlRec.WriteOnly = TRUE
set Visible = TRUE
cd ..
# control with read-only mode
new ctrl-8
cd ctrl-8
set Rdr.CtrlRec.DefaultMode.ReadOnly = TRUE
set Visible = TRUE
cd ..
# create sensors
new sen-1
cd sen-1
set Rdr.SensorRec.Category = THRESHOLD
set Visible = TRUE
cd ..
new sen-2
cd sen-2
set Rdr.SensorRec.Category = GENERIC
set Visible = TRUE
cd ..
# sensor without enable control
new sen-3
cd sen-3
set Rdr.SensorRec.EnableCtrl = FALSE
set Visible = TRUE
cd ..
# sensor with READ_ONLY event control
new sen-4
cd sen-4
set Rdr.SensorRec.Category = GENERIC
set Rdr.SensorRec.EventCtrl = READ_ONLY
set Visible = TRUE
cd ..
# sensor with READ_ONLY_MASKS event control
new sen-5
cd sen-5
set Rdr.SensorRec.Category = GENERIC
set Rdr.SensorRec.EventCtrl = READ_ONLY_MASKS
set Visible = TRUE
cd ..
# sensor with asserted state
new sen-6
cd sen-6
set Rdr.SensorRec.Category = GENERIC
set EventState = STATE_05
set Visible = TRUE
cd ..
# sensor with no readable thresholds
new sen-7
cd sen-7
set Rdr.SensorRec.Category = THRESHOLD
set Rdr.SensorRec.ThresholdDefn.ReadThold = 0
set Visible = TRUE
cd ..
# sensor with no writable thresholds
new sen-8
cd sen-8
set Rdr.SensorRec.Category = THRESHOLD
set Rdr.SensorRec.ThresholdDefn.WriteThold = 0
set Visible = TRUE
cd ..
# create RO inventory
new inv-1
cd inv-1
set ReadOnly = TRUE
set Visible = TRUE
# RO Area
new area-1
cd area-1
set ReadOnly = TRUE
# RO Field
new field-1
cd field-1
set ReadOnly = TRUE
cd ..
# RW Field
new field-2
cd field-2
set ReadOnly = FALSE
cd ../../
# RW Area
new area-2
cd area-2
set ReadOnly = FALSE
# RO Field
new field-1
cd field-1
set ReadOnly = TRUE
cd ..
# RW Field
new field-2
cd field-2
set ReadOnly = FALSE
cd ../../../
# create RW inventory
new inv-2
cd inv-2
set ReadOnly = FALSE
set Visible = TRUE
# RO Area
new area-1
cd area-1
set ReadOnly = TRUE
# RO Field
new field-1
cd field-1
set ReadOnly = TRUE
cd ..
# RW Field
new field-2
cd field-2
set ReadOnly = FALSE
cd ../../
# RW Area
new area-2
cd area-2
set ReadOnly = FALSE
# RO Field
new field-1
cd field-1
set ReadOnly = TRUE
cd ..
# RW Field
new field-2
cd field-2
set ReadOnly = FALSE
cd ../../../
# create watchdog
new wdt-0
cd wdt-0
set Visible = TRUE
cd ..
# create annunciator
new ann-1
cd ann-1
set Visible = TRUE
cd ..
# create annunciator with AUTO ReadOnly Mode
new ann-2
cd ann-2
set Rdr.AnnunciatorRec.ModeReadOnly = TRUE
set Mode = AUTO
set Visible = TRUE
cd ..
# create dimi with single test
new dimi-1
cd dimi-1
set Visible = TRUE
new test-0
cd ..
# create fumi with logical bank
new fumi-1
cd fumi-1
set Visible = TRUE
cd ..
# create fumi with explicit banks
new fumi-2
cd fumi-2
set Rdr.FumiRec.Capability = BANKCOPY | TARGET_VERIFY | COMPONENTS | BANKREORDER
new bank-1
new bank-2
new bank-3
new bank-4
new bank-5
set Visible = TRUE
cd ..
cd /