summaryrefslogtreecommitdiff
path: root/MIBS/sagemcom/LOG-MIB
blob: ab64712c83bb3905eedcec6595d3a2ddc4cac93f (plain)
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
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
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
--*******************************************************************
--*    SAGEM, IONOS	    											*
--*******************************************************************
--*******************************************************************

--  Filename: log
--
--  File type: .mib    
-- 
--  Description:  SNMP source Mib file.
--
--			describes alarmes and event log records and
--			associated traps
--             
--
--  Version:  19 11 2002
--	
--  Date(DD MM YYYY): 15 11 02 last update for IONOS NMS 
--     
--  Contact: D. Mobuchon, F. Bonnevialle
--
--  History: 
--		Version:			Date: 25 10 1999
--		Version: MIB-P0-301199	Date: 30 11 1999
--      Version: MIB-P0-05092000 Date: 05 09 2000
--                passage de performance en perf pour 
--               diminuer la longueur des traps de l'ADR155
--		Version:			Date: 14 06 2001
--				ajout table de defaut courant pour gestionnaire
--		Version:			Date: 22 08 2001
--				LogCurrent comments modification  
--
--		Version: MIB-P0-301199	Date: 30 11 1999 
-- 
--		Name: F.Bonnevialle 	
--		Date: 15 11 2002 		
--		Desc: Modification for SilverCreek Compiler

--*******************************************************************
--*******************************************************************
--*   Copyright (c) 2002, SAGEM , All rights reserved.              *
--*******************************************************************




--*******************************************************************
-- MIB: LOG-MIB
--*******************************************************************
LOG-MIB DEFINITIONS ::= BEGIN


--*******************************************************************
-- IMPORTS
--*******************************************************************
   IMPORTS
   sagemDr				FROM SAGEM-DR-MIB
   SagemBoolean,IntDateTime,Severity	FROM EQUIPMENT-MIB
   		DisplayString		FROM SNMPv2-TC
   MODULE-IDENTITY,OBJECT-TYPE,
   NOTIFICATION-TYPE			FROM SNMPv2-SMI;
--   TRAP-TYPE				FROM RFC-1215;

   
--*******************************************************************
-- OBJECTS
--*******************************************************************
   log	MODULE-IDENTITY
      LAST-UPDATED "0211150000Z"
      ORGANIZATION "SAGEM/DR Tolbiac Centre"
      CONTACT-INFO
	" "
      DESCRIPTION 
	"	
	Modification: 
			Date: 15 11 2002
			Description: 
			sagemDr replace sagem-dr
			NOTIFICATION-TYPE replace TRAP-TYPE
	
	Modification: 
			Date: 20 12 1999
			Description: Modification of comments
					 Modification of trap re-notification
					 quality-threshold-overflow replaced by 
						performance.
	New Object: 
			Date: 30 11 1999
			Name: lostTrapBool,lostTrapBegin,lostTrapEnd,lostTrap
			Description: System of re-notification of lost traps,
			Name: LodEvent
			Description: Add of qualityThresholdOverflow (20),
			otherThresholdOverflow (21), maintenance (30) 
			Name: probableCause
			Description: SIZE (0..20) replaced by SIZE (0..50)
			
	Creation:		 
 			This MIB module describes alarmes and event log records. 
			It also describes associated trap
	"
      ::= { sagemDr 105 }


