Subject: patch for the COND-MIB / ARC-MIB

From: Juergen Schoenwaelder <[email-masked]>
Date: Thu, 15 Mar 2001 16:19:33 +0100

I had to fix some SMI violations in these MIBs in order to generate
UML diagrams. Here is the diff in case someone else wants to parse
these MIBs.

/js

--- COND-MIB	Thu Mar 15 16:10:10 2001
+++ /www/ibr/users/schoenw/disman/COND-MIB	Thu Mar 15 15:54:06 2001
@@ -1,14 +1,14 @@
-OTN-MIB DEFINITIONS ::= BEGIN
+COND-MIB DEFINITIONS ::= BEGIN
 
 IMPORTS
-    MODULE-IDENTITY, OBJECT-TYPE, Unsigned32,
+    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, Unsigned32, mib-2
           FROM SNMPv2-SMI
     TEXTUAL-CONVENTION, DateAndTime, TruthValue
           FROM SNMPv2-TC
     SnmpAdminString
           FROM SNMP-FRAMEWORK-MIB 	
     MODULE-COMPLIANCE, OBJECT-GROUP
-          FROM SNMPv2-CONF
+          FROM SNMPv2-CONF;

 condMIB MODULE-IDENTITY
@@ -30,11 +30,11 @@
 ------------------
 -- MIB Objects
 ------------------
-condMIBObjects   OBJECT IDENTIFIER ::= { conMIB 1 }
+condMIBObjects   OBJECT IDENTIFIER ::= { condMIB 1 }
 
 condActive    OBJECT IDENTIFIER ::= { condMIBObjects 1 }
 condRetired   OBJECT IDENTIFIER ::= { condMIBObjects 2 }
-condStanding  OBJECT IDENTIFIER ::= { condMIBObjects 3 }
+condTransient OBJECT IDENTIFIER ::= { condMIBObjects 3 }
 condNotice    OBJECT IDENTIFIER ::= { condMIBObjects 4 }
  
 --------------
@@ -447,7 +447,7 @@
 ---------------------------
 -- Transient condition objects
 ---------------------------
-condtransientMaxNumber OBJECT-TYPE
+condTransientMaxNumber OBJECT-TYPE
   SYNTAX  Unsigned32
   MAX-ACCESS  read-only
   STATUS  current
@@ -457,10 +457,10 @@
      enough that it cannot be exceeded by the system (i.e., the
      system is not capable of generating more than this number
      of simultaneous standing conditions)."
-  ::= { condtransient 1 }
+  ::= { condTransient 1 }
 
-condtransientTable OBJECT-TYPE
-  SYNTAX  SEQUENCE OF CondtransientEntry
+condTransientTable OBJECT-TYPE
+  SYNTAX  SEQUENCE OF CondTransientEntry
   MAX-ACCESS  not-accessible
   STATUS  current
   DESCRIPTION
@@ -472,7 +472,7 @@
      conditions in the table cannot be assumed to be consecutive.
      When the table reaches the max number of entries, the oldest one is deleted
      to make room for the new transient condition"
-  ::= { condtransient 2 }
+  ::= { condTransient 2 }
 
 condTransientEntry OBJECT-TYPE
   SYNTAX  CondTransientEntry
@@ -563,9 +563,9 @@
     "A text description of the condition."
   ::= { condTransientEntry 8 }
 
------------------
+----------------
 -- Notifications
------------------
+----------------
 condNotificationSelection OBJECT-TYPE
   SYNTAX  BITS {
     cleared(0),
--- ARC-MIB	Thu Mar 15 16:10:19 2001
+++ /www/ibr/users/schoenw/disman/ARC-MIB	Thu Mar 15 15:56:30 2001
@@ -1,12 +1,12 @@
 ARC-MIB DEFINITIONS ::= BEGIN
 
 IMPORTS
-    MODULE-IDENTITY, OBJECT-TYPE, Unsigned32
+    MODULE-IDENTITY, OBJECT-TYPE, Unsigned32, mib-2
           FROM SNMPv2-SMI
-    conditionProbableCause
+    ConditionProbableCause
           FROM COND-MIB
     MODULE-COMPLIANCE, OBJECT-GROUP
-          FROM SNMPv2-CONF
+          FROM SNMPv2-CONF;
 
 arcMIB MODULE-IDENTITY
     LAST-UPDATED "200102230000Z"
@@ -76,8 +76,8 @@
   ::= { arcEntry 1 }
 
 arcAlarmType OBJECT-TYPE
-  SYNTAX  condProbableCause
-  MAX-ACCESS  read-create
+  SYNTAX  ConditionProbableCause
+  MAX-ACCESS  not-accessible
   STATUS  current
   DESCRIPTION
     "This object identifies the alarm type controled by the arcState.