diff options
Diffstat (limited to 'lib/snmp/examples/ex1/EX1-MIBv2.mib')
-rw-r--r-- | lib/snmp/examples/ex1/EX1-MIBv2.mib | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/lib/snmp/examples/ex1/EX1-MIBv2.mib b/lib/snmp/examples/ex1/EX1-MIBv2.mib new file mode 100644 index 0000000000..e7250c4a63 --- /dev/null +++ b/lib/snmp/examples/ex1/EX1-MIBv2.mib @@ -0,0 +1,104 @@ +EX1-MIBv2 DEFINITIONS ::= BEGIN + +IMPORTS + MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, + Integer32, snmpModules ,experimental + FROM SNMPv2-SMI + MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP + FROM SNMPv2-CONF + DisplayString + FROM SNMPv2-TC + RowStatus + FROM STANDARD-MIB; + + +exampleModule MODULE-IDENTITY + LAST-UPDATED "0005290000Z" + ORGANIZATION "Erlang" + CONTACT-INFO " test mib + Ericsson Utvecklings AB + Open System + Box 1505 + SE-125 25 �LVSJ�" + + DESCRIPTION + " Objects for management " + REVISION "0005290000Z" + DESCRIPTION + "The initial version" + ::= { snmpModules 1 } + +example1 OBJECT IDENTIFIER ::= { experimental 7} + + + myName OBJECT-TYPE + SYNTAX DisplayString + MAX-ACCESS read-write + STATUS current + DESCRIPTION + "My own name" + ::= { example1 1 } + + friendsTable OBJECT-TYPE + SYNTAX SEQUENCE OF FriendsEntry + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "A list of friends." + ::= { example1 4 } + + friendsEntry OBJECT-TYPE + SYNTAX FriendsEntry + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "" + INDEX { fIndex } + ::= { friendsTable 1 } + + FriendsEntry ::= SEQUENCE { + fIndex INTEGER, + fName DisplayString, + fAddress DisplayString, + fStatus RowStatus + } + + fIndex OBJECT-TYPE + SYNTAX INTEGER + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "number of friend" + ::= { friendsEntry 1 } + + fName OBJECT-TYPE + SYNTAX DisplayString (SIZE (0..255)) + MAX-ACCESS read-write + STATUS deprecated + DESCRIPTION + "Name of a friend" + ::= { friendsEntry 2 } + + fAddress OBJECT-TYPE + SYNTAX DisplayString (SIZE (0..255)) + MAX-ACCESS read-write + STATUS current + DESCRIPTION + "Address of a friend" + ::= { friendsEntry 3 } + + fStatus OBJECT-TYPE + SYNTAX RowStatus + MAX-ACCESS read-write + STATUS current + DESCRIPTION + "The status of this conceptual row." + ::= { friendsEntry 4 } + +friendGroup OBJECT-GROUP + OBJECTS { myName, fIndex, fName,fAddress, fStatus } + STATUS current + DESCRIPTION " A object group" + ::= { example1 2 } + +END |