-- Warning:
--		The events (13) and (31) are non cleared 
-- 
    
 LogEvent      ::= INTEGER {	clear (0),	nonAlarmed (1), 
	minor (2), major (3), critical (4), warning (5),
	raise (10),  -- some events requires raise/clear
	event (13),  -- for cold/hot start, re-notification, version switching	
	switch (14),	
	perf (20),
	otherThresholdOverflow (21),
	maintenance (30) 
		-- used for login/logout, start/end write session, 
		-- 		download/upload, operator action
--	,security (31)	
     }
      
   logClear   OBJECT-TYPE
      SYNTAX       INTEGER { setToClear(0) }
      MAX-ACCESS   read-write
      STATUS       current
      DESCRIPTION 
	"When a set command is issued on this variable the entire 
	log event is cleared.

	This command is optional
    " 
      ::= { log 1 } 
   
   logCapacity   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"The maximum number of event in the log database"  
      ::= { log 2 } 
   
   logLastEvent   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"The index of the last event number that have been logged.
	This is usefull for trap lost detection."  
      ::= { log 3 } 
   
   logNumber   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"Number of current log in equipment."  
      ::= { log 4 } 
   

   logTable   OBJECT-TYPE
      SYNTAX       SEQUENCE OF LogEntry
      MAX-ACCESS   not-accessible
      STATUS       current
      DESCRIPTION 
	"List of log trap that come from the equipment."  
      ::= { log 5 } 
   
   logEntry   OBJECT-TYPE
      SYNTAX       LogEntry
      MAX-ACCESS   not-accessible
      STATUS       current
      DESCRIPTION 
	"A particular log of the equipment." 
      INDEX        { logIndex } 
      ::= { logTable 1 } 
 
 
   LogEntry ::=
      SEQUENCE {
        logIndex           INTEGER,
        logDate            IntDateTime,
        logObject          OBJECT IDENTIFIER,
        logName            DisplayString,
        logEvent           LogEvent,
        logPC		   	   DisplayString,
	    logAI 			   DisplayString,
	  	logEquipStatusV2  	   Severity
      }
         
   logIndex   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A unique value which identify a particular log entry.
	The index value cannot exced logCapacity and then returns 
	to zero when the number of events exceds the capacity of 
	equipement log table.
	Its value is :
	logIndex = <total number of event>%logCapacity.
	It is mandatory for the equipment to respond to get-next in
	anti-chronological order (youngest first) no matter to the 
	index value.
	Get-next(LogEntry.logEntry) is logEntry.logIndex[logLastEvent]"  
      ::= { logEntry 1 } 
   
   logDate   OBJECT-TYPE
      SYNTAX       IntDateTime
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"When the event had happened."  
      ::= { logEntry 2 } 
   
   logObject   OBJECT-TYPE
      SYNTAX       OBJECT IDENTIFIER
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A reference to the function/interface who produced the event"  
      ::= { logEntry 3 }
       
 
   logName   OBJECT-TYPE
      SYNTAX       DisplayString (SIZE (0..40))
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A text string which identifies the particular entry among the
	log entries. "  
      ::= { logEntry 4 } 
   
   logEvent   OBJECT-TYPE
      SYNTAX       LogEvent
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"indicates the type of event which had occured"  
      ::= { logEntry 5 } 


	-- The folowing probable cause are the mnemonics of failures
	-- For all failures, the event indicates both the status and 
	-- the associed severity.
	-- The event is non-alarmed, minor, major, critical or warning
	-- if the failure has raised, and is clear when it has 
	-- desapeared.The LogObject is the oid of the 
	-- function/interface which notified the failure
	-- los, tf, ais, lof, eber, sd, rdi, lop, pam, scm, otm,
	-- slm, uneq, lom, tim, etc ...
	-- 
	-- For user-input associated failure, the probable cause 
	-- is the string name associated with the input.

      -- For performance threshold exced the event is 
	-- "performance" and probable cause is "threshold exceded".
 
      -- For Msp switch the event is "switch", probable cause is
	-- "msp on working" or "msp on protection". oid indicates 
	-- msp function.
 
	-- Sets source fail failure mnemonique is "source fail" and
	-- oid is the value of setsInTable[source who failed]
	-- On T0 switch the event "switch" is issued with probable 
	-- cause "t0 switch" and oid setsInTable[new-src]
      -- On T4 failure the event "raise" or clear" is issued with
	-- probable cause "t4 failure"

      -- Note on standarts trap :
	-- warmStart	rfc1215
	-- coldStart	rfc1215
	-- linkUp
	-- linkDown
	-- The equipment sends these standard traps througt 
	-- rfc1215 mib.
	-- Then it is no use to send them through this mib but on 
	-- other hand it may be usefull to store them in the log as 
	-- an event :
	-- event "event", probable cause "warm start" or 
	-- "cold start", oid={0,0}
	-- event "event", probable cause 
	-- "link up" or "link down",oid=ifEntry.Index
   
   
   logPC   OBJECT-TYPE
      SYNTAX       DisplayString (SIZE (0..50))
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"Probable cause. A short string which identifies the event type.
	For a failure it is its mnemonique."  
      ::= { logEntry 6 }   

		
   logAI   OBJECT-TYPE
         SYNTAX       DisplayString (SIZE (0..64))
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION 
   	"A short string which gives additional information on 
	the event"  
      ::= { logEntry 7 }   

  logEquipStatusV2   OBJECT-TYPE
      SYNTAX       Severity
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"
	logEquipStatusV2 is the value of equipStatusV2 
	stored in logTable each time a trap is sent"  
      ::= { logEntry 8 } 


