1 /* ietf-mib.c - data to monitor SNMP UPS (RFC 1628 compliant) with NUT
3 * Copyright (C) 2002-2006
4 * 2002-2012 Arnaud Quette <arnaud.quette@free.fr>
5 * 2002-2006 Niels Baggesen <niels@baggesen.net>
6 * 2002-2006 Arjen de Korte <adkorte-guest@alioth.debian.org>
8 * Sponsored by MGE UPS SYSTEMS <http://www.mgeups.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #define IETF_MIB_VERSION "1.4"
32 #define IETF_OID_UPS_MIB "1.3.6.1.2.1.33.1."
33 #define IETF_SYSOID ".1.3.6.1.2.1.33"
37 static info_lkp_t ietf_battery_info
[] = {
38 { 1, "" /* unknown */ },
39 { 2, "" /* batteryNormal */},
40 { 3, "LB" /* batteryLow */ },
41 { 4, "LB" /* batteryDepleted */ },
45 static info_lkp_t ietf_power_source_info
[] = {
46 { 1, "" /* other */ },
47 { 2, "OFF" /* none */ },
48 { 3, "OL" /* normal */ },
49 { 4, "OL BYPASS" /* bypass */ },
50 { 5, "OB" /* battery */ },
51 { 6, "OL BOOST" /* booster */ },
52 { 7, "OL TRIM" /* reducer */ },
56 static info_lkp_t ietf_overload_info
[] = {
57 { 1, "OVER" }, /* output overload */
61 static info_lkp_t ietf_test_active_info
[] = {
62 { 1, "" }, /* upsTestNoTestsInitiated */
63 { 2, "" }, /* upsTestAbortTestInProgress */
64 { 3, "TEST" }, /* upsTestGeneralSystemsTest */
65 { 4, "TEST" }, /* upsTestQuickBatteryTest */
66 { 5, "CAL" }, /* upsTestDeepBatteryCalibration */
70 static info_lkp_t ietf_test_result_info
[] = {
71 { 1, "done and passed" },
72 { 2, "done and warning" },
73 { 3, "done and error" },
76 { 6, "no test initiated" },
81 static info_lkp_t ietf_shutdown_type_info
[] = {
88 static info_lkp_t ietf_yes_no_info
[] = {
94 static info_lkp_t ietf_beeper_status_info
[] = {
101 /* Snmp2NUT lookup table info_type, info_flags, info_len, OID, dfl, flags, oid2info, setvar */
102 static snmp_info_t ietf_mib
[] = {
103 /* The Device Identification group */
104 { "ups.mfr", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.1.0", "Generic", SU_FLAG_STATIC
, NULL
}, /* upsIdentManufacturer */
105 { "ups.model", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.2.0", "Generic SNMP UPS", SU_FLAG_STATIC
, NULL
}, /* upsIdentModel */
106 { "ups.firmware", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.3.0", "", SU_FLAG_STATIC
, NULL
}, /* upsIdentUPSSoftwareVersion */
107 { "ups.firmware.aux", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.4.0", "", SU_FLAG_STATIC
, NULL
}, /* upsIdentAgentSoftwareVersion */
109 { "debug.upsIdentName", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.5.0", "", 0, NULL
}, /* upsIdentName */
110 { "debug.upsIdentAttachedDevices", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"1.6.0", "", 0, NULL
}, /* upsIdentAttachedDevices */
113 { "ups.status", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"2.1.0", "", SU_STATUS_BATT
, ietf_battery_info
}, /* upsBatteryStatus */
115 { "debug.upsSecondsOnBattery", 0, 1.0, IETF_OID_UPS_MIB
"2.2.0", "", 0, NULL
}, /* upsSecondsOnBattery */
117 { "battery.runtime", 0, 60.0, IETF_OID_UPS_MIB
"2.3.0", "", 0, NULL
}, /* upsEstimatedMinutesRemaining */
118 { "battery.charge", 0, 1, IETF_OID_UPS_MIB
"2.4.0", "", 0, NULL
}, /* upsEstimatedChargeRemaining */
119 { "battery.voltage", 0, 0.1, IETF_OID_UPS_MIB
"2.5.0", "", 0, NULL
}, /* upsBatteryVoltage */
120 { "battery.current", 0, 0.1, IETF_OID_UPS_MIB
"2.6.0", "", 0, NULL
}, /* upsBatteryCurrent */
121 { "battery.temperature", 0, 1.0, IETF_OID_UPS_MIB
"2.7.0", "", 0, NULL
}, /* upsBatteryTemperature */
125 { "debug.upsInputLineBads", 0, 1.0, IETF_OID_UPS_MIB
"3.1.0", "", 0, NULL
}, /* upsInputLineBads */
127 { "input.phases", 0, 1.0, IETF_OID_UPS_MIB
"3.2.0", "", SU_FLAG_SETINT
, NULL
, &input_phases
}, /* upsInputNumLines */
129 { "debug.upsInputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.1.1", "", SU_INPUT_1
, NULL
}, /* upsInputLineIndex */
130 { "debug.[1].upsInputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.1.1", "", SU_INPUT_3
, NULL
},
131 { "debug.[2].upsInputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.1.2", "", SU_INPUT_3
, NULL
},
132 { "debug.[3].upsInputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.1.3", "", SU_INPUT_3
, NULL
},
134 { "input.frequency", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.2.1", "", SU_INPUT_1
, NULL
}, /* upsInputFrequency */
135 { "input.L1.frequency", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.2.1", "", SU_INPUT_3
, NULL
},
136 { "input.L2.frequency", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.2.2", "", SU_INPUT_3
, NULL
},
137 { "input.L3.frequency", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.2.3", "", SU_INPUT_3
, NULL
},
138 { "input.voltage", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.3.1", "", SU_INPUT_1
, NULL
}, /* upsInputVoltage */
139 { "input.L1-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.3.1", "", SU_INPUT_3
, NULL
},
140 { "input.L2-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.3.2", "", SU_INPUT_3
, NULL
},
141 { "input.L3-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.3.3", "", SU_INPUT_3
, NULL
},
142 { "input.current", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.4.1", "", SU_INPUT_1
, NULL
}, /* upsInputCurrent */
143 { "input.L1.current", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.4.1", "", SU_INPUT_3
, NULL
},
144 { "input.L2.current", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.4.2", "", SU_INPUT_3
, NULL
},
145 { "input.L3.current", 0, 0.1, IETF_OID_UPS_MIB
"3.3.1.4.3", "", SU_INPUT_3
, NULL
},
146 { "input.realpower", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.5.1", "", SU_INPUT_1
, NULL
}, /* upsInputTruePower */
147 { "input.L1.realpower", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.5.1", "", SU_INPUT_3
, NULL
},
148 { "input.L2.realpower", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.5.2", "", SU_INPUT_3
, NULL
},
149 { "input.L3.realpower", 0, 1.0, IETF_OID_UPS_MIB
"3.3.1.5.3", "", SU_INPUT_3
, NULL
},
152 { "ups.status", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"4.1.0", "", SU_STATUS_PWR
, ietf_power_source_info
}, /* upsOutputSource */
153 { "output.frequency", 0, 0.1, IETF_OID_UPS_MIB
"4.2.0", "", 0, NULL
}, /* upsOutputFrequency */
154 { "output.phases", 0, 1.0, IETF_OID_UPS_MIB
"4.3.0", "", SU_FLAG_SETINT
, NULL
, &output_phases
}, /* upsOutputNumLines */
156 { "debug.upsOutputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.1.1", "", SU_OUTPUT_1
, NULL
}, /* upsOutputLineIndex */
157 { "debug.[1].upsOutputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.1.1", "", SU_OUTPUT_3
, NULL
},
158 { "debug.[2].upsOutputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.1.2", "", SU_OUTPUT_3
, NULL
},
159 { "debug.[3].upsOutputLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.1.3", "", SU_OUTPUT_3
, NULL
},
161 { "output.voltage", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.2.1", "", SU_OUTPUT_1
, NULL
}, /* upsOutputVoltage */
162 { "output.L1-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.2.1", "", SU_OUTPUT_3
, NULL
},
163 { "output.L2-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.2.2", "", SU_OUTPUT_3
, NULL
},
164 { "output.L3-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.2.3", "", SU_OUTPUT_3
, NULL
},
165 { "output.current", 0, 0.1, IETF_OID_UPS_MIB
"4.4.1.3.1", "", SU_OUTPUT_1
, NULL
}, /* upsOutputCurrent */
166 { "output.L1.current", 0, 0.1, IETF_OID_UPS_MIB
"4.4.1.3.1", "", SU_OUTPUT_3
, NULL
},
167 { "output.L2.current", 0, 0.1, IETF_OID_UPS_MIB
"4.4.1.3.2", "", SU_OUTPUT_3
, NULL
},
168 { "output.L3.current", 0, 0.1, IETF_OID_UPS_MIB
"4.4.1.3.3", "", SU_OUTPUT_3
, NULL
},
169 { "output.realpower", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.4.1", "", SU_OUTPUT_1
, NULL
}, /* upsOutputPower */
170 { "output.L1.realpower", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.4.1", "", SU_OUTPUT_3
, NULL
},
171 { "output.L2.realpower", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.4.2", "", SU_OUTPUT_3
, NULL
},
172 { "output.L3.realpower", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.4.3", "", SU_OUTPUT_3
, NULL
},
173 { "ups.load", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.5.1", "", SU_OUTPUT_1
, NULL
}, /* upsOutputPercentLoad */
174 { "output.L1.power.percent", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.5.1", "", SU_OUTPUT_3
, NULL
},
175 { "output.L2.power.percent", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.5.2", "", SU_OUTPUT_3
, NULL
},
176 { "output.L3.power.percent", 0, 1.0, IETF_OID_UPS_MIB
"4.4.1.5.3", "", SU_OUTPUT_3
, NULL
},
179 { "input.bypass.phases", 0, 1.0, IETF_OID_UPS_MIB
"5.2.0", "", SU_FLAG_SETINT
, NULL
, &bypass_phases
}, /* upsBypassNumLines */
180 { "input.bypass.frequency", 0, 0.1, IETF_OID_UPS_MIB
"5.1.0", "", SU_BYPASS_1
| SU_BYPASS_3
, NULL
}, /* upsBypassFrequency */
182 { "debug.upsBypassLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.1.1", "", SU_BYPASS_1
, NULL
}, /* upsBypassLineIndex */
183 { "debug.[1].upsBypassLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.1.1", "", SU_BYPASS_3
, NULL
},
184 { "debug.[2].upsBypassLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.1.2", "", SU_BYPASS_3
, NULL
},
185 { "debug.[3].upsBypassLineIndex", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.1.3", "", SU_BYPASS_3
, NULL
},
187 { "input.bypass.voltage", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.2.1", "", SU_BYPASS_1
, NULL
}, /* upsBypassVoltage */
188 { "input.bypass.L1-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.2.1", "", SU_BYPASS_3
, NULL
},
189 { "input.bypass.L2-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.2.2", "", SU_BYPASS_3
, NULL
},
190 { "input.bypass.L3-N.voltage", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.2.3", "", SU_BYPASS_3
, NULL
},
191 { "input.bypass.current", 0, 0.1, IETF_OID_UPS_MIB
"5.3.1.3.1", "", SU_BYPASS_1
, NULL
}, /* upsBypassCurrent */
192 { "input.bypass.L1.current", 0, 0.1, IETF_OID_UPS_MIB
"5.3.1.3.1", "", SU_BYPASS_3
, NULL
},
193 { "input.bypass.L2.current", 0, 0.1, IETF_OID_UPS_MIB
"5.3.1.3.2", "", SU_BYPASS_3
, NULL
},
194 { "input.bypass.L3.current", 0, 0.1, IETF_OID_UPS_MIB
"5.3.1.3.3", "", SU_BYPASS_3
, NULL
},
195 { "input.bypass.realpower", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.4.1", "", SU_BYPASS_1
, NULL
}, /* upsBypassPower */
196 { "input.bypass.L1.realpower", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.4.1", "", SU_BYPASS_3
, NULL
},
197 { "input.bypass.L2.realpower", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.4.2", "", SU_BYPASS_3
, NULL
},
198 { "input.bypass.L3.realpower", 0, 1.0, IETF_OID_UPS_MIB
"5.3.1.4.3", "", SU_BYPASS_3
, NULL
},
202 { "debug.upsAlarmsPresent", 0, 1.0, IETF_OID_UPS_MIB
"6.1.0", "", 0, NULL
}, /* upsAlarmsPresent */
203 { "debug.upsAlarmBatteryBad", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.1", "", 0, NULL
}, /* upsAlarmBatteryBad */
204 { "debug.upsAlarmOnBattery", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.2", "", 0, NULL
}, /* upsAlarmOnBattery */
205 { "debug.upsAlarmLowBattery", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.3", "", 0, NULL
}, /* upsAlarmLowBattery */
206 { "debug.upsAlarmDepletedBattery", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.4", "", 0, NULL
}, /* upsAlarmDepletedBattery */
207 { "debug.upsAlarmTempBad", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.5", "", 0, NULL
}, /* upsAlarmTempBad */
208 { "debug.upsAlarmInputBad", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.6", "", 0, NULL
}, /* upsAlarmInputBad */
209 { "debug.upsAlarmOutputBad", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.7", "", 0, NULL
}, /* upsAlarmOutputBad */
211 { "ups.status", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.8", "", 0, ietf_overload_info
}, /* upsAlarmOutputOverload */
213 { "debug.upsAlarmOnBypass", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.9", "", 0, NULL
}, /* upsAlarmOnBypass */
214 { "debug.upsAlarmBypassBad", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.10", "", 0, NULL
}, /* upsAlarmBypassBad */
215 { "debug.upsAlarmOutputOffAsRequested", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.11", "", 0, NULL
}, /* upsAlarmOutputOffAsRequested */
216 { "debug.upsAlarmUpsOffAsRequested", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.12", "", 0, NULL
}, /* upsAlarmUpsOffAsRequested */
217 { "debug.upsAlarmChargerFailed", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.13", "", 0, NULL
}, /* upsAlarmChargerFailed */
218 { "debug.upsAlarmUpsOutputOff", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.14", "", 0, NULL
}, /* upsAlarmUpsOutputOff */
219 { "debug.upsAlarmUpsSystemOff", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.15", "", 0, NULL
}, /* upsAlarmUpsSystemOff */
220 { "debug.upsAlarmFanFailure", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.16", "", 0, NULL
}, /* upsAlarmFanFailure */
221 { "debug.upsAlarmFuseFailure", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.17", "", 0, NULL
}, /* upsAlarmFuseFailure */
222 { "debug.upsAlarmGeneralFault", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.18", "", 0, NULL
}, /* upsAlarmGeneralFault */
223 { "debug.upsAlarmDiagnosticTestFailed", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.19", "", 0, NULL
}, /* upsAlarmDiagnosticTestFailed */
224 { "debug.upsAlarmCommunicationsLost", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.20", "", 0, NULL
}, /* upsAlarmCommunicationsLost */
225 { "debug.upsAlarmAwaitingPower", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.21", "", 0, NULL
}, /* upsAlarmAwaitingPower */
226 { "debug.upsAlarmShutdownPending", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.22", "", 0, NULL
}, /* upsAlarmShutdownPending */
227 { "debug.upsAlarmShutdownImminent", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.23", "", 0, NULL
}, /* upsAlarmShutdownImminent */
228 { "debug.upsAlarmTestInProgress", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"6.3.24", "", 0, NULL
}, /* upsAlarmTestInProgress */
232 { "ups.status", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"7.1.0", "", 0, ietf_test_active_info
}, /* upsTestId */
233 { "test.battery.stop", 0, 0, IETF_OID_UPS_MIB
"7.1.0", IETF_OID_UPS_MIB
"7.7.2", SU_TYPE_CMD
, NULL
}, /* upsTestAbortTestInProgress */
234 { "test.battery.start", 0, 0, IETF_OID_UPS_MIB
"7.1.0", IETF_OID_UPS_MIB
"7.7.3", SU_TYPE_CMD
, NULL
}, /* upsTestGeneralSystemsTest */
235 { "test.battery.start.quick", 0, 0, IETF_OID_UPS_MIB
"7.1.0", IETF_OID_UPS_MIB
"7.7.4", SU_TYPE_CMD
, NULL
}, /* upsTestQuickBatteryTest */
236 { "test.battery.start.deep", 0, 0, IETF_OID_UPS_MIB
"7.1.0", IETF_OID_UPS_MIB
"7.7.5", SU_TYPE_CMD
, NULL
}, /* upsTestDeepBatteryCalibration */
238 { "debug.upsTestSpinLock", 0, 1.0, IETF_OID_UPS_MIB
"7.2.0", "", 0, NULL
}, /* upsTestSpinLock */
240 { "ups.test.result", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"7.3.0", "", 0, ietf_test_result_info
}, /* upsTestResultsSummary */
242 { "debug.upsTestResultsDetail", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"7.4.0", "", 0, NULL
}, /* upsTestResultsDetail */
243 { "debug.upsTestStartTime", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"7.5.0", "", 0, NULL
}, /* upsTestStartTime */
244 { "debug.upsTestElapsedTime", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"7.6.0", "", 0, NULL
}, /* upsTestElapsedTime */
249 { "debug.upsShutdownType", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"8.1.0", "", 0, ietf_shutdown_type_info
}, /* upsShutdownType */
251 { "ups.timer.shutdown", ST_FLAG_STRING
| ST_FLAG_RW
, 8, IETF_OID_UPS_MIB
"8.2.0", "", 0, NULL
}, /* upsShutdownAfterDelay*/
252 { "load.off", 0, 0, IETF_OID_UPS_MIB
"8.2.0", "", SU_TYPE_CMD
, NULL
},
253 { "ups.timer.start", ST_FLAG_STRING
| ST_FLAG_RW
, 8, IETF_OID_UPS_MIB
"8.3.0", "", 0, NULL
}, /* upsStartupAfterDelay */
254 { "load.on", 0, 0, IETF_OID_UPS_MIB
"8.3.0", "", SU_TYPE_CMD
, NULL
},
255 { "ups.timer.reboot", ST_FLAG_STRING
| ST_FLAG_RW
, 8, IETF_OID_UPS_MIB
"8.4.0", "", 0, NULL
}, /* upsRebootWithDuration */
256 { "ups.start.auto", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"8.5.0", "", 0, ietf_yes_no_info
}, /* upsAutoRestart */
258 /* Configuration Group */
259 { "input.voltage.nominal", 0, 1.0, IETF_OID_UPS_MIB
"9.1.0", "", 0, NULL
}, /* upsConfigInputVoltage */
260 { "input.frequency.nominal", 0, 0.1, IETF_OID_UPS_MIB
"9.2.0", "", 0, NULL
}, /* upsConfigInputFreq */
261 { "output.voltage.nominal", 0, 1.0, IETF_OID_UPS_MIB
"9.3.0", "", 0, NULL
}, /* upsConfigOutputVoltage */
262 { "output.frequency.nominal", 0, 0.1, IETF_OID_UPS_MIB
"9.4.0", "", 0, NULL
}, /* upsConfigOutputFreq */
263 { "output.power.nominal", 0, 1.0, IETF_OID_UPS_MIB
"9.5.0", "", 0, NULL
}, /* upsConfigOutputVA */
264 { "output.realpower.nominal", 0, 1.0, IETF_OID_UPS_MIB
"9.6.0", "", 0, NULL
}, /* upsConfigOutputPower */
265 { "battery.runtime.low", 0, 60.0, IETF_OID_UPS_MIB
"9.7.0", "", 0, NULL
}, /* upsConfigLowBattTime */
266 { "ups.beeper.status", ST_FLAG_STRING
, SU_INFOSIZE
, IETF_OID_UPS_MIB
"9.8.0", "", 0, ietf_beeper_status_info
}, /* upsConfigAudibleStatus */
267 { "beeper.disable", 0, 1, IETF_OID_UPS_MIB
"9.8.0", "", SU_TYPE_CMD
, NULL
},
268 { "beeper.enable", 0, 2, IETF_OID_UPS_MIB
"9.8.0", "", SU_TYPE_CMD
, NULL
},
269 { "beeper.mute", 0, 3, IETF_OID_UPS_MIB
"9.8.0", "", SU_TYPE_CMD
, NULL
},
270 { "input.transfer.low", 0, 1.0, IETF_OID_UPS_MIB
"9.9.0", "", 0, NULL
}, /* upsConfigLowVoltageTransferPoint */
271 { "input.transfer.high", 0, 1.0, IETF_OID_UPS_MIB
"9.10.0", "", 0, NULL
}, /* upsConfigHighVoltageTransferPoint */
273 /* end of structure. */
274 { NULL
, 0, 0, NULL
, NULL
, 0, NULL
}
277 mib2nut_info_t ietf
= { "ietf", IETF_MIB_VERSION
, IETF_OID_UPS_MIB
"4.1.0", IETF_OID_UPS_MIB
"1.1.0", ietf_mib
, IETF_SYSOID
};