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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
NET-SNMP-PASS-MIB DEFINITIONS ::= BEGIN
--
-- Example MIB objects for "pass" and "pass-persist" extension script
--
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, TimeTicks, IpAddress,
Counter32, Gauge32, Integer32 FROM SNMPv2-SMI
SnmpAdminString FROM SNMP-FRAMEWORK-MIB
netSnmpExamples FROM NET-SNMP-EXAMPLES-MIB
;
netSnmpPassExamples MODULE-IDENTITY
LAST-UPDATED "200905280000Z"
ORGANIZATION "www.net-snmp.org"
CONTACT-INFO
"postal: Wes Hardaker
P.O. Box 382
Davis CA 95617
email: net-snmp-coders@lists.sourceforge.net"
DESCRIPTION
"Example MIB objects for pass/pass-persist extension script"
::= { netSnmpExamples 255 }
--
-- Example scalars
--
netSnmpPassString OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example string scalar object."
DEFVAL { "Life, the Universe, and Everything" }
::= { netSnmpPassExamples 1 }
netSnmpPassTimeTicks OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example timetick object."
DEFVAL { 363136200 } -- 42 days, 0:42:42.00
::= { netSnmpPassExamples 3 }
netSnmpPassIpAddress OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example IP Address object."
DEFVAL { '7f000001'H } -- 127.0.0.1
::= { netSnmpPassExamples 4 }
netSnmpPassCounter OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Example counter object.
Note that this object will always return the value '42'."
::= { netSnmpPassExamples 5 }
netSnmpPassGauge OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example Gauge object."
DEFVAL { 42 }
::= { netSnmpPassExamples 6 }
netSnmpPassCounter64 OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Example Counter64 object."
::= { netSnmpPassExamples 7 }
netSnmpPassInteger64 OBJECT-TYPE
SYNTAX Opaque
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Example Opaque Integer64 object."
::= { netSnmpPassExamples 8 }
netSnmpPassOIDValue OBJECT IDENTIFIER
::= { netSnmpPassExamples 99 }
--
-- Example Table
--
netSnmpPassTable OBJECT-TYPE
SYNTAX SEQUENCE OF NetSnmpPassEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Example table"
::= { netSnmpPassExamples 2 }
netSnmpPassEntry OBJECT-TYPE
SYNTAX NetSnmpPassEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Conceptual row in the example table."
INDEX { netSnmpPassIndex }
::= {netSnmpPassTable 1 }
NetSnmpPassEntry ::= SEQUENCE {
netSnmpPassIndex Integer32,
netSnmpPassInteger Integer32,
netSnmpPassOID OBJECT IDENTIFIER
}
netSnmpPassIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Arbitrary index into the netSnmpPassTable.
Note that there will always be one row, with index 1"
::= { netSnmpPassEntry 1 }
netSnmpPassInteger OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example Integer (table) object."
DEFVAL { 42 }
::= { netSnmpPassEntry 2 }
netSnmpPassOID OBJECT-TYPE
SYNTAX OBJECT IDENTIFIER
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Example OID (table) object."
DEFVAL { netSnmpPassOIDValue }
::= { netSnmpPassEntry 3 }
END
|