[Nut-upsdev] SNMP on HP UPS
Arjen de Korte
nut+devel at de-korte.org
Mon Aug 31 14:42:00 UTC 2009
Please keep list traffic on the list.
----- Doorgestuurd bericht van p.g.ward op stir.ac.uk -----
Datum: Mon, 31 Aug 2009 14:59:37 +0100
Van: Philip Ward <p.g.ward op stir.ac.uk>
Onderwerp: Re: [Nut-upsdev] SNMP on HP UPS
Aan: Arjen de Korte <nut+devel op de-korte.org>
Sure,
The output is attached.
However, it is not just unsupported OIDs that are a problem, but also
different OIDs.
output voltage is "1.3.6.1.2.1.33.1.4.4.1.2.1" on the af401a but ietf
has it at "1.3.6.1.2.1.33.1.4.4.1.2.0"
output current is "1.3.6.1.2.1.33.1.4.4.1.3.1" on the af401a but ietf
has it at "1.3.6.1.2.1.33.1.4.4.1.3.0"
Similarly for input.frequency, input.voltage and input.current. I'm not
sure that there is a way around these differences without either a new
mib, or changing the way that the driver scans the OID tree to try and
resolve them.
Thanks for taking the time to consider this.
-
Philip Ward
Unix Systems Administrator
Ext 7274
On Mon, 2009-08-31 at 14:30 +0100, Arjen de Korte wrote:
> Citeren Philip Ward <p.g.ward op stir.ac.uk>:
>
> [...]
>
> > Therefore I have created af401amib.h which is just a modified copy of
> > ietfmib.h.
>
> In that case, I very much doubt that it is needed to add another MIB
> to snmp-ups. Unsupported OIDs are meant to be ignored. Unless they
> happen to be the one that is used to check if the MIB is supported of
> course, this shouldn't cause the driver to exit at any time.
>
> > Here are the differences between ietfmib and af401amib
>
> [...]
>
> > Since the SNMP driver complains and exits if it tries to access a value
> > that is not supported it was necessary to completely remove upsupported
> > items from the specification.
>
> The SNMP driver *will* complain about unsupported OIDs (unfortunately,
> telling you that it is an error), but should proceed anyhow.
>
> Could you post the output of
>
> /path/to/snmp-ups -DDD -a upsname
>
> for the original (unmodified) snmp-ups driver?
>
> Best regards, Arjen
> --
> Please keep list traffic on the list
>
>
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev op lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
--
Academic Excellence at the Heart of Scotland.
The University of Stirling is a charity registered in Scotland,
number SC 011159.
----- Einde doorgestuurd bericht -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp-ups.log
Type: text/x-log
Size: 11444 bytes
Desc: niet beschikbaar
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20090831/e1a914ba/attachment-0001.bin>
More information about the Nut-upsdev
mailing list