[Nut-upsdev] snmp-ups hacking

Kjell Claesson kjell.claesson at telia.com
Wed Jan 25 18:32:36 UTC 2006


Hi,

This looks ok for me.

If there is no objections to the new naming for 3phase and
the patch, I submit it to the Development branch.

Arnaud, any comments or is it OK ?

/Kjell  

tis 2006-01-24 klockan 14:36 +0100 skrev Niklas Edmundsson:
> On Sun, 22 Jan 2006, Niklas Edmundsson wrote:
> 
> > Hi all!
> >
> > I'm wondering if there's anyone doing any hacking on the snmp-ups driver at 
> > the moment.
> 
> Obviously not, since noone has replied to my mail.
> 
> > I've started looking at implementing 3phase-support, and this uncovered some 
> > rather unpleasant stuff in the snmp-ups driver that I really need to fix in 
> > order to get things sane.
> 
> Attached is a patch that does the following:
> * Changes snmp-ups to use SNMP_MSG_GET instead of SNMP_MSG_GETNEXT.
> * Rips out the kludges caused by using getnext instead of get.
> * Fixes a couple of bugs and missing features in snmp-ups.
> * Updates the APC mib to work and report 3phase values.
> * Updates the other mibs to hopefully work, needs testing by people
>    with hardware.
> 
> The intent of submitting this patch to the list is to get feedback. If 
> noone has any objections I will continue work on it to include a patch 
> for new-names.txt that includes the documentation of the 3phase 
> related stuff.
> 
> Below is the output from our APC Silcon 120kW (3phase-3phase):
> --------------8<-------------
> ambient.humidity: 032.0
> ambient.temperature: 025.0
> battery.charge: 100.0
> battery.charge.low: 120
> battery.charge.restart: 0
> battery.runtime: 1080.0
> battery.voltage: 439.0
> driver.name: snmp-ups
> driver.parameter.mibs: apcc
> driver.parameter.port: ups.hpc2n.umu.se
> driver.parameter.snmp_version: v1
> driver.version: 2.1.0
> driver.version.internal: 0.41
> input.frequency: 000.0
> input.L1-L2.voltage: 393.0
> input.L1-L2.voltage.maximum: 413.0
> input.L1-L2.voltage.minimum: 000.0
> input.L1.current: 137.0
> input.L1.current.maximum: 160.0
> input.L1.current.minimum: 000.0
> input.L2-L3.voltage: 397.0
> input.L2-L3.voltage.maximum: 499.0
> input.L2-L3.voltage.minimum: 000.0
> input.L2.current: 154.0
> input.L2.current.maximum: 178.0
> input.L2.current.minimum: 000.0
> input.L3-L1.voltage: 390.0
> input.L3-L1.voltage.maximum: 409.0
> input.L3-L1.voltage.minimum: 000.0
> input.L3.current: 146.0
> input.L3.current.maximum: 170.0
> input.L3.current.minimum: 000.0
> input.phases: 3
> input.sensitivity: high
> input.transfer.high: 460
> input.transfer.low: 340
> input.voltage: 227.0
> output.current: 099.0
> output.frequency: 051.0
> output.L1-L2.voltage: 403.0
> output.L1.current: 133.0
> output.L1.current.maximum: 154.0
> output.L1.current.minimum: 002.0
> output.L1.power: 30900.0
> output.L1.power.maximum: 36100.0
> output.L1.power.maximum.percent: 090.0
> output.L1.power.minimum: 500.0
> output.L1.power.minimum.percent: 001.0
> output.L1.power.percent: 077.0
> output.L2-L3.voltage: 402.0
> output.L2.current: 153.0
> output.L2.current.maximum: 178.0
> output.L2.current.minimum: 002.0
> output.L2.power: 35300.0
> output.L2.power.maximum: 41300.0
> output.L2.power.maximum.percent: 103.0
> output.L2.power.minimum: 500.0
> output.L2.power.minimum.percent: 001.0
> output.L2.power.percent: 088.0
> output.L3-L1.voltage: 400.0
> output.L3.current: 141.0
> output.L3.current.maximum: 154.0
> output.L3.current.minimum: 002.0
> output.L3.power: 32600.0
> output.L3.power.maximum: 35700.0
> output.L3.power.maximum.percent: 089.0
> output.L3.power.minimum: 500.0
> output.L3.power.minimum.percent: 001.0
> output.L3.power.percent: 081.0
> output.phases: 3
> output.voltage: 231.0
> output.voltage.target.battery: 400
> ups.delay.shutdown: 20
> ups.delay.start: 0
> ups.firmware: 329.15.I
> ups.load: 088.0
> ups.mfr: APC
> ups.mfr.date: 00/00/00
> ups.model: Silcon DP3120E
> ups.serial: JA0323051572
> ups.status: OL
> ups.temperature: 021.0
> ups.test.result: InvalidTest
> --------------8<-------------
> 
> /Nikke
> -- 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>   Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     nikke at acc.umu.se
> ---------------------------------------------------------------------------
>   Q-Tip: Advice from the Continuum.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> _______________________________________________ Nut-upsdev mailing list Nut-upsdev at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev




More information about the Nut-upsdev mailing list