--*******************************************************************
-- Description:
--		"logTrapEnable" 
   logTrapEnable   OBJECT-TYPE
      SYNTAX       SagemBoolean
      MAX-ACCESS   read-write
      STATUS       current
      DESCRIPTION 
	"When set to false the equipment stops to send logTraps. 
	It has no effect on event log recording.
	It also has no effects on quality traps and on status trap
	used for the manager IONOS-ANM-V1.
	The default value is true."
	
      ::= { log 6 } 



--*******************************************************************
-- Modification:
-- 		Description: System used for notify again lost's 
--			traps or current state. 
--          Warning: the equipment sends these traps only
--                   to the requester.
--
-- 1:Detection of lost traps
--	To detect lost traps:
-- 		we have to use two values:
--			-one in the equipment: logLastEvent
--			-one in the manager: the number of the last event 
--				received by the manager
--		we have to poll regulary logLastEvent and make a 
--		comparition with the value stored and maintained in the
--		manager. If the values are different the number of trap 
--		lost equal to the difference between the two values. 
--
-- 2:Resend lost traps	
--	The manager can use GET request on logTable to acces the values.
--	The index of the table is logIndex or logTimeIndex 
--	(logTImeIndex is not implemented in P0)
--
-- 3: Resend current state (start...)
--	The manager can set the boolean values of 
--	resendTrapBool to get the current state.
--	Sequence to resent traps (current state):		
--			For all re-sent traps:
--			Two special traps (logTap for P0) are sent before 
--			and after the group of re-sent traps.
-- 			The logEvent field is: "maintainance" (= 30) for 
--			the begining and "clear" for the end.
--			The probableCause field is: "lost trap"
-- 	The equipment send the following sequence for P0:
--	-1 logTrap with:
--			logEvent="maintainance" 
--			probableCause="resent current trap"
--	-a set of logTrap that are current trap
--			In P0 ,you can not make a difference beetwen resent
--				trap and new alarms sent inside the sequence
--				(that are current trap too).  
-- 	-1 logTrap with: 
--			logEvent="clear" 
--			probableCause="resent current trap"
--********************************************************************            

   lostTrap  OBJECT IDENTIFIER ::= { log 7 }  
   
   resendTrapBool   OBJECT-TYPE
      SYNTAX       SagemBoolean
      MAX-ACCESS   read-write
      STATUS       current
      DESCRIPTION 
	"The manager set this variable to receive all the current traps of the 
	equipment.
	The equipment must use resentLogTrap and resentNetworkAlarmeTrap 
	to do it(not in P0)." 
      ::= { lostTrap 1 }


--********************************************************************* 
-- Warning: logTime* are NOT used in P0 !
--*********************************************************************      
--    logTimeTable   OBJECT-TYPE
--      SYNTAX       SEQUENCE OF LogTimeEntry
--      MAX-ACCESS   not-accessible
--      STATUS       current
--      DESCRIPTION 
--	"The logDateTable contains data in the same format as the
--     logTable, and must contain the same set of data, but is
--     indexed using logTimeDate rather than logIndex.
--     
--     If the logTable is managed by the equipment, the 
--     logTimeTable is optional. Otherwise, the logTimeTable
--     is mandatory.
--    "  
--      ::= { log 20 } 
--   
--   logTimeEntry   OBJECT-TYPE
--      SYNTAX       LogTimeEntry
--      MAX-ACCESS   not-accessible
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable." 
--      INDEX        { logTimeDate } 
--      ::= { logTimeTable 1 } 
-- 
--    LogTimeEntry ::=
--      SEQUENCE {
--        logTimeIndex           INTEGER,
--        logTimeDate            IntDateTime,
--        logTimeObject          OBJECT IDENTIFIER,
--        logTimeName            DisplayString,
--        logTimeEvent           LogEvent,
--        logTimeProbableCause   DisplayString,
--	    logTimeAI  DisplayString,
--	    logTimeEquipmentStatus Severity
--      }  
--   
--   logTimeIndex   OBJECT-TYPE
--      SYNTAX       INTEGER
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 1 } 
--   
--   logTimeDate   OBJECT-TYPE
--      SYNTAX       IntDateTime
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 2 } 
--   
--   logTimeObject   OBJECT-TYPE
--      SYNTAX       OBJECT IDENTIFIER
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 3 } 
--   
--   logTimeName   OBJECT-TYPE
--      SYNTAX       DisplayString (SIZE (0..40))
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 4 } 
--   
--   logTimeEvent   OBJECT-TYPE
--      SYNTAX       LogEvent
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 5 } 
--  
--   logTimeProbableCause   OBJECT-TYPE
--      SYNTAX       DisplayString (SIZE (0..50))
--      MAX-ACCESS   read-only
--      STATUS       current
--      DESCRIPTION 
--	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 6 }   
--
--  logTimeAI   OBJECT-TYPE
--         SYNTAX       DisplayString (SIZE (0..64))
--         MAX-ACCESS   read-only
--         STATUS       current
--         DESCRIPTION 
--   	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 7 }   
-- 
--  logTimeEquipmentStatus   OBJECT-TYPE
--         SYNTAX       Severity
--         MAX-ACCESS   read-only
--         STATUS       current
--         DESCRIPTION 
--   	"Refer to the same object in the logTable."  
--      ::= { logTimeEntry 8 }         
--
--*******************************************************************


