Arnaud Quette
2014-Apr-05 20:01 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Philippe, Ivan, please see https://github.com/networkupstools/nut/issues/118 and send back your data. cheers Arno -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140405/682f10dd/attachment-0001.html>
Philippe Andersson
2014-Apr-07 11:45 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Hello Arnaud, On 05/04/14 22:01, Arnaud Quette wrote:> Philippe, Ivan, > > please see https://github.com/networkupstools/nut/issues/118 > and send back your data.I've pasted the requested files in github, but the auto-formatting may have damaged them, so here they are. Also, when I ran gen-snmp-subdriver.sh, it gave me the following message: -----------------------<cut>------------------------- snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) -----------------------<cut>------------------------- Not sure whether this invalidates the resulting files. Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan at iba-group.com <http://www.iba-worldwide.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: hp-af465a.mib-mib.c Type: text/x-csrc Size: 136624 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/75bf9261/attachment-0001.c> -------------- next part -------------- A non-text attachment was scrubbed... Name: hp-af465a.mib-mib.h Type: text/x-chdr Size: 1024 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/75bf9261/attachment-0001.h> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/75bf9261/attachment-0001.sig>
Ivan Kuznetsov
2014-Apr-07 13:27 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Hi I think an ineteresting OIDs begins from .1.3.6.1.4.1.232. To make a correct output you need 2 MIB files: CPQPOWER.MIB (you have it :) and CPQHOST.MIB. Put them in a separate folder (e.g. mibs-folder/) and add -M to the command line: snmpwalk -v 1 -c public -Os -M +mibs-folder/ -m ALL ups-address .1.3.6.1.4.1.232 Ivan 07.04.2014 15:45, Philippe Andersson ?????:> Hello Arnaud, > > On 05/04/14 22:01, Arnaud Quette wrote: >> Philippe, Ivan, >> >> please see https://github.com/networkupstools/nut/issues/118 >> and send back your data. > I've pasted the requested files in github, but the auto-formatting may > have damaged them, so here they are. > > Also, when I ran gen-snmp-subdriver.sh, it gave me the following message: > > -----------------------<cut>------------------------- > snmp_build: unknown failuresnmpget: Error building ASN.1 representation > (Can't build OID for variable) > -----------------------<cut>------------------------- > > Not sure whether this invalidates the resulting files.
Philippe Andersson
2014-Apr-07 16:10 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Arnaud, Ivan, Please find attached a set of patches that represent the changes I made to fix the issue on NUT ver. 2.6.5. At least, the UPS now properly reports "OL", "OB DISCHRG" and "OL CHRG" when appropriate. Of course, it still won't report "Low Batt", as there doesn't seem to be an OID for that any longer. I'll talk to HP about that, as I have a support ticket open with them as well. As you will see in my patch files, I've created a new subdriver called "cpqpower76" in order for the code to remain backward compatible with older versions of the MIB. I'll post this to github as well. HTH Cheers. Bye. Ph. A. On 07/04/14 13:45, Philippe Andersson wrote:> Hello Arnaud, > > On 05/04/14 22:01, Arnaud Quette wrote: >> Philippe, Ivan, >> >> please see https://github.com/networkupstools/nut/issues/118 >> and send back your data. > I've pasted the requested files in github, but the auto-formatting may > have damaged them, so here they are. > > Also, when I ran gen-snmp-subdriver.sh, it gave me the following message: > > -----------------------<cut>------------------------- > snmp_build: unknown failuresnmpget: Error building ASN.1 representation > (Can't build OID for variable) > -----------------------<cut>------------------------- > > Not sure whether this invalidates the resulting files. > > Ph. A. >-- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan at iba-group.com <http://www.iba-worldwide.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: compaq-mib.c.diff Type: text/x-patch Size: 12503 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: compaq-mib.h.diff Type: text/x-patch Size: 240 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment-0001.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: snmp-ups.c.diff Type: text/x-patch Size: 202 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment-0002.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment.sig>
Possibly Parallel Threads
- snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
- snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
- snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
- snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card
- snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]