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-- $FreeBSD$
27--
28
29BEGEMOT-LM75-MIB DEFINITIONS ::= BEGIN
30
31IMPORTS
32    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
33    Counter64, Integer32
34	FROM SNMPv2-SMI
35    TEXTUAL-CONVENTION, RowStatus
36	FROM SNMPv2-TC
37    begemot
38	FROM BEGEMOT-MIB;
39
40begemotLoos MODULE-IDENTITY
41    LAST-UPDATED "201402240000Z"
42    ORGANIZATION "FreeBSD"
43    CONTACT-INFO
44	    "		Luiz Otavio O Souza
45
46	     Postal:	N/A
47
48	     Fax:	N/A
49
50	     E-Mail:	loos@FreeBSD.org"
51    DESCRIPTION
52	    "The Begemot MIB for reading lm75 sensors data."
53    REVISION     "201402240000Z"
54    DESCRIPTION
55	    "Initial revision."
56    ::= { begemot 400 }
57
58begemotLm75Objects	OBJECT IDENTIFIER ::= { begemotLm75 1 }
59
60-- ---------------------------------------------------------- --
61-- Configuration parameters
62-- ---------------------------------------------------------- --
63
64lm75Sensor	OBJECT IDENTIFIER ::= { begemotlm75Objects 1 }
65
66lm75Sensors	OBJECT-TYPE
67    SYNTAX	Integer32
68    MAX-ACCESS	read-only
69    STATUS	current
70    DESCRIPTION
71	"Number of LM75 sensors in the system."
72    ::= { lm75Sensors 1 }
73
74-- ---------------------------------------------------------- --
75-- TempSensor Table
76-- ---------------------------------------------------------- --
77lm75SensorTable OBJECT-TYPE
78    SYNTAX	SEQUENCE OF Lm75SensorEntry
79    MAX-ACCESS	not-accessible
80    STATUS	current
81    DESCRIPTION
82	"A table containing information about all temperature sensors."
83    ::= { begemotLm75Objects 2 }
84
85loosTempSensorEntry OBJECT-TYPE
86    SYNTAX	Lm75SensorEntry
87    MAX-ACCESS	not-accessible
88    STATUS	current
89    DESCRIPTION
90	"Table entry that describes one temperature sensor."
91    INDEX	{ lm75SensorIndex }
92    ::= { lm75SensorTable 1 }
93
94Lm75SensorEntry ::= SEQUENCE {
95    lm75SensorIndex			Integer32,
96    lm75SensorSysctlIndex		Integer32,
97    lm75SensorDesc			OCTET STRING,
98    lm75SensorLocation			OCTET STRING,
99    lm75SensorPnpInfo			OCTET STRING,
100    lm75SensorParent			OCTET STRING,
101    lm75SensorTemperature		Integer32
102}
103
104lm75SensorIndex OBJECT-TYPE
105    SYNTAX	Integer32
106    MAX-ACCESS	read-only
107    STATUS	current
108    DESCRIPTION
109	"LM75 Sensor index."
110    ::= { lm75SensorEntry 1 }
111
112lm75SensorSysctlIndex OBJECT-TYPE
113    SYNTAX	Integer32
114    MAX-ACCESS	read-only
115    STATUS	current
116    DESCRIPTION
117	"LM75 Sensor sysctl index."
118    ::= { lm75SensorEntry 2 }
119
120lm75SensorDesc OBJECT-TYPE
121    SYNTAX	OCTET STRING
122    MAX-ACCESS	read-only
123    STATUS	current
124    DESCRIPTION
125	"LM75 Sensor description."
126    ::= { lm75SensorEntry 3 }
127
128lm75SensorLocation OBJECT-TYPE
129    SYNTAX	OCTET STRING
130    MAX-ACCESS	read-only
131    STATUS	current
132    DESCRIPTION
133	"LM75 Sensor location."
134    ::= { lm75SensorEntry 4 }
135
136lm75SensorPnpInfo OBJECT-TYPE
137    SYNTAX	OCTET STRING
138    MAX-ACCESS	read-only
139    STATUS	current
140    DESCRIPTION
141	"LM75 Sensor pnp information."
142    ::= { lm75SensorEntry 5 }
143
144lm75SensorParent OBJECT-TYPE
145    SYNTAX	OCTET STRING
146    MAX-ACCESS	read-only
147    STATUS	current
148    DESCRIPTION
149	"LM75 Sensor parent bus."
150    ::= { lm75SensorEntry 6 }
151
152lm75SensorTemperature OBJECT-TYPE
153    SYNTAX	Integer32
154    MAX-ACCESS	read-only
155    STATUS	current
156    DESCRIPTION
157	"LM75 Sensor temperature."
158    ::= { lm75SensorEntry 7 }
159
160END
161