Newer
Older
WR-WRPC-MIB DEFINITIONS ::= BEGIN
-- Based on the WR-SWITCH-MIB
-- Adam Wujek, BE-CO-HT, CERN
-- ############################################################################
-- THIS MIB IS ONLY FOR TESTING PURPOSES IT WILL CHANGE!!
-- ############################################################################
-- IMPORTS: Include definitions from other mibs here
IMPORTS
OBJECT-TYPE, Integer32, Unsigned32, Counter32, Counter64,
MODULE-IDENTITY, enterprises FROM SNMPv2-SMI
DisplayString FROM SNMPv2-TC;
wrWrpcMIB MODULE-IDENTITY
LAST-UPDATED "201603081000Z"
ORGANIZATION "CERN"
CONTACT-INFO "postal: BE-CO-HT, CERN, Geneva
email: ht-drivers@cern.ch
"
DESCRIPTION "White Rabbit WRPC internal details
"
REVISION "201604181000Z"
DESCRIPTION
"Create wrpc structure."
REVISION "201603081000Z"
DESCRIPTION
"First revision. For testing purposes only."
cern OBJECT IDENTIFIER ::= { enterprises 96 }
-- Define typical mib nodes
-- we'll prefix everything in this mib with wrpc
wrpcCore OBJECT IDENTIFIER ::= { wrWrpcMIB 1 }
--x wrpcCustom OBJECT IDENTIFIER ::= { wrWrpcMIB 2 }
-- ****************************************************************************
wrpcVersionGroup OBJECT IDENTIFIER ::= { wrpcCore 1 }
wrpcVersionHwType OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The hw type"
::= { wrpcVersionGroup 1 }
wrpcVersionSwVersion OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The software version, as returned from 'git describe' at build time"
::= { wrpcVersionGroup 2 }
wrpcVersionSwBuildBy OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The software build by, as returned from
'git config -get-all user.name' at build time"
::= { wrpcVersionGroup 3 }
wrpcVersionSwBuildDate OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The build time and date of the software"
::= { wrpcVersionGroup 4 }
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
--x wrpcVersionGwVersion OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The version of gateware (FPGA bitstream)"
--x ::= { wrpcVersionGroup 5 }
--x wrpcVersionGwBuild OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The build ID of gateware (FPGA bitstream)"
--x ::= { wrpcVersionGroup 6 }
--x wrpcVersionGwBuildDate OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The build date of gateware (FPGA bitstream)"
--x ::= { wrpcVersionGroup 7 }
--x wrpcVersionGwBuildBy OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The build author of gateware (FPGA bitstream)"
--x ::= { wrpcVersionGroup 8 }
--x wrpcVersionGwCommitId OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The gateware version: commit ID of XXXXXXXXX"
--x ::= { wrpcVersionGroup 9 }
--x wrpcVersionGeneralCoresCommitId OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The gateware version: commit of general-cores"
--x ::= { wrpcVersionGroup 10 }
--x wrpcVersionWrCoresCommitId OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The gateware version: commit of wr-cores"
--x ::= { wrpcVersionGroup 11 }
-- ****************************************************************************
wrpcTimeGroup OBJECT IDENTIFIER ::= { wrpcCore 2 }
wrpcDateTAI OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current time, in TAI seconds"
::= { wrpcTimeGroup 1 }
wrpcDateTAIString OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current TAI time, printed as %y-%m-%d-%H:%M:%S (no time zone)"
::= { wrpcTimeGroup 2 }
wrpcSystemUptime OBJECT-TYPE
SYNTAX Timetics
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"System uptime in hundreds of second"
::= { wrpcTimeGroup 3 }
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
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
-- ****************************************************************************
--x wrpcTemperatureTable OBJECT-TYPE
--x SYNTAX SEQUENCE OF WrpcTemperatureEntry
--x MAX-ACCESS not-accessible
--x STATUS current
--x DESCRIPTION
--x "Information for each mounted partition"
--x ::= { wrpcCore 3 }
--x wrpcTemperatureEntry OBJECT-TYPE
--x SYNTAX WrpcTemperatureEntry
--x MAX-ACCESS not-accessible
--x STATUS current
--x DESCRIPTION
--x "An entry containing partitions' details"
--x INDEX { wrpcTemperatureIndex }
--x ::= { wrpcTemperatureTable 1 }
--x WrpcTemperatureEntry ::=
--x SEQUENCE {
--x wrpcTemperatureIndex Unsigned32,
--x wrpcTemperatureName DisplayString,
--x wrpcTemperatureValue Integer32
--x }
--x wrpcTemperatureIndex OBJECT-TYPE
--x SYNTAX Unsigned32
--x MAX-ACCESS not-accessible
--x STATUS current
--x DESCRIPTION
--x "Index for wrpcTemperatureTable"
--x ::= { wrpcTemperatureEntry 1 }
--x wrpcTemperatureName OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..32))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Temperature sensor's name"
--x ::= { wrpcTemperatureEntry 2 }
--x wrpcTemperatureValue OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Temperature in tenths of a celsius degree of given sensor"
--x ::= { wrpcTemperatureEntry 3 }
-- ****************************************************************************
--x wrpcSpllStatusGroup OBJECT IDENTIFIER ::= { wrpcCore 4 }
--x wrpcSpllMode OBJECT-TYPE
--x SYNTAX INTEGER {
--x na(0),
--x grandmaster(1),
--x master(2),
--x slave(3)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Mode of Soft PLL (values taken from softpll_ng.h)"
--x ::= { wrpcSpllStatusGroup 1 }
--x wrpcSpllIrqCnt OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Number of interrupts in Soft PLL"
--x ::= { wrpcSpllStatusGroup 2 }
--x wrpcSpllSeqState OBJECT-TYPE
--x SYNTAX INTEGER {
--x startExt(1),
--x waitExt(2),
--x startHelper(3),
--x waitHelper(4),
--x startMain(5),
--x waitMain(6),
--x disabled(7),
--x ready(8),
--x clearDacs(9),
--x waitClearDacs(10)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Sequence state of Soft PLL (values taken from file softpll_ng.c in wrpc-sw repo)"
--x ::= { wrpcSpllStatusGroup 3 }
--x wrpcSpllAlignState OBJECT-TYPE
--x SYNTAX INTEGER {
--x extOff(0),
--x start(1),
--x initCsync(2),
--x waitCsync(3),
--x waitSample(4),
--x compensateDelay(5),
--x locked(6),
--x startAlignment(7),
--x startMain(8)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Align state of Soft PLL (values taken from file spll_external.c in wrpc-sw repo)"
--x ::= { wrpcSpllStatusGroup 4 }
--x wrpcSpllHlock OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "HLock in Soft PLL"
--x ::= { wrpcSpllStatusGroup 5 }
--x wrpcSpllMlock OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "MLock at Soft PLL"
--x ::= { wrpcSpllStatusGroup 6 }
--x wrpcSpllHY OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "H_y at Soft PLL"
--x ::= { wrpcSpllStatusGroup 7 }
--x wrpcSpllMY OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "M_y at Soft PLL"
--x ::= { wrpcSpllStatusGroup 8 }
--x wrpcSpllDelCnt OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Del counter at Soft PLL"
--x ::= { wrpcSpllStatusGroup 9 }
-- ****************************************************************************
--x wrpcPtpGroup OBJECT IDENTIFIER ::= { wrpcCore 5 }
--x wrpcPtpGrandmasterID OBJECT-TYPE
--x SYNTAX OCTET STRING (SIZE(8))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The ClockID of the current grandmaster"
--x ::= { wrpcPtpGroup 1 }
--x wrpcPtpOwnID OBJECT-TYPE
--x SYNTAX OCTET STRING (SIZE(8))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The ClockID of this WR device"
--x ::= { wrpcPtpGroup 2 }
--x wrpcPtpMode OBJECT-TYPE
--x SYNTAX INTEGER {
--x unknown(0), ---- same as WRC_MODE macros
--x grandmaster(1),
--x master(2),
--x slave(3)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The mode of this clock"
--x ::= { wrpcPtpGroup 3 }
--x wrpcPtpServoState OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..32))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The servo state if slave"
--x ::= { wrpcPtpGroup 4 }
--x wrpcPtpServoStateN OBJECT-TYPE
--x SYNTAX INTEGER {
--x uninitialized(0),
--x syncNsec(1),
--x syncSec(2),
--x syncPhase(3),
--x trackPhase(4),
--x waitOffsetStable(5)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Numeric representation of servo state"
--x ::= { wrpcPtpGroup 5 }
--x wrpcPtpPhaseTracking OBJECT-TYPE
--x SYNTAX INTEGER {
--x na(0),
--x notTracking(1),
--x tracking(2)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Whether phase tracking is enabled in the servo"
--x ::= { wrpcPtpGroup 6 }
--x wrpcPtpClockOffsetPs OBJECT-TYPE
--x SYNTAX Counter64 ---- integer64
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Current clock offset from master, in picoseconds"
--x ::= { wrpcPtpGroup 7 }
--x wrpcPtpClockOffsetPsHR OBJECT-TYPE
--x SYNTAX Integer32 ---- should be something like gauge32, but with int range
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Human Readable current clock offset from master, in picoseconds with saturation to integer"
--x ::= { wrpcPtpGroup 8 }
--x wrpcPtpSkew OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The estimated change of master-to-slave delay, in picoseconds"
--x ::= { wrpcPtpGroup 9 }
--x wrpcPtpRTT OBJECT-TYPE
--x SYNTAX Counter64 ---- unsigned64
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The round-trip-time, from master, in picoseconds"
--x ::= { wrpcPtpGroup 10 }
--x wrpcPtpLinkLength OBJECT-TYPE
--x SYNTAX Unsigned32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Estimated fiber length, from master-to-slave delay, in meters"
--x ::= { wrpcPtpGroup 11 }
--x wrpcPtpServoUpdates OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "How many time did the servo run"
--x ::= { wrpcPtpGroup 12 }
--x wrpcPtpServoUpdateDate OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Date and Time of last servo's update"
--x ::= { wrpcPtpGroup 13 }
--x wrpcPtpDeltaTxM OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Fixed Tx latency on Master side"
--x ::= { wrpcPtpGroup 14 }
--x wrpcPtpDeltaRxM OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Fixed Rx latency on Master side"
--x ::= { wrpcPtpGroup 15 }
--x wrpcPtpDeltaTxS OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Fixed Tx latency on Slave side"
--x ::= { wrpcPtpGroup 16 }
--x wrpcPtpDeltaRxS OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Fixed Rx latency on Slave side"
--x ::= { wrpcPtpGroup 17 }
--x wrpcPtpServoStateErrCnt OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Number of servo updates with wrong servo state"
--x ::= { wrpcPtpGroup 18 }
--x wrpcPtpClockOffsetErrCnt OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Number of servo updates with wrong clock offset"
--x ::= { wrpcPtpGroup 19 }
--x wrpcPtpRTTErrCnt OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Number of servo updates with wrong RTT"
--x ::= { wrpcPtpGroup 20 }
--x wrpcPtpPeer OBJECT-TYPE
--x SYNTAX OCTET STRING (SIZE(8))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "ptp peer ID"
--x ::= { wrpcPtpGroup 21 }
--x wrpcPtpAsymmetry OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Asymmetry of XXXXXXXXX"
--x ::= { wrpcPtpGroup 22 }
--x wrpcPtpRX OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "RX ptp packets"
--x ::= { wrpcPtpGroup 23 }
--x wrpcPtpTX OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "TX ptp packets"
--x ::= { wrpcPtpGroup 24 }
--x wrpcPtpConfigWord OBJECT-TYPE
--x SYNTAX Unsigned32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Configuration word of PTP"
--x ::= { wrpcPtpGroup 25 }
--x wrpcPtpAlpha OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Alpha used by ptp"
--x ::= { wrpcPtpGroup 26 }
-- ****************************************************************************
--x wrpcPtpConfigGroup OBJECT IDENTIFIER ::= { wrpcCore 6 }
--x wrpcPtpConfigApply OBJECT-TYPE
--x SYNTAX INTEGER {
--x na(0),
--x applySuccessful(1),
--x applyFailed(2)
--x }
--x MAX-ACCESS read-write
--x STATUS current
--x DESCRIPTION
--x "Apply changing configuration of the ptp"
--x ::= { wrpcPtpConfigGroup 1 }
--x wrpcPtpConfigDeltaRx OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-write
--x STATUS current
--x DESCRIPTION
--x ""
--x ::= { wrpcPtpConfigGroup 2 }
--x wrpcPtpConfigDeltaTx OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-write
--x STATUS current
--x DESCRIPTION
--x ""
--x ::= { wrpcPtpConfigGroup 3 }
--x wrpcPtpConfigAlpha OBJECT-TYPE
--x SYNTAX Integer32
--x MAX-ACCESS read-write
--x STATUS current
--x DESCRIPTION
--x ""
--x ::= { wrpcPtpConfigGroup 4 }
-- ****************************************************************************
--x wrpcPortGroup OBJECT IDENTIFIER ::= { wrpcCore 7 }
--x wrpcPortLinkStatus OBJECT-TYPE
--x SYNTAX INTEGER {
--x na(0),
--x down(1),
--x up(2)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Whether the link is up or down"
--x ::= { wrpcPortGroup 1 }
--x wrpcPortSfpInDB OBJECT-TYPE
--x SYNTAX INTEGER {
--x na(0),
--x notInDataBase(1),
--x inDataBase(2)
--x }
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "Whether the SFP is in data base or not"
--x ::= { wrpcPortGroup 2 }
--x wrpcPortInternalRX OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "RX ptp packets"
--x ::= { wrpcPortGroup 3 }
--x wrpcPortInternalTX OBJECT-TYPE
--x SYNTAX Counter32
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "TX ptp packets"
--x ::= { wrpcPortGroup 4 }
-- ****************************************************************************