Eric Schultz
2011-Nov-30 18:02 UTC
[Nut-upsdev] Patch for addition of Cyberpower RMCARD100, 201, 202, 301 (snmp mib)
I did a bunch of work on this today. It should be all set to go. This patch is to add support for the Cyberpower RMCARD snmp cards. I basically copied the driver for bestpower, changed the name and updated the mib map. I have this running on two separate systems (two separate ups's) and it looks good. The only thing I could not figure out was updating the Makefile.am (my aclocal/libtools seem to be broken.) So I manually updated the Makefile.in to get it compiled. Someone with a build environment that works better than mine should be able to easily update the Makefile.am (I think there are just 2 or 3 entries... just find bestpower and add a cyberpower entry matching bestpower.) Attached are two patches: cyberpower-mib.patch - includes cyberpower-mib driver - updated snmp-ups man page - updated hcl cyberpower-mib.makefile.patch - my little hacking to drivers/Makefile.in ... used just so I could build it... only included for completness sake. Any chances of this getting integrated into main? I tried to keep it simple and tested. -- Cheers, Eric Schultz CyVon.Com P.O. Box 436 Antioch, IL 60002 Phone: +1.847.380.2144 Fax: +1.866.593.9058 Cell: +1.815.382.0936 -------------- next part -------------- A non-text attachment was scrubbed... Name: cyberpower-mib.patch Type: text/x-patch Size: 6512 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20111130/c54a286b/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: cyberpower-mib.makefile.patch Type: text/x-patch Size: 2087 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20111130/c54a286b/attachment-0001.bin>
Arnaud Quette
2011-Dec-01 22:38 UTC
[Nut-upsdev] Patch for addition of Cyberpower RMCARD100, 201, 202, 301 (snmp mib)
Hi Eric, 2011/11/30 Eric Schultz <eric.schultz at cyvon.com>:> I did a bunch of work on this today. It should be all set to go. > > This patch is to add support for the Cyberpower RMCARD snmp cards. > I basically copied the driver for bestpower, changed the name and > updated the mib map. > I have this running on two separate systems (two separate ups's) and it > looks good. > > The only thing I could not figure out was updating the Makefile.am (my > aclocal/libtools seem to be broken.) So I manually updated the > Makefile.in to get it compiled. Someone with a build environment that > works better than mine should be able to easily update the Makefile.am > (I think there are just 2 or 3 entries... just find bestpower and add a > cyberpower entry matching bestpower.) > > Attached are two patches: > cyberpower-mib.patch > ? ?- includes cyberpower-mib driver > ? ?- updated snmp-ups man page > ? ?- updated hcl > > cyberpower-mib.makefile.patch > ? ?- my little hacking to drivers/Makefile.in ... used just so I could > build it... only included for completness sake. > > Any chances of this getting integrated into main? I tried to keep it > simple and tested.sure, but after one tiny completion: I will need the sysOID value (Ie snmpget ... .1.3.6.1.2.1.1.2.0) I'll do some cleanup and make integration on my side. Thanks for your contribution. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/
Arnaud Quette
2011-Dec-05 15:55 UTC
[Nut-upsdev] Patch for addition of Cyberpower RMCARD100, 201, 202, 301 (snmp mib)
2011/12/5 Eric Schultz <eric.schultz at cyvon.com>:> > On 12/01/2011 04:38 PM, Arnaud Quette wrote: >> >> Hi Eric, >> >> 2011/11/30 Eric Schultz<eric.schultz at cyvon.com>: >>> >>> I did a bunch of work on this today. It should be all set to go. >>> >>> This patch is to add support for the Cyberpower RMCARD snmp cards. >>> I basically copied the driver for bestpower, changed the name and >>> updated the mib map. >>> I have this running on two separate systems (two separate ups's) and it >>> looks good. >>> >>> The only thing I could not figure out was updating the Makefile.am (my >>> aclocal/libtools seem to be broken.) So I manually updated the >>> Makefile.in to get it compiled. Someone with a build environment that >>> works better than mine should be able to easily update the Makefile.am >>> (I think there are just 2 or 3 entries... just find bestpower and add a >>> cyberpower entry matching bestpower.) >>> >>> Attached are two patches: >>> cyberpower-mib.patch >>> ? ?- includes cyberpower-mib driver >>> ? ?- updated snmp-ups man page >>> ? ?- updated hcl >>> >>> cyberpower-mib.makefile.patch >>> ? ?- my little hacking to drivers/Makefile.in ... used just so I could >>> build it... only included for completness sake. >>> >>> Any chances of this getting integrated into main? I tried to keep it >>> simple and tested. >> >> sure, but after one tiny completion: >> I will need the sysOID value (Ie snmpget ... .1.3.6.1.2.1.1.2.0) >> >> I'll do some cleanup and make integration on my side. >> Thanks for your contribution. >> >> cheers, >> Arnaud > > > the output of the command you gave was: > SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.3808 > > is that what you were looking for?yup, better in numeric format, but it's there easy to translate: .1.3.6.1.4.1.3808 Your patch is committed to the development version (trunk, r3341). If you have a chance, please test this trunk to ensure that everything is alright. thansk for your contribution, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/