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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
-- HWg-WLD MIB 1.01
-- History:
--
-- 1.00 27.11.2009 Marek Hummel - Created
-- 1.01 2.8.2010 Marek Hummel - Mib validation, add wldValue
-- 1.01-bis 12.5.2021 ChangeOID to avoid collisions with STE-MIB
--
HWg-WLD-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE FROM RFC-1212
Gauge, enterprises FROM RFC1155-SMI
DisplayString, sysName FROM RFC1213-MIB
TRAP-TYPE FROM RFC-1215;
--
-- Type Definitions
--
PositiveInteger ::= INTEGER (1..2147483647) -- 0x7FFF FFFF
SensorState ::= INTEGER {
invalid (0),
normal (1),
alarm (3)
}
SensorValue ::= INTEGER {
normal (0),
flooded (1),
disconnect (2),
invalid (3)
}
SensorSN ::= DisplayString (SIZE (0..16))
SensorName ::= DisplayString (SIZE (0..16))
SensorID ::= INTEGER
--
-- Node Definitions
--
hwgroup OBJECT IDENTIFIER ::= { enterprises 21796 }
x390 OBJECT IDENTIFIER ::= { hwgroup 4 }
hwgwld OBJECT IDENTIFIER ::= { x390 5 }
-- Application Info ------------------------------------------------------------
info OBJECT IDENTIFIER ::= { hwgwld 70 }
infoAddressMAC OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..17))
ACCESS read-only
STATUS mandatory
DESCRIPTION
"MAC address in text form.
It is here to distinguish devices in trap messages."
::= { info 1 }
-- Sensors ---------------------------------------------------------------------
wldTable OBJECT-TYPE
SYNTAX SEQUENCE OF WldEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"A list of sensor table entries. The number
of entries corresponds with number of detected sensors."
::= { hwgwld 4 }
wldEntry OBJECT-TYPE
SYNTAX WldEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"An entry containing information applicable to a
particular sensor."
INDEX { wldIndex }
::= { wldTable 1 }
WldEntry ::= SEQUENCE {
wldIndex PositiveInteger,
wldName SensorName,
wldState SensorState,
wldSN SensorSN,
wldID SensorID,
wldValue SensorValue
}
wldIndex OBJECT-TYPE
SYNTAX PositiveInteger
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor index."
::= { wldEntry 1 }
wldName OBJECT-TYPE
SYNTAX SensorName
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor name."
::= { wldEntry 2 }
wldState OBJECT-TYPE
SYNTAX SensorState
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor state."
::= { wldEntry 3 }
wldSN OBJECT-TYPE
SYNTAX SensorSN
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor Serial number."
::= { wldEntry 4 }
wldID OBJECT-TYPE
SYNTAX SensorID
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor ID."
::= { wldEntry 5 }
wldValue OBJECT-TYPE
SYNTAX SensorValue
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The sensor value."
::= { wldEntry 6 }
-- Trap Definitions ------------------------------------------------------------
wldStateToAlarm TRAP-TYPE
ENTERPRISE hwgwld
VARIABLES { sysName, infoAddressMAC, wldIndex, wldName, wldState, wldSN, wldID, wldValue }
DESCRIPTION
"Sensor n changed to Alarm state."
::= 1
wldStateToNormal TRAP-TYPE
ENTERPRISE hwgwld
VARIABLES { sysName, infoAddressMAC, wldIndex, wldName, wldState, wldSN, wldID, wldValue }
DESCRIPTION
"Sensor n changed to Normal state."
::= 2
wldPeriodicAlarm TRAP-TYPE
ENTERPRISE hwgwld
VARIABLES { sysName, infoAddressMAC, wldIndex, wldName, wldState, wldSN, wldID, wldValue }
DESCRIPTION
"Sensor n periodic Alarm."
::= 3
END
|