-
Notifications
You must be signed in to change notification settings - Fork 2
/
bp_agent.json
429 lines (426 loc) · 10.9 KB
/
bp_agent.json
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
{
"Mdat": [{
"name": "name",
"type": "STR",
"value": "bp_agent",
"description": "The human-readable name of the ADM."
},
{
"name": "enum",
"type": "INT",
"value": 2
},
{
"name": "namespace",
"type": "STR",
"value": "DTN/bp_agent",
"description": "The namespace of the ADM."
},
{
"name": "version",
"type": "STR",
"value": "v0.1",
"description": "The version of the ADM"
},
{
"name": "organization",
"type": "STR",
"value": "JHUAPL",
"description": "The name of the issuing organization of the ADM."
}
],
"Edd": [{
"name": "bp_node_id",
"type": "STR",
"description": "The node administration endpoint"
},
{
"name": "bp_node_version",
"type": "STR",
"description": "The latest version of the BP supported by this node"
},
{
"name": "available_storage",
"type": "UVAST",
"description": "Bytes available for bundle storage"
},
{
"name": "last_reset_time",
"type": "UVAST",
"description": "The last time that BP counters were reset, either due to execution of a reset control or a restart of the node itself"
},
{
"name": "num_registrations",
"type": "UINT",
"description": "number of registrations"
},
{
"name": "num_pend_fwd",
"type": "UVAST",
"description": "number of bundles pending forwarding"
},
{
"name": "num_pend_dis",
"type": "UVAST",
"description": "number of bundles awaiting dispatch"
},
{
"name": "num_in_cust",
"type": "UVAST",
"description": "number of bundles"
},
{
"name": "num_pend_reassembly",
"type": "UVAST",
"description": "number of bundles pending reassembly"
},
{
"name": "bundles_by_priority",
"type": "UVAST",
"parmspec": [{
"type": "UINT",
"name": "mask"
}],
"description": "number of bundles for the given priority. Priority is given as a priority mask where Bulk=0x1, normal=0x2, express=0x4. Any bundles matching any of the masked priorities will be included in the returned count"
},
{
"name": "bytes_by_priority",
"type": "UVAST",
"parmspec": [{
"type": "UINT",
"name": "mask"
}],
"description": "number of bytes of the given priority. Priority is given as a priority mask where bulk=0x1, normal=0x2, express=0x4. Any bundles matching any of the masked priorities will be included in the returned count."
},
{
"name": "src_bundles_by_priority",
"type": "UVAST",
"parmspec": [{
"type": "UINT",
"name": "mask"
}],
"description": "number of bundles sourced by this node of the given priority. Priority is given as a priority mask where bulk=0x1, normal=0x2, express=0x4. Any bundles sourced by this node and matching any of the masked priorities will be included in the returned count."
},
{
"name": "src_bytes_by_priority",
"type": "UVAST",
"parmspec": [{
"type": "UINT",
"name": "mask"
}],
"description": "number of bytes sourced by this node of the given priority. Priority is given as a priority mask where bulk=0x1, normal=0x2, express=0x4. Any bundles sourced by this node and matching any of the masked priorities will be included in the returned count"
},
{
"name": "num_fragmented_bundles",
"type": "UVAST",
"description": "number of fragmented bundles"
},
{
"name": "num_fragments_produced",
"type": "UVAST",
"description": "number of bundles with fragmentary payloads produced by this node"
},
{
"name": "num_failed_by_reason",
"type": "UVAST",
"parmspec": [{
"type": "UINT",
"name": "mask"
}],
"description": "number of bundles failed for any of the given reasons. (noInfo=0x1, Expired=0x2, UniFwd=0x4, Cancelled=0x8, NoStorage=0x10, BadEID=0x20, NoRoute=0x40, NoContact=0x80, BadBlock=0x100)"
},
{
"name": "num_bundles_deleted",
"type": "UVAST",
"description": "number of bundles deleted by this node"
},
{
"name": "failed_custody_bundles",
"type": "UVAST",
"description": "number of bundle fails at this node"
},
{
"name": "failed_custody_bytes",
"type": "UVAST",
"description": "number bytes of fails at this node"
},
{
"name": "failed_forward_bundles",
"type": "UVAST",
"description": "number bundles not forwarded by this node"
},
{
"name": "failed_forward_bytes",
"type": "UVAST",
"description": "number of bytes not forwaded by this node"
},
{
"name": "abandoned_bundles",
"type": "UVAST",
"description": "number of bundles abandoned by this node"
},
{
"name": "abandoned_bytes",
"type": "UVAST",
"description": "number of bytes abandoned by this node"
},
{
"name": "discarded_bundles",
"type": "UVAST",
"description": "number of bundles discarded by this node"
},
{
"name": "discarded_bytes",
"type": "UVAST",
"description": "number of bytes discarded by this node"
},
{
"name": "endpoint_names",
"type": "STR",
"description": "CSV list of endpoint names for this node"
},
{
"name": "endpoint_active",
"type": "UINT",
"parmspec": [{
"type": "STR",
"name": "endpoint_name"
}],
"description": "is the given endpoint active? (0=no)"
},
{
"name": "endpoint_singleton",
"type": "UINT",
"parmspec": [{
"type": "STR",
"name": "endpoint_name"
}],
"description": "is the given endpoint singleton? (0=no)"
},
{
"name": "endpoint_policy",
"type": "UINT",
"parmspec": [{
"type": "STR",
"name": "endpoint_name"
}],
"description": "Does the endpoint abandon on fail (0=no)"
}
],
"Rptt": [{
"name": "full_report",
"definition": [
{
"ns": "DTN/bp_agent",
"nm": "Mdat.name"
},
{
"ns": "DTN/bp_agent",
"nm": "Mdat.version"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bp_node_id"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bp_node_version"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.available_storage"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.last_reset_time"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_registrations"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_pend_fwd"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_pend_dis"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_in_cust"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_pend_reassembly"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bundles_by_priority(1)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bundles_by_priority(2)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bundles_by_priority(4)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bytes_by_priority(1)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bytes_by_priority(2)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.bytes_by_priority(4)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bundles_by_priority(1)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bundles_by_priority(2)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bundles_by_priority(4)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bytes_by_priority(1)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bytes_by_priority(2)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.src_bytes_by_priority(4)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_fragmented_bundles"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_fragments_produced"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(1)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(2)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(4)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(8)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(16)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(32)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(64)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(128)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_failed_by_reason(256)"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.num_bundles_deleted"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.failed_custody_bundles"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.failed_custody_bytes"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.failed_forward_bundles"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.failed_forward_bytes"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.abandoned_bundles"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.discarded_bundles"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.discarded_bytes"
},
{
"ns": "DTN/bp_agent",
"nm": "Edd.endpoint_names"
}
],
"description": "This is all known meta-data, EDD, and VAR values known by the agent."
},
{
"name": "endpoint_report",
"parmspec": [{
"type": "STR",
"name": "endpoint_id"
}],
"definition": [{
"ns": "DTN/bp_agent",
"nm": "edd.endpoint_active",
"ap": [{
"type": "ParmName",
"value": "endpoint_id"
}]
},
{
"ns": "DTN/bp_agent",
"nm": "edd.endpoint_singleton",
"ap": [{
"type": "ParmName",
"value": "endpoint_id"
}]
},
{
"ns": "DTN/bp_agent",
"nm": "edd.endpoint_policy",
"ap": [{
"type": "ParmName",
"value": "endpoint_id"
}]
}
],
"description": "This is all known endpoint information"
}
],
"Ctrl": [{
"name": "reset_all_counts",
"description": "This control causes the Agent to reset all counts associated with bundle or byte statistics and to set the last reset time of the BP primitive data to the time when the control was run"
}]
}