EXAMPLE DEFINITIONS ::= BEGIN

IMPORTS

    TruthValue
			FROM SNMPv2-TC
	
    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, enterprises, Integer32 
		FROM SNMPv2-SMI
	RowStatus, StorageType								 
		FROM SNMPv2-TC
	enterprises
        FROM RFC1155-SMI
	;

example MODULE-IDENTITY
     LAST-UPDATED "200809051200Z"
     ORGANIZATION "Digi International Inc."

     CONTACT-INFO 
	 "Digi International Inc.
     411 Waverly Oaks Road, #304
     Waltham, MA 02452
     support@digi.com
     Tel: 781-647-1234
     Fax: 781-893-1338"

     DESCRIPTION  "Example MIB module"
     REVISION     "200809051200Z" 
     DESCRIPTION  "Rev. 1.0 - initial version"
     ::= { examples 1}


-- The following statement defines the example enterprise identifier.   
-- You should replace this with your own when you create new MIBs.  You can get
-- an enterprise identifer from the Internet Assigned Numbers Authority.  
-- Contact them at:
--
-- Address: IANA
--          USC/Information Sciences Institute
--          4676 Admiralty Way
--          Marina del Rey, CA 90292
--      
-- Phone:   +1 (310) 822-1511
-- FAX:     +1 (310) 823-6714
-- 
-- Email:   iana-mib@isi.edu        (for enterprise identifiers)
--          iana@isi.edu            (for anything else)
--
-- URL:     http://www.iana.org/iana

exampleEnterprise      OBJECT IDENTIFIER ::= { enterprises 1234567 }

-- The next few declarations just subdivide our address space into
-- different sections.

examples         OBJECT IDENTIFIER ::= { exampleEnterprise 33 }

-- Now define a group and a table 

group           OBJECT IDENTIFIER ::= {example 1}
table           OBJECT IDENTIFIER ::= {example 2}

-- scalar items

    greenLedOn OBJECT-TYPE

        SYNTAX  TruthValue 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "This object is used to control the state of the green LED"
        DEFVAL { true }
        ::= {group 1 }


    yellowLedOn OBJECT-TYPE

        SYNTAX  TruthValue 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "This object is used to control the state of the yellow LED"
        DEFVAL { false }
        ::= {group 2 }


    bigBoss OBJECT-TYPE

        SYNTAX  OCTET STRING 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "String with default value 'Bruce'"
        DEFVAL  {"Bruce"}
        ::= {group 3 }



    simpleTable OBJECT-TYPE
      SYNTAX  SEQUENCE OF SimpleEntry
      MAX-ACCESS  not-accessible
      STATUS  current
      DESCRIPTION
              "A list of names"
      ::= { table 1 }




    simpleEntry OBJECT-TYPE
        SYNTAX  SimpleEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION
              "Row definition for the simple table"
        INDEX   { index }
        ::= { simpleTable 1 }
    


    SimpleEntry ::=
        SEQUENCE {
          index			Integer32,
          name			OCTET STRING,
		  rowStatus		RowStatus
        }


    index OBJECT-TYPE
        SYNTAX  Integer32(1..100)
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
              "Index for table"
        ::= { simpleEntry 1 }


    name OBJECT-TYPE
        SYNTAX  OCTET STRING
        MAX-ACCESS  read-create
        STATUS  current
        DESCRIPTION
              "Somebody's name"
        ::= { simpleEntry 2 }

	rowStatus OBJECT-TYPE
		SYNTAX RowStatus
		MAX-ACCESS read-create
		STATUS current
		DESCRIPTION
		   "used for creating, modifying and deleting rows
			in the table"
		DEFVAL { active }
		::= { simpleEntry 3 }

	exampleTrapGreen NOTIFICATION-TYPE
		OBJECTS { greenLedOn }
		STATUS current
		DESCRIPTION 
			"Reports greenLedOn value"
		::= {example 0 1 }

	exampleTrapYellow NOTIFICATION-TYPE
		OBJECTS { yellowLedOn }
		STATUS current
		DESCRIPTION 
			"Reports yellowLedOn value"
		::= {example 0 2 }

	END
