1--
2-- Copyright (c) 2014 Luiz Otavio O Souza <loos@FreeBSD.org>
3-- All rights reserved.
4--
5-- Redistribution and use in source and binary forms, with or without
6-- modification, are permitted provided that the following conditions
7-- are met:
8-- 1. Redistributions of source code must retain the above copyright
9--    notice, this list of conditions and the following disclaimer.
10-- 2. Redistributions in binary form must reproduce the above copyright
11--    notice, this list of conditions and the following disclaimer in the
12--    documentation and/or other materials provided with the distribution.
13--
14-- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
15-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17-- ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
18-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24-- SUCH DAMAGE.
25--
26
27BEGEMOT-LM75-MIB DEFINITIONS ::= BEGIN
28
29IMPORTS
30    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
31    Counter64, Integer32
32	FROM SNMPv2-SMI
33    TEXTUAL-CONVENTION, RowStatus
34	FROM SNMPv2-TC
35    begemot
36	FROM BEGEMOT-MIB;
37
38begemotLm75 MODULE-IDENTITY
39    LAST-UPDATED "201402240000Z"
40    ORGANIZATION "FreeBSD"
41    CONTACT-INFO
42	    "		Luiz Otavio O Souza
43
44	     Postal:	N/A
45
46	     Fax:	N/A
47
48	     E-Mail:	loos@FreeBSD.org"
49    DESCRIPTION
50	    "The Begemot MIB for reading lm75 sensors data."
51    REVISION     "201402240000Z"
52    DESCRIPTION
53	    "Initial revision."
54    ::= { begemot 400 }
55
56begemotLm75Objects	OBJECT IDENTIFIER ::= { begemotLm75 1 }
57
58-- ---------------------------------------------------------- --
59-- Configuration parameters
60-- ---------------------------------------------------------- --
61
62lm75Sensor	OBJECT IDENTIFIER ::= { begemotLm75Objects 1 }
63
64lm75Sensors	OBJECT-TYPE
65    SYNTAX	Integer32
66    MAX-ACCESS	read-only
67    STATUS	current
68    DESCRIPTION
69	"Number of LM75 sensors in the system."
70    ::= { lm75Sensor 1 }
71
72-- ---------------------------------------------------------- --
73-- TempSensor Table
74-- ---------------------------------------------------------- --
75lm75SensorTable OBJECT-TYPE
76    SYNTAX	SEQUENCE OF Lm75SensorEntry
77    MAX-ACCESS	not-accessible
78    STATUS	current
79    DESCRIPTION
80	"A table containing information about all temperature sensors."
81    ::= { begemotLm75Objects 2 }
82
83lm75SensorEntry OBJECT-TYPE
84    SYNTAX	Lm75SensorEntry
85    MAX-ACCESS	not-accessible
86    STATUS	current
87    DESCRIPTION
88	"Table entry that describes one temperature sensor."
89    INDEX	{ lm75SensorIndex }
90    ::= { lm75SensorTable 1 }
91
92Lm75SensorEntry ::= SEQUENCE {
93    lm75SensorIndex			Integer32,
94    lm75SensorSysctlIndex		Integer32,
95    lm75SensorDesc			OCTET STRING,
96    lm75SensorLocation			OCTET STRING,
97    lm75SensorPnpInfo			OCTET STRING,
98    lm75SensorParent			OCTET STRING,
99    lm75SensorTemperature		Integer32
100}
101
102lm75SensorIndex OBJECT-TYPE
103    SYNTAX	Integer32
104    MAX-ACCESS	read-only
105    STATUS	current
106    DESCRIPTION
107	"LM75 Sensor index."
108    ::= { lm75SensorEntry 1 }
109
110lm75SensorSysctlIndex OBJECT-TYPE
111    SYNTAX	Integer32
112    MAX-ACCESS	read-only
113    STATUS	current
114    DESCRIPTION
115	"LM75 Sensor sysctl index."
116    ::= { lm75SensorEntry 2 }
117
118lm75SensorDesc OBJECT-TYPE
119    SYNTAX	OCTET STRING
120    MAX-ACCESS	read-only
121    STATUS	current
122    DESCRIPTION
123	"LM75 Sensor description."
124    ::= { lm75SensorEntry 3 }
125
126lm75SensorLocation OBJECT-TYPE
127    SYNTAX	OCTET STRING
128    MAX-ACCESS	read-only
129    STATUS	current
130    DESCRIPTION
131	"LM75 Sensor location."
132    ::= { lm75SensorEntry 4 }
133
134lm75SensorPnpInfo OBJECT-TYPE
135    SYNTAX	OCTET STRING
136    MAX-ACCESS	read-only
137    STATUS	current
138    DESCRIPTION
139	"LM75 Sensor pnp information."
140    ::= { lm75SensorEntry 5 }
141
142lm75SensorParent OBJECT-TYPE
143    SYNTAX	OCTET STRING
144    MAX-ACCESS	read-only
145    STATUS	current
146    DESCRIPTION
147	"LM75 Sensor parent bus."
148    ::= { lm75SensorEntry 6 }
149
150lm75SensorTemperature OBJECT-TYPE
151    SYNTAX	Integer32
152    MAX-ACCESS	read-only
153    STATUS	current
154    DESCRIPTION
155	"LM75 Sensor temperature."
156    ::= { lm75SensorEntry 7 }
157
158END
159