aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/examples/ex1/EX1-MIBv2.mib
blob: e7250c4a6383d0ded9deedc320e4d68532c4a322 (plain) (blame)
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
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