--  logTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                   logName, logEvent, logPC, 
--					logAI,logEquipStatusV2}
--      DESCRIPTION
--	"A trap of this type indicates a failure or an event in the
--	corresponding interface/function. It also gives the date and 
--	time when the trap was sent, and the equipment status. 
--	
--      The logTrap is recommended for the equipment layer management.
--      The networkAlarmeTrap is recommended for the network layer management.	
--	"
--      ::= 1
  
--  thresholdTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--				logAI,logEquipStatusV2}
--      DESCRIPTION
--	"A trap of this type indicates that a threshold has been 
--	crossed in the corresponding interface/function. 
--	It also gives the date and time when the trap was sent, 
--	and the equipment status"
--      ::= 2 

  logTraps OBJECT IDENTIFIER ::= { log 0 }
  
  logTrap NOTIFICATION-TYPE
          OBJECTS     { logIndex, logDate, logObject,
                    logName, logEvent, logPC, 
					logAI,logEquipStatusV2 }
          STATUS      current
          DESCRIPTION "A trap of this type indicates that a threshold has been 
	crossed in the corresponding interface/function. 
	It also gives the date and time when the trap was sent, 
	and the equipment status"
          REFERENCE   ""
          ::= { logTraps 1 }
    
  thresholdTrap NOTIFICATION-TYPE
          OBJECTS     { logIndex, logDate, logObject,
                    logName, logEvent, logPC, 
				logAI,logEquipStatusV2 }
          STATUS      current
          DESCRIPTION "A trap of this type indicates that a threshold has been 
	crossed in the corresponding interface/function. 
	It also gives the date and time when the trap was sent, 
	and the equipment status"
          REFERENCE   ""
          ::= { logTraps 2 }

-- Warning:
-- The next traps are NOT used with P0 version
--
--   securityTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--				logAI,logEquipStatusV2}
--      DESCRIPTION
--	"A trap of this type indicates that a security event has been
--	 appeared.
--	"
--      ::= 3 
--
--   networkAlarmeTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--				    logAI,logEquipStatusV2}
--      DESCRIPTION
--	"A trap of this type indicates that a network event has been
--	 appeared. Special network event used by the IONOS-ANM manager
--	 to have an easily network layer management.
--	"
--      ::= 4  
--      
--   maintainanceTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--				    logAI,logEquipStatusV2}
--      DESCRIPTION
--	"A trap of this type indicates that a maintainance event has been
--	 appeared.
--	"
--      ::= 5 
--      
--   resentLogTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--					logAI,logEquipStatusV2}
--      DESCRIPTION
--	"This trap is used to re-send logTrap." 	
--      ::= 6
--       
--   resentNetworkAlarmeTrap TRAP-TYPE
--      ENTERPRISE  log
--      VARIABLES   { logIndex, logDate, logObject,
--                    logName, logEvent, logPC, 
--				    logAI,logEquipStatusV2}
--      DESCRIPTION
--	"This trap is used to re-send networkAlarmeTrap." 	
--      ::= 7      
--   



    
--***************************************************************
-- Meaning and values of variables of the different kind of trap
--***************************************************************
-- Only logTrap and thresholdTrap are used for P0;
-- So the other traps described are logTrap:
--	networkAlarmTrap
--	maintainanceTrap
--	securityTrap
--
-- That means in P0 Version, networkAlarmTrap,maintainanceTrap,
-- and securityTrap are not implemented and are replaced by
-- a logTrap with the same format than respectively networkAlarmTrap,
-- maintainanceTrap and securityTrap 
--
--
-- ===============================
-- 1:logTrap
-- ===============================
--
-- 1.1:Equipment Alarm traps
-- *********************  
--
-- logObject        : equipment OID or daughter card OID or ...
-- logName          : "Alarm name", ...
-- logEvent         : clear, non-alarmed, minor, major, critical, warning ...
-- logProbableCause : "ProbableCause"
-- logAI: "", "AI"
--
--
--
-- ===============================
-- 2:networkAlarmTrap
-- ===============================
--
-- 2.1:Network Alarm traps
-- ******************* 
--
-- logObject        : interface OID or access OID ...
-- logName 		  : not yet defined !!!!
-- logName          : "Slot=0, Card=ADSL, Prot=ATM, VP/VC=12/8", ... 
-- logEvent         : clear, non-alarmed, minor, major, critical, warning ...
-- logProbableCause : "ProbableCause"
-- logAI: "", "AI"
--
--
--
-- ===============================
-- 3:maintainanceTrap
-- ===============================
--
-- 3.1:Download/Upload traps
-- *********************  
--
-- logObject        : equipment OID or daughter card OID
-- logName          : "", "Card name", ...
-- logEvent         : maintainance or clear
-- logProbableCause : "download" or "upload"
-- logAI: transferedItemType value, transferedItemVersion value
--
--
-- 3.2:Switching traps
-- ***************
--
-- logObject        : equipment OID or daughter card OID
-- logName          : "", "Card name", ...
-- logEvent         : event
-- logProbableCause : "software switching" or "data configuration switching"
-- logAI: transferedItemType value, transferedItemVersion value 
-- 
--
-- 3.3:Software restart traps
-- **********************  
-- (Restart none requested by an operator). 
--
-- logObject        : equipment OID or daughter card OID
-- logName          : "", "Card name"
-- logEvent         : event
-- logProbableCause : "cold start" or "hot start"
-- logAI: "" or "additionnal info"
--
--
-- 3.4:Maintainance action traps with end
-- **********************************  
--
-- logObject        : port OID or card OID
-- logName          : "name of the localisation"
-- logEvent         : maintainance or clear
-- logProbableCause : "loop back" or ...
-- logAI: "loop number = xx" or ...
--
--
-- 3.5:Maintainance action traps without end
-- *************************************  
--
-- logObject        : port OID or card OID
-- logName          : "name of the localisation"
-- logEvent         : event
-- logProbableCause : "clock switching" or ...
-- logAI: "" or ... 
--
--
-- 3.6:Write-session traps
-- ******************* 
-- A "write-session" trap must be sent when a write session starts
-- or ends. (Refer to the Sagem-dr-session Mib for the different
-- field values).
--
-- logObject        : 
-- logName          : "writeSession"
-- logEvent         : maintainance or clear (start or end)
-- logProbableCause : "writeSession" 
-- logAI: sessionIp,sessionType
--
--	ex: logAI= "135.10.34.24,http,sess2,iONOSANMsupervisor" 
--
--
-- 3.7:Re-notification traps
-- *********************  
-- Two special traps (trapLog) are sent before and after 
-- the group of re-sent traps.
-- The logEvent field is: "maintainance" for the begining and
-- "clear" for the end.
--
-- logObject        : equipment OID
-- logName          : ""
-- logEvent         : maintainance or clear
-- logProbableCause : "current log"
-- logAI: "Requester IP@ = x.x.x.x"
-- 
-- ===============================
-- 4:thresholdTrap
-- ===============================
--
-- 4.1:performance (Quality-threshold-overflow) traps
-- ********************************   
--
-- logObject        : cptObject OID
-- logName          : "port name"
-- logEvent         : quality-threshold-overflow or clear
-- logProbableCause : "quality-threshold-overflow cptNearFar value, cptDuration value"
-- logAI: "max Threshold = xxxx, min Threshold = xxxx"
--
-- 4.2:Other-threshold-overflow traps
-- ******************************   
--
-- logObject        : variable OID
-- logName          : "" or variable name
-- logEvent         : other-threshold-overflow or clear
-- logProbableCause : "other threshold overflow"
-- logAI: "max Threshold = xxxx, min Threshold = xxxx"
--
-- ===============================
-- 5:securityTrap
-- ===============================
--
-- 5.1:Security traps
-- **************  
--
-- logObject        : equipment OID, ...
-- logName          : ""
-- logEvent         : security
-- logProbableCause : "intrusion attempt"
-- logAI: "Caller IP@ = x.x.x.x, community = xxxxxxx"
--
--***************************************************************
 
 
--***************************************************************
-- Log current Alarm
--***************************************************************
-- currentLog Table function the same way as log Table
-- It contains only current alarms
 
   logCurrentClear   OBJECT-TYPE
      SYNTAX       INTEGER { setToClear(0) }
      MAX-ACCESS   read-write
      STATUS       current
      DESCRIPTION 
	"When a set command is issued on this variable the entire 
	log event is cleared.

	This command is optional
    " 
      ::= { log 101 } 
   
   logCurrentCapacity   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"The maximum number of event in the log database
	This variable is optional"  
      ::= { log 102 } 
   
   logCurrentLastEvent   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"The index of the last current alarm number that have been logged.
	This variable is optional"  
      ::= { log 103 } 
   
   logCurrentNumber   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"Number of current log in equipment."  
      ::= { log 104 } 
   

   logCurrentTable   OBJECT-TYPE
      SYNTAX       SEQUENCE OF LogCurrentEntry
      MAX-ACCESS   not-accessible
      STATUS       current
      DESCRIPTION 
	"List of log trap that come from the equipment."  
      ::= { log 105 } 
   
   logCurrentEntry   OBJECT-TYPE
      SYNTAX       LogCurrentEntry
      MAX-ACCESS   not-accessible
      STATUS       current
      DESCRIPTION 
	"A particular log of the equipment." 
      INDEX        { logCurrentIndex } 
      ::= { logCurrentTable 1 } 
 
 
   LogCurrentEntry ::=
      SEQUENCE {
        logCurrentIndex           INTEGER,
        logCurrentDate            IntDateTime,
        logCurrentObject          OBJECT IDENTIFIER,
        logCurrentName            DisplayString,
        logCurrentEvent           LogEvent,
        logCurrentPC			  DisplayString,
	  	logCurrentAI 				  DisplayString,
	  	logCurrentStatusV2 	  Severity
      }
         
   logCurrentIndex   OBJECT-TYPE
      SYNTAX       INTEGER(0..2147483647)
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A unique value which identify a particular logCurrent entry.
	The index value is comprised between 1 and logCurrentNumber.
	There is no relation between the index Value and the date of the alarm. "  
      ::= { logCurrentEntry 1 } 
   
   logCurrentDate   OBJECT-TYPE
      SYNTAX       IntDateTime
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"When the event had happened."  
      ::= { logCurrentEntry 2 } 
   
   logCurrentObject   OBJECT-TYPE
      SYNTAX       OBJECT IDENTIFIER
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A reference to the function/interface who produced the event"  
      ::= { logCurrentEntry 3 }
       
 
   logCurrentName   OBJECT-TYPE
      SYNTAX       DisplayString (SIZE (0..40))
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"A text string which identifies the particular entry among the
	log entries. "  
      ::= { logCurrentEntry 4 } 
   
   logCurrentEvent   OBJECT-TYPE
      SYNTAX       LogEvent
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"indicates the type of event which had occured"  
      ::= { logCurrentEntry 5 } 

   
   logCurrentPC   OBJECT-TYPE
      SYNTAX       DisplayString (SIZE (0..50))
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"Probable cause. A short string which identifies the event type.
	For a failure it is its mnemonique."  
      ::= { logCurrentEntry 6 }   

		
    logCurrentAI   OBJECT-TYPE
         SYNTAX       DisplayString (SIZE (0..64))
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION 
   	"A short string which gives additional information on 
	the event"  
      ::= { logCurrentEntry 7 }   

 	logCurrentStatusV2   OBJECT-TYPE
      SYNTAX       Severity
      MAX-ACCESS   read-only
      STATUS       current
      DESCRIPTION 
	"
	logEquipStatusV2 is the value of equipStatusV2 
	stored in logTable each time a trap is sent"  
      ::= { logCurrentEntry 8 } 
 
 
END