-- *****************************************************************
-- RABBITSEMI-DEMO-SNMP1.TXT:  MIB corresponding to SNMP1.C
--   in samples\tcpip\snmp
--
-- April 2002  Stephen J. Hardy
--
-- Copyright (c) 2002 by Rabbit Semiconductor
-- All rights reserved.
--
-- *****************************************************************

RABBITSEMI-DEMO-SNMP1 DEFINITIONS ::= BEGIN

IMPORTS
        MODULE-IDENTITY,
        OBJECT-TYPE,
        NOTIFICATION-TYPE,
        IpAddress,
        TimeTicks
                FROM SNMPv2-SMI
        DisplayString
                FROM SNMPv2-TC
        TRAP-TYPE
					 FROM RFC-1215
        demos, rabbitsemi
                FROM RABBITSEMI-SMI;

rabbitsemiDemoSNMP1 MODULE-IDENTITY
        LAST-UPDATED "200304170000Z"
        ORGANIZATION "Rabbit Semiconductor"
        CONTACT-INFO
         "Rabbit Semiconductor
          Software Engineering

          Postal: 2900 Spafford Street
                  Davis, CA  95616-6800
                  USA

          Tel: +1 530 757 4616

          E-mail: shardy@zworld.com"
        DESCRIPTION
                "Description of SNMP1.C demo program."
        REVISION	"200304170000Z"
        DESCRIPTION
          "Initial version of this MIB module, plus added V1 trap definitions."
        ::= { demos 1 }


demoRWObjects OBJECT IDENTIFIER ::= { rabbitsemiDemoSNMP1 1 }  -- read/write objects
demoROObjects OBJECT IDENTIFIER ::= { rabbitsemiDemoSNMP1 2 }  -- read-only objects

-- the following is for documentation purposes, since we currently only
-- support v1 traps.
demoTraps OBJECT IDENTIFIER ::= { rabbitsemiDemoSNMP1 3 }  -- trap objects


rw-int OBJECT-TYPE
        SYNTAX     INTEGER (-32768..32767)
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write short integer value."
        ::= { demoRWObjects 1 0 }

rw-long OBJECT-TYPE
        SYNTAX     INTEGER (-200000000..200000000)
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write long integer value."
        ::= { demoRWObjects 2 0 }

rw-foct OBJECT-TYPE
        SYNTAX     OCTET STRING (SIZE (20..20))
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write fixed-length octet string."
        ::= { demoRWObjects 3 0 }

rw-str OBJECT-TYPE
        SYNTAX     DisplayString (SIZE (20))
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write variable length char string."
        ::= { demoRWObjects 4 0 }

rw-oct OBJECT-TYPE
        SYNTAX     OCTET STRING (SIZE (20))
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write variable length octet string."
        ::= { demoRWObjects 5 0 }

rw-oid OBJECT-TYPE
        SYNTAX     OBJECT IDENTIFIER
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write OID."
        ::= { demoRWObjects 6 0 }

rw-ipaddr OBJECT-TYPE
        SYNTAX     IpAddress
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write IP address.  This is the address to which
                 the agent sends traps."
        ::= { demoRWObjects 7 0 }

rw-timeticks OBJECT-TYPE
        SYNTAX     TimeTicks
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "A read/write timeticks.  Base epoch is when agent
                 SNMP is started."
        ::= { demoRWObjects 8 0 }


ro-int OBJECT-TYPE
        SYNTAX     INTEGER (-32768..32767)
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only short integer value."
        ::= { demoROObjects 1 0 }

ro-long OBJECT-TYPE
        SYNTAX     INTEGER (-200000000..200000000)
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only long integer value."
        ::= { demoROObjects 2 0 }

ro-foct OBJECT-TYPE
        SYNTAX     OCTET STRING (SIZE (20..20))
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only fixed-length octet string."
        ::= { demoROObjects 3 0 }

ro-str OBJECT-TYPE
        SYNTAX     DisplayString (SIZE (20))
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only variable length char string."
        ::= { demoROObjects 4 0 }

ro-oct OBJECT-TYPE
        SYNTAX     OCTET STRING (SIZE (20))
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only variable length octet string."
        ::= { demoROObjects 5 0 }

ro-oid OBJECT-TYPE
        SYNTAX     OBJECT IDENTIFIER
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
                "A read-only OID."
        ::= { demoROObjects 6 0 }


monitor-rw-int-v1 TRAP-TYPE
        VARIABLES  {
                        rw-int,
                        ro-int,
                        ro-oct
                   }
        STATUS     current
        ENTERPRISE rabbitsemi
        DESCRIPTION
                "A monitor-rw-int trap is sent whenever the value of
                 rw-int is outside the range (0..3000).  When the value
                 goes outside this range, up to 6 traps are sent at
                 intervals increasing from 1 to 16 seconds (exponential
                 backoff).  When the value goes back inside range, the
                 agent stops sending traps and the send counter and time
                 interval are reset. The trap destination IP address may
                 be changed by setting rw_ipaddr."
        ::= 30

monitor-rw-int NOTIFICATION-TYPE
        OBJECTS    {
                        rw-int,
                        ro-int,
                        ro-oct
                   }
        STATUS     current
        DESCRIPTION
                "A monitor-rw-int trap is sent whenever the value of
                 rw-int is outside the range (0..3000).  When the value
                 goes outside this range, up to 6 traps are sent at
                 intervals increasing from 1 to 16 seconds (exponential
                 backoff).  When the value goes back inside range, the
                 agent stops sending traps and the send counter and time
                 interval are reset. The trap destination IP address may
                 be changed by setting rw_ipaddr."
        ::= { demoTraps 0 1 }

explicit-trap-v1 TRAP-TYPE
        VARIABLES  {
                        ro-int,
                        ro-oct
                   }
        STATUS     current
        ENTERPRISE rabbitsemi
        DESCRIPTION
                "An explicit-trap trap is sent every 5 seconds if
                 the symbol SEND_TRAPS is defined in the demo program."
        ::= 20


explicit-trap NOTIFICATION-TYPE
        OBJECTS    {
                        ro-int,
                        ro-oct
                   }
        STATUS     current
        DESCRIPTION
                "An explicit-trap trap is sent every 5 seconds if
                 the symbol SEND_TRAPS is defined in the demo program."
        ::= { demoTraps 0 2 }



END