-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNET-SNMP-EXTERNALS-MIB.txt
144 lines (121 loc) · 4.88 KB
/
NET-SNMP-EXTERNALS-MIB.txt
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
139
140
141
142
143
144
NET-SNMP-EXTERNALS-MIB DEFINITIONS ::= BEGIN
--
-- Example of external MIB objects for agent module example implementations
--
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
NOTIFICATION-TYPE FROM SNMPv2-SMI
netSnmp FROM NET-SNMP-MIB
;
netSnmpExternals MODULE-IDENTITY
LAST-UPDATED "200406150000Z"
ORGANIZATION "Lior Zemah"
CONTACT-INFO
"author: Lior Zemah
email: [email protected]"
DESCRIPTION
"Example of external MIB objects for agent module example implementations"
::= { netSnmp 666 }
--
-- top level structure
--
netSnmpExternalNotifications OBJECT IDENTIFIER ::= { netSnmpExternals 3 }
netSnmpExternalNotificationPrefix OBJECT IDENTIFIER
::= { netSnmpExternalNotifications 0 }
netSnmpExternalNotificationObjects OBJECT IDENTIFIER
::= { netSnmpExternalNotifications 2 }
--
-- Example Notifications
--
netSnmpNicStatus OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"A simple integer object, to act as a payload for the
netSnmpExampleHeartbeatNotification. The value has
no real meaning, but is nominally the interval (in
seconds) between successive heartbeat notifications."
::= { netSnmpExternalNotificationObjects 1 }
netSnmpNicStatusDescription OBJECT-TYPE
SYNTAX OCTET STRING (SIZE (0..255))
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"A simple string object, to act as an optional payload
for the netSnmpExampleHeartbeatNotification. This varbind
is not part of the notification definition, so is optional
and need not be included in the notification payload.
The value has no real meaning, but the romantically inclined
may take it to be the object of the sender's affection,
and hence the cause of the heart beating faster."
::= { netSnmpExternalNotificationObjects 2 }
netSnmpCounter OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"A simple integer object, to act as a payload for the
netSnmpExampleHeartbeatNotification. The value has
no real meaning, but is nominally the interval (in
seconds) between successive heartbeat notifications."
::= { netSnmpExternalNotificationObjects 3 }
netSnmpNicNotification NOTIFICATION-TYPE
OBJECTS { netSnmpNicStatus }
STATUS current
DESCRIPTION
"An example notification, used to illustrate the
definition and generation of trap and inform PDUs
(including the use of both standard and additional
varbinds in the notification payload).
This notification will typically be sent every
30 seconds, using the code found in the example module
agent/mibgroup/examples/notification.c"
::= { netSnmpExternalNotificationPrefix 1 }
netSnmpCounterNotification NOTIFICATION-TYPE
OBJECTS { netSnmpCounter }
STATUS current
DESCRIPTION
"An example notification, used to illustrate the
definition and generation of trap and inform PDUs
(including the use of both standard and additional
varbinds in the notification payload).
This notification will typically be sent every
30 seconds, using the code found in the example module
agent/mibgroup/examples/notification.c"
::= { netSnmpExternalNotificationPrefix 2 }
netSnmpExternalNotification OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS accessible-for-notify
STATUS obsolete
DESCRIPTION
"This object was improperly defined for its original purpose,
and should no longer be used."
::= { netSnmpExternalNotifications 1 }
-- % snmptranslate -M+. -mNET-SNMP-EXTERNALS-MIB -Tp -IR netSnmpExternals
-- +-netSnmpExternals(666)
-- |
-- +-netSnmpExternalNotifications(3)
-- |
-- +-netSnmpExternalNotificationPrefix(0)
-- | |
-- | +-netSnmpNicNotification(1)
-- | +-netSnmpCounterNotification(2)
-- |
-- +-netSnmpExternalNotification(1)
-- |
-- +-netSnmpExternalNotificationObjects(2)
-- |
-- +- -N Integer32 netSnmpNicStatus(1)
-- +- -N String netSnmpNicStatusDescription(2)
-- Size: 0..255
-- +- -N Integer32 netSnmpCounter(3)
-- % snmptranslate -On -M+. -mNET-SNMP-EXTERNALS-MIB -IR netSnmpNicStatus
-- .1.3.6.1.4.1.8072.666.3.2.1
-- % snmptranslate -On -M+. -mNET-SNMP-EXTERNALS-MIB -IR netSnmpNicNotification
-- .1.3.6.1.4.1.8072.666.3.0.1
-- % snmptranslate -On -M+. -mNET-SNMP-EXTERNALS-MIB -IR netSnmpCounter
-- .1.3.6.1.4.1.8072.666.3.2.3
-- % snmptranslate -On -M+. -mNET-SNMP-EXTERNALS-MIB -IR netSnmpCounterNotification
-- .1.3.6.1.4.1.8072.666.3.0.2
END