Philippe Andersson
2014-Feb-27 10:06 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card
Hello list, I've installed NUT on an HP blade server, and I try to get it communicating via SNMP with 2 HP R3000 UPSes, each fitted with a AF465A management card. To do this, I used the snmp-ups driver, and configured it for the "cpqpower" MIB. Communication with the UPSes is established. My problem is that both UPSes constantly return the "OL OB" status which, in addition to being nonsensical, drives upsmon crazy (it flips between the two states every second). Here is the upsc output (from one of the UPSes -- they're both similar): -----------------------------<cut>-------------------------------- mcbackup:/etc/ups # upsc R3000-B at localhost ambient.temperature: 28.0 ambient.temperature.high: 40.00 ambient.temperature.low: 0.00 battery.charge: 99.00 battery.current: 0.00 battery.runtime: 7440.00 battery.voltage: 13.10 device.mfr: HP device.model: HP RT3000 G2 UPS device.serial: 3C83435450 device.type: ups driver.name: snmp-ups driver.parameter.mibs: auto driver.parameter.pollfreq: 15 driver.parameter.pollinterval: 2 driver.parameter.port: mcups1.cal.org driver.parameter.snmp_version: v1 driver.version: 2.6.5 driver.version.data: cpqpower MIB 1.5 driver.version.internal: 0.68 input.current: 0.40 input.frequency: 50.00 input.phases: 1.00 input.quality: 2.00 input.voltage: 209.00 input.voltage.nominal: 230 outlet.1.id: 1.00 outlet.1.status: on outlet.1.switchable: yes outlet.2.id: 2.00 outlet.2.status: on outlet.2.switchable: yes outlet.count: 2.00 outlet.desc: All outlets outlet.id: 0 output.current: 0.20 output.frequency: 50.00 output.frequency.nominal: 500 output.phases: 1.00 output.voltage: 223.00 output.voltage.nominal: 230 ups.delay.shutdown: 20 ups.delay.start: 30 ups.firmware: 01.06.0026;01.02.0004 ups.load: 19.00 ups.mfr: HP ups.model: HP RT3000 G2 UPS ups.realpower: 3000.00 ups.serial: 3C83435450 ups.status: OL OB <================ !!! ups.test.result: Unknown ups.timer.shutdown: 0.00 ups.timer.start: 0.00 ups.type: normal -----------------------------<cut>-------------------------------- If I use a MIB browser to inspect the .1.3.6.1.4.1.232.165.3.4.5.0 OID (defined in ./drivers/compaq-mib.c as "CPQPOWER_OID_POWER_STATUS"), the value returned by both UPSes is 3, meaning "OL" as defined in "cpqpower_pwr_info[]" (which is indeed the expected state for the UPS at present. But if I inspect OID .1.3.6.1.4.1.232.165.3.7.3.0 ("CPQPOWER_OID_ALARM_OB") as suggested by Arnaud, this one returns "1" on both UPSes (i.e. "OB", as defined in "cpqpower_alarm_ob[]") -- an information which is clearly inaccurate. Both UPSes are currently on grid power, as reported by their Web management interface. Both UPS management cards (HP P/N AF465A) are on the latest firmware version (v. 1.01.013). My system: OpenSUSE 13.1 64bit on HP BL460c in a C7000 enclosure nut-2.6.5-6.1.5.x86_64 nut-drivers-net-2.6.5-6.1.5.x86_64 net-snmp-5.7.2-9.1.2.x86_64 (NUT installed from official OpenSUSE repository) UPSes: UPS Name : HP RT3000 G2 UPS UPS Part Number : AF468A UPS Firmware Revision : 01.02.0004 Communication Board Firmware Revision : 01.06.0026 Card Firmware revision : 1.01.013 Card Part Number : AF465A Card Technical Level : 05 Card Hardware Revision : BB Attached is the captured trace of running the driver in debug mode. To me, this look more and more like a bug in the Management card firmware. Has any one of you already experienced this? Is there a workaround? TIA Cheers. Bye. 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 -------------- mcbackup:/usr/lib/ups/driver # ./snmp-ups -DD -a R3000-T Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5) 0.000000 debug level is '2' 0.001275 SNMP UPS driver : entering upsdrv_initups() 0.001345 SNMP UPS driver : entering nut_snmp_init(snmp-ups) 0.034325 SNMP UPS driver : entering load_mib2nut(cpqpower) 0.034384 load_mib2nut: trying classic method with 'cpqpower' mib 0.038862 load_mib2nut: using cpqpower mib 0.042973 Detected HP RT3000 G2 UPS on host mcups2.cal.org (mib: cpqpower 1.5) 0.043021 SNMP UPS driver : entering upsdrv_initinfo() 0.047657 upsdrv_initinfo(): adding command 'load.off' 0.051990 upsdrv_initinfo(): adding command 'load.on' 0.056720 upsdrv_initinfo(): adding command 'shutdown.stop' 0.061107 upsdrv_initinfo(): adding command 'load.off.delay' 0.065899 upsdrv_initinfo(): adding command 'load.on.delay' 0.070577 upsdrv_initinfo(): adding command 'shutdown.reboot' 0.074894 upsdrv_initinfo(): adding command 'test.battery.start' 0.074923 getting data: ups.mfr (.1.3.6.1.4.1.232.165.3.1.1.0) 0.074931 su_ups_get: ups.mfr .1.3.6.1.4.1.232.165.3.1.1.0 0.079277 entering su_setinfo(ups.mfr) 0.079322 => value: HP 0.079330 getting data: ups.model (.1.3.6.1.4.1.232.165.3.1.2.0) 0.079338 su_ups_get: ups.model .1.3.6.1.4.1.232.165.3.1.2.0 0.083398 entering su_setinfo(ups.model) 0.083431 => value: HP RT3000 G2 UPS 0.083440 getting data: ups.serial (.1.3.6.1.4.1.232.165.1.2.7.0) 0.083447 su_ups_get: ups.serial .1.3.6.1.4.1.232.165.1.2.7.0 0.087807 entering su_setinfo(ups.serial) 0.087840 => value: 3C83435640 0.087848 getting data: ups.firmware (.1.3.6.1.4.1.232.165.3.1.3.0) 0.087855 su_ups_get: ups.firmware .1.3.6.1.4.1.232.165.3.1.3.0 0.091908 entering su_setinfo(ups.firmware) 0.091942 => value: 01.06.0026;01.02.0004 0.091950 getting data: ups.load (.1.3.6.1.4.1.232.165.3.4.1.0) 0.091957 su_ups_get: ups.load .1.3.6.1.4.1.232.165.3.4.1.0 0.096081 entering su_setinfo(ups.load) 0.096110 => value: 25.00 0.096118 Check output_phases 0.096124 Check output_phases 0.096130 Check output_phases 0.096136 Check output_phases 0.096142 Check output_phases 0.096149 getting data: ups.status (.1.3.6.1.4.1.232.165.3.4.5.0) 0.096156 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.4.5.0 0.100990 SNMP UPS driver : entering su_status_set() 0.101016 su_find_infoval: found OL (value: 3) 0.101024 => value: 3 0.101032 getting data: ups.status (.1.3.6.1.4.1.232.165.3.2.5.0) 0.101039 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.2.5.0 0.107038 SNMP UPS driver : entering su_status_set() 0.107063 su_find_infoval: no matching INFO_* value for this OID value (3) 0.107071 => value: 3 0.107078 getting data: ups.status (.1.3.6.1.4.1.232.165.3.7.3.0) 0.107085 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.7.3.0 0.111617 SNMP UPS driver : entering su_status_set() 0.111643 su_find_infoval: found OB (value: 1) 0.111652 => value: 1 0.111659 getting data: ups.status (.1.3.6.1.4.1.232.165.3.7.4.0) 0.111666 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.7.4.0 0.116669 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.7.4.0: (noSuchName) There is no such variable name in this MIB. 0.116695 => Failed 0.116719 getting data: ups.type (.1.3.6.1.4.1.232.165.3.4.5.0) 0.116726 su_ups_get: ups.type .1.3.6.1.4.1.232.165.3.4.5.0 0.120919 su_find_infoval: found normal (value: 3) 0.120943 entering su_setinfo(ups.type) 0.120960 => value: normal 0.120968 getting data: ups.test.result (.1.3.6.1.4.1.232.165.3.7.2.0) 0.120975 su_ups_get: ups.test.result .1.3.6.1.4.1.232.165.3.7.2.0 0.125337 su_find_infoval: found Unknown (value: 1) 0.125384 entering su_setinfo(ups.test.result) 0.125445 => value: Unknown 0.125471 entering su_setinfo(ups.delay.shutdown) 0.125507 entering su_setinfo(ups.delay.start) 0.125555 getting data: ups.timer.shutdown (.1.3.6.1.4.1.232.165.3.8.1.0) 0.125595 su_ups_get: ups.timer.shutdown .1.3.6.1.4.1.232.165.3.8.1.0 0.130258 entering su_setinfo(ups.timer.shutdown) 0.130311 => value: 0.00 0.130335 getting data: ups.timer.start (.1.3.6.1.4.1.232.165.3.8.2.0) 0.130386 su_ups_get: ups.timer.start .1.3.6.1.4.1.232.165.3.8.2.0 0.134737 entering su_setinfo(ups.timer.start) 0.134790 => value: 0.00 0.134843 getting data: ambient.temperature (.1.3.6.1.4.1.232.165.3.6.1.0) 0.134866 su_ups_get: ambient.temperature .1.3.6.1.4.1.232.165.3.6.1.0 0.139419 entering su_setinfo(ambient.temperature) 0.139472 getting data: ambient.temperature.low (.1.3.6.1.4.1.232.165.3.6.2.0) 0.139526 su_ups_get: ambient.temperature.low .1.3.6.1.4.1.232.165.3.6.2.0 0.143757 entering su_setinfo(ambient.temperature.low) 0.143809 => value: 0.00 0.143862 getting data: ambient.temperature.high (.1.3.6.1.4.1.232.165.3.6.3.0) 0.143887 su_ups_get: ambient.temperature.high .1.3.6.1.4.1.232.165.3.6.3.0 0.148558 entering su_setinfo(ambient.temperature.high) 0.148611 => value: 40.00 0.148636 getting data: battery.charge (.1.3.6.1.4.1.232.165.3.2.4.0) 0.148686 su_ups_get: battery.charge .1.3.6.1.4.1.232.165.3.2.4.0 0.152776 entering su_setinfo(battery.charge) 0.152828 => value: 95.00 0.152853 getting data: battery.runtime (.1.3.6.1.4.1.232.165.3.2.1.0) 0.152904 su_ups_get: battery.runtime .1.3.6.1.4.1.232.165.3.2.1.0 0.157302 entering su_setinfo(battery.runtime) 0.157354 => value: 5877.00 0.157378 getting data: battery.voltage (.1.3.6.1.4.1.232.165.3.2.2.0) 0.157429 su_ups_get: battery.voltage .1.3.6.1.4.1.232.165.3.2.2.0 0.161484 entering su_setinfo(battery.voltage) 0.161536 => value: 13.70 0.161559 getting data: battery.current (.1.3.6.1.4.1.232.165.3.2.3.0) 0.161583 su_ups_get: battery.current .1.3.6.1.4.1.232.165.3.2.3.0 0.165647 entering su_setinfo(battery.current) 0.165710 => value: 0.00 0.165735 getting data: input.phases (.1.3.6.1.4.1.232.165.3.3.3.0) 0.165788 su_ups_get: input.phases .1.3.6.1.4.1.232.165.3.3.3.0 0.170217 setvar .1.3.6.1.4.1.232.165.3.3.3.0 0.170266 entering su_setinfo(input.phases) 0.170324 => value: 1.00 0.170360 getting data: input.frequency (.1.3.6.1.4.1.232.165.3.3.1.0) 0.170394 su_ups_get: input.frequency .1.3.6.1.4.1.232.165.3.3.1.0 0.174496 entering su_setinfo(input.frequency) 0.174547 => value: 50.00 0.174571 Check output_phases 0.174621 Check output_phases 0.174643 Check output_phases 0.174687 Check input_phases 0.174731 input_phases is not 3 0.174780 Check input_phases 0.174823 input_phases is not 3 0.174856 Check input_phases 0.174882 input_phases is not 3 0.174909 Check output_phases 0.174935 Check output_phases 0.174965 Check input_phases 0.174994 input_phases is not 3 0.175024 Check input_phases 0.175059 input_phases is not 3 0.175089 Check input_phases 0.175118 input_phases is not 3 0.175148 Check output_phases 0.175177 Check input_phases 0.175202 input_phases is not 3 0.175230 Check input_phases 0.175259 input_phases is not 3 0.175286 Check input_phases 0.175310 input_phases is not 3 0.175341 getting data: input.quality (.1.3.6.1.4.1.232.165.3.3.2.0) 0.175372 su_ups_get: input.quality .1.3.6.1.4.1.232.165.3.3.2.0 0.179878 entering su_setinfo(input.quality) 0.179960 => value: 3.00 0.180005 getting data: output.phases (.1.3.6.1.4.1.232.165.3.4.3.0) 0.180042 su_ups_get: output.phases .1.3.6.1.4.1.232.165.3.4.3.0 0.184435 setvar .1.3.6.1.4.1.232.165.3.4.3.0 0.184510 entering su_setinfo(output.phases) 0.184560 => value: 1.00 0.184614 getting data: output.frequency (.1.3.6.1.4.1.232.165.3.4.2.0) 0.184656 su_ups_get: output.frequency .1.3.6.1.4.1.232.165.3.4.2.0 0.189181 entering su_setinfo(output.frequency) 0.189260 => value: 50.00 0.189307 Check output_phases 0.189346 output_phases is 1 0.189370 getting data: output.frequency.nominal (.1.3.6.1.4.1.232.165.3.9.4.0) 0.189413 su_ups_get: output.frequency.nominal .1.3.6.1.4.1.232.165.3.9.4.0 0.193931 entering su_setinfo(output.frequency.nominal) 0.194005 => value: 500 0.194075 Check output_phases 0.194114 output_phases is 1 0.194148 getting data: output.voltage (.1.3.6.1.4.1.232.165.3.4.4.1.2) 0.194179 su_ups_get: output.voltage .1.3.6.1.4.1.232.165.3.4.4.1.2 0.199151 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.4.4.1.2: (noSuchName) There is no such variable name in this MIB. 0.199219 => Failed 0.199269 Check output_phases 0.199313 output_phases is 1 0.199341 getting data: output.voltage (.1.3.6.1.4.1.232.165.3.4.4.1.2.1) 0.199379 su_ups_get: output.voltage .1.3.6.1.4.1.232.165.3.4.4.1.2.1 0.203688 entering su_setinfo(output.voltage) 0.203754 => value: 205.00 0.203782 Check output_phases 0.203842 output_phases is 1 0.203863 getting data: output.voltage.nominal (.1.3.6.1.4.1.232.165.3.9.1.0) 0.203909 su_ups_get: output.voltage.nominal .1.3.6.1.4.1.232.165.3.9.1.0 0.208770 entering su_setinfo(output.voltage.nominal) 0.208828 => value: 204 0.208852 Check output_phases 0.208902 output_phases is not 3 0.208924 Check output_phases 0.208966 output_phases is not 3 0.209004 Check output_phases 0.209043 output_phases is not 3 0.209094 Check output_phases 0.209131 output_phases is 1 0.209156 getting data: output.current (.1.3.6.1.4.1.232.165.3.4.4.1.3) 0.209189 su_ups_get: output.current .1.3.6.1.4.1.232.165.3.4.4.1.3 0.214826 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.4.4.1.3: (noSuchName) There is no such variable name in this MIB. 0.214875 => Failed 0.214926 Check output_phases 0.214963 output_phases is 1 0.214997 getting data: output.current (.1.3.6.1.4.1.232.165.3.4.4.1.3.1) 0.215027 su_ups_get: output.current .1.3.6.1.4.1.232.165.3.4.4.1.3.1 0.219693 entering su_setinfo(output.current) 0.219758 => value: 0.30 0.219782 Check output_phases 0.219832 output_phases is not 3 0.219868 Check output_phases 0.219919 output_phases is not 3 0.219956 Check output_phases 0.219993 output_phases is not 3 0.220020 entering su_setinfo(outlet.id) 0.220060 entering su_setinfo(outlet.desc) 0.220099 getting data: outlet.count (.1.3.6.1.4.1.232.165.3.10.1.0) 0.220137 su_ups_get: outlet.count .1.3.6.1.4.1.232.165.3.10.1.0 0.224555 entering su_setinfo(outlet.count) 0.224608 => value: 2.00 0.224658 outlet template definition found (outlet.%i.switchable)... 0.229518 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.10.2.1.1.0: (noSuchName) There is no such variable name in this MIB. 0.234132 getting data: outlet.1.switchable (.1.3.6.1.4.1.232.165.3.10.2.1.1.1) 0.234180 su_ups_get: outlet.1.switchable .1.3.6.1.4.1.232.165.3.10.2.1.1.1 0.239278 su_find_infoval: found yes (value: 1) 0.239326 entering su_setinfo(outlet.1.switchable) 0.239386 => value: yes 0.239411 getting data: outlet.2.switchable (.1.3.6.1.4.1.232.165.3.10.2.1.1.2) 0.239453 su_ups_get: outlet.2.switchable .1.3.6.1.4.1.232.165.3.10.2.1.1.2 0.244044 su_find_infoval: found yes (value: 2) 0.244093 entering su_setinfo(outlet.2.switchable) 0.244155 => value: yes 0.244182 outlet template definition found (outlet.%i.id)... 0.244228 getting data: outlet.1.id (.1.3.6.1.4.1.232.165.3.10.2.1.1.1) 0.244273 su_ups_get: outlet.1.id .1.3.6.1.4.1.232.165.3.10.2.1.1.1 0.249196 entering su_setinfo(outlet.1.id) 0.249250 => value: 1.00 0.249304 getting data: outlet.2.id (.1.3.6.1.4.1.232.165.3.10.2.1.1.2) 0.249339 su_ups_get: outlet.2.id .1.3.6.1.4.1.232.165.3.10.2.1.1.2 0.253938 entering su_setinfo(outlet.2.id) 0.253992 => value: 2.00 0.254019 outlet template definition found (outlet.%i.status)... 0.254048 getting data: outlet.1.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.1) 0.254104 su_ups_get: outlet.1.status .1.3.6.1.4.1.232.165.3.10.2.1.2.1 0.259034 su_find_infoval: found on (value: 1) 0.259082 entering su_setinfo(outlet.1.status) 0.259144 => value: on 0.259182 getting data: outlet.2.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.2) 0.259211 su_ups_get: outlet.2.status .1.3.6.1.4.1.232.165.3.10.2.1.2.2 0.264008 su_find_infoval: found on (value: 1) 0.264057 entering su_setinfo(outlet.2.status) 0.264118 => value: on 0.264154 outlet template definition found (outlet.%i.load.off)... 0.264191 outlet template definition found (outlet.%i.load.on)... 0.264251 outlet template definition found (outlet.%i.load.cycle)... 0.264299 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.264338 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 0.264365 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.264397 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.264429 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 0.264456 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.6.0 0.264490 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.7.1.0 0.264525 SNMP UPS driver : entering upsdrv_updateinfo() 0.264565 getting data: ups.load (.1.3.6.1.4.1.232.165.3.4.1.0) 0.264596 su_ups_get: ups.load .1.3.6.1.4.1.232.165.3.4.1.0 0.269286 entering su_setinfo(ups.load) 0.269335 => value: 25.00 0.269358 Check output_phases 0.269408 output_phases is 1 0.269432 getting data: ups.realpower (.1.3.6.1.4.1.232.165.3.4.4.1.4) 0.269463 su_ups_get: ups.realpower .1.3.6.1.4.1.232.165.3.4.4.1.4 0.276741 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.4.4.1.4: (noSuchName) There is no such variable name in this MIB. 0.276791 => Failed 0.276814 [R3000-T] snmp_ups_walk: data stale for ups.realpower 0.276840 Check output_phases 0.276889 output_phases is 1 0.276929 getting data: ups.realpower (.1.3.6.1.4.1.232.165.3.9.3.0) 0.276969 su_ups_get: ups.realpower .1.3.6.1.4.1.232.165.3.9.3.0 0.281891 entering su_setinfo(ups.realpower) 0.281945 => value: 3000.00 0.281996 Check output_phases 0.282019 output_phases is not 3 0.282053 Check output_phases 0.282105 output_phases is not 3 0.282143 Check output_phases 0.282180 output_phases is not 3 0.282211 getting data: ups.status (.1.3.6.1.4.1.232.165.3.4.5.0) 0.282244 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.4.5.0 0.287029 SNMP UPS driver : entering su_status_set() 0.287077 su_find_infoval: found OL (value: 3) 0.287128 => value: 3 0.287151 getting data: ups.status (.1.3.6.1.4.1.232.165.3.2.5.0) 0.287175 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.2.5.0 0.291562 SNMP UPS driver : entering su_status_set() 0.291611 su_find_infoval: no matching INFO_* value for this OID value (3) 0.291688 => value: 3 0.291737 getting data: ups.status (.1.3.6.1.4.1.232.165.3.7.3.0) 0.291791 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.7.3.0 0.296794 SNMP UPS driver : entering su_status_set() 0.296844 su_find_infoval: found OB (value: 1) 0.296894 => value: 1 0.296918 getting data: ups.type (.1.3.6.1.4.1.232.165.3.4.5.0) 0.296941 su_ups_get: ups.type .1.3.6.1.4.1.232.165.3.4.5.0 0.301664 su_find_infoval: found normal (value: 3) 0.301761 entering su_setinfo(ups.type) 0.301801 => value: normal 0.301849 getting data: ups.test.result (.1.3.6.1.4.1.232.165.3.7.2.0) 0.301890 su_ups_get: ups.test.result .1.3.6.1.4.1.232.165.3.7.2.0 0.306225 su_find_infoval: found Unknown (value: 1) 0.306274 entering su_setinfo(ups.test.result) 0.306301 => value: Unknown 0.306325 getting data: ups.timer.shutdown (.1.3.6.1.4.1.232.165.3.8.1.0) 0.306354 su_ups_get: ups.timer.shutdown .1.3.6.1.4.1.232.165.3.8.1.0 0.310739 entering su_setinfo(ups.timer.shutdown) 0.310787 => value: 0.00 0.310837 getting data: ups.timer.start (.1.3.6.1.4.1.232.165.3.8.2.0) 0.310873 su_ups_get: ups.timer.start .1.3.6.1.4.1.232.165.3.8.2.0 0.315205 entering su_setinfo(ups.timer.start) 0.315254 => value: 0.00 0.315277 getting data: ambient.temperature (.1.3.6.1.4.1.232.165.3.6.1.0) 0.315328 su_ups_get: ambient.temperature .1.3.6.1.4.1.232.165.3.6.1.0 0.319900 entering su_setinfo(ambient.temperature) 0.319948 getting data: ambient.temperature.low (.1.3.6.1.4.1.232.165.3.6.2.0) 0.320001 su_ups_get: ambient.temperature.low .1.3.6.1.4.1.232.165.3.6.2.0 0.324225 entering su_setinfo(ambient.temperature.low) 0.324272 => value: 0.00 0.324323 getting data: ambient.temperature.high (.1.3.6.1.4.1.232.165.3.6.3.0) 0.324359 su_ups_get: ambient.temperature.high .1.3.6.1.4.1.232.165.3.6.3.0 0.330682 entering su_setinfo(ambient.temperature.high) 0.330742 => value: 40.00 0.330767 getting data: battery.charge (.1.3.6.1.4.1.232.165.3.2.4.0) 0.330816 su_ups_get: battery.charge .1.3.6.1.4.1.232.165.3.2.4.0 0.334898 entering su_setinfo(battery.charge) 0.334945 => value: 95.00 0.334968 getting data: battery.runtime (.1.3.6.1.4.1.232.165.3.2.1.0) 0.335019 su_ups_get: battery.runtime .1.3.6.1.4.1.232.165.3.2.1.0 0.339410 entering su_setinfo(battery.runtime) 0.339457 => value: 5877.00 0.339509 getting data: battery.voltage (.1.3.6.1.4.1.232.165.3.2.2.0) 0.339544 su_ups_get: battery.voltage .1.3.6.1.4.1.232.165.3.2.2.0 0.343611 entering su_setinfo(battery.voltage) 0.343659 => value: 13.70 0.343682 getting data: battery.current (.1.3.6.1.4.1.232.165.3.2.3.0) 0.343745 su_ups_get: battery.current .1.3.6.1.4.1.232.165.3.2.3.0 0.348161 entering su_setinfo(battery.current) 0.348208 => value: 0.00 0.348232 getting data: input.phases (.1.3.6.1.4.1.232.165.3.3.3.0) 0.348255 su_ups_get: input.phases .1.3.6.1.4.1.232.165.3.3.3.0 0.352339 setvar .1.3.6.1.4.1.232.165.3.3.3.0 0.352388 entering su_setinfo(input.phases) 0.352413 => value: 1.00 0.352437 getting data: input.frequency (.1.3.6.1.4.1.232.165.3.3.1.0) 0.352460 su_ups_get: input.frequency .1.3.6.1.4.1.232.165.3.3.1.0 0.357046 entering su_setinfo(input.frequency) 0.357094 => value: 50.00 0.357117 Check output_phases 0.357140 output_phases is 1 0.357162 getting data: input.voltage (.1.3.6.1.4.1.232.165.3.3.4.1.2) 0.357219 su_ups_get: input.voltage .1.3.6.1.4.1.232.165.3.3.4.1.2 0.361672 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.3.4.1.2: (noSuchName) There is no such variable name in this MIB. 0.361732 => Failed 0.361783 [R3000-T] snmp_ups_walk: data stale for input.voltage 0.361806 Check output_phases 0.361834 output_phases is 1 0.361870 getting data: input.voltage (.1.3.6.1.4.1.232.165.3.3.4.1.2.1) 0.361919 su_ups_get: input.voltage .1.3.6.1.4.1.232.165.3.3.4.1.2.1 0.366277 entering su_setinfo(input.voltage) 0.366332 => value: 206.00 0.366384 Check output_phases 0.366406 output_phases is 1 0.366427 getting data: input.voltage.nominal (.1.3.6.1.4.1.232.165.3.9.2.0) 0.366472 su_ups_get: input.voltage.nominal .1.3.6.1.4.1.232.165.3.9.2.0 0.371032 entering su_setinfo(input.voltage.nominal) 0.371091 => value: 204 0.371116 Check output_phases 0.371164 output_phases is 1 0.371198 getting data: input.current (.1.3.6.1.4.1.232.165.3.3.4.1.3) 0.371250 su_ups_get: input.current .1.3.6.1.4.1.232.165.3.3.4.1.3 0.375818 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.3.4.1.3: (noSuchName) There is no such variable name in this MIB. 0.375866 => Failed 0.375917 [R3000-T] snmp_ups_walk: data stale for input.current 0.375942 Check output_phases 0.375964 output_phases is 1 0.376004 getting data: input.current (.1.3.6.1.4.1.232.165.3.3.4.1.3.1) 0.376043 su_ups_get: input.current .1.3.6.1.4.1.232.165.3.3.4.1.3.1 0.380622 entering su_setinfo(input.current) 0.380673 => value: 0.40 0.380750 Check output_phases 0.380774 output_phases is 1 0.380808 getting data: input.realpower (.1.3.6.1.4.1.232.165.3.3.4.1.4) 0.380851 su_ups_get: input.realpower .1.3.6.1.4.1.232.165.3.3.4.1.4 0.385064 [R3000-T] nut_snmp_get: .1.3.6.1.4.1.232.165.3.3.4.1.4: (noSuchName) There is no such variable name in this MIB. 0.385113 => Failed 0.385165 [R3000-T] snmp_ups_walk: data stale for input.realpower 0.385201 getting data: input.quality (.1.3.6.1.4.1.232.165.3.3.2.0) 0.385224 su_ups_get: input.quality .1.3.6.1.4.1.232.165.3.3.2.0 0.389764 entering su_setinfo(input.quality) 0.389813 => value: 3.00 0.389837 getting data: output.phases (.1.3.6.1.4.1.232.165.3.4.3.0) 0.389889 su_ups_get: output.phases .1.3.6.1.4.1.232.165.3.4.3.0 0.394034 setvar .1.3.6.1.4.1.232.165.3.4.3.0 0.394083 entering su_setinfo(output.phases) 0.394137 => value: 1.00 0.394175 getting data: output.frequency (.1.3.6.1.4.1.232.165.3.4.2.0) 0.394221 su_ups_get: output.frequency .1.3.6.1.4.1.232.165.3.4.2.0 0.398733 entering su_setinfo(output.frequency) 0.398782 => value: 50.00 0.398834 getting data: output.frequency.nominal (.1.3.6.1.4.1.232.165.3.9.4.0) 0.398870 su_ups_get: output.frequency.nominal .1.3.6.1.4.1.232.165.3.9.4.0 0.403269 entering su_setinfo(output.frequency.nominal) 0.403319 => value: 500 0.403371 getting data: output.voltage (.1.3.6.1.4.1.232.165.3.4.4.1.2.1) 0.403406 su_ups_get: output.voltage .1.3.6.1.4.1.232.165.3.4.4.1.2.1 0.408030 entering su_setinfo(output.voltage) 0.408078 => value: 205.00 0.408128 getting data: output.voltage.nominal (.1.3.6.1.4.1.232.165.3.9.1.0) 0.408164 su_ups_get: output.voltage.nominal .1.3.6.1.4.1.232.165.3.9.1.0 0.412559 entering su_setinfo(output.voltage.nominal) 0.412609 => value: 204 0.412632 getting data: output.current (.1.3.6.1.4.1.232.165.3.4.4.1.3.1) 0.412655 su_ups_get: output.current .1.3.6.1.4.1.232.165.3.4.4.1.3.1 0.417436 entering su_setinfo(output.current) 0.417485 => value: 0.30 0.417539 getting data: outlet.count (.1.3.6.1.4.1.232.165.3.10.1.0) 0.417574 su_ups_get: outlet.count .1.3.6.1.4.1.232.165.3.10.1.0 0.421964 entering su_setinfo(outlet.count) 0.422012 => value: 2.00 0.422063 outlet template definition found (outlet.%i.status)... 0.422103 getting data: outlet.1.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.1) 0.422147 su_ups_get: outlet.1.status .1.3.6.1.4.1.232.165.3.10.2.1.2.1 0.427091 su_find_infoval: found on (value: 1) 0.427139 entering su_setinfo(outlet.1.status) 0.427194 => value: on 0.427231 getting data: outlet.2.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.2) 0.427275 su_ups_get: outlet.2.status .1.3.6.1.4.1.232.165.3.10.2.1.2.2 0.431873 su_find_infoval: found on (value: 1) 0.431921 entering su_setinfo(outlet.2.status) 0.431975 => value: on 0.432012 outlet template definition found (outlet.%i.load.off)... 0.432064 outlet template definition found (outlet.%i.load.on)... 0.432108 outlet template definition found (outlet.%i.load.cycle)... 0.432142 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.432185 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 0.432215 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.432249 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 0.432281 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 0.432308 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.6.0 0.432343 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.7.1.0 0.432484 dstate_init: sock /var/lib/ups/snmp-ups-R3000-T open on fd 5 0.432539 SNMP UPS driver : entering upsdrv_updateinfo() 2.434573 SNMP UPS driver : entering upsdrv_updateinfo() 4.436604 SNMP UPS driver : entering upsdrv_updateinfo() 6.438638 SNMP UPS driver : entering upsdrv_updateinfo() 8.440678 SNMP UPS driver : entering upsdrv_updateinfo() 10.442716 SNMP UPS driver : entering upsdrv_updateinfo() 12.444755 SNMP UPS driver : entering upsdrv_updateinfo() 14.446792 SNMP UPS driver : entering upsdrv_updateinfo() 16.448823 SNMP UPS driver : entering upsdrv_updateinfo() 16.448874 getting data: ups.load (.1.3.6.1.4.1.232.165.3.4.1.0) 16.448920 su_ups_get: ups.load .1.3.6.1.4.1.232.165.3.4.1.0 16.453163 entering su_setinfo(ups.load) 16.453211 => value: 25.00 16.453263 getting data: ups.realpower (.1.3.6.1.4.1.232.165.3.9.3.0) 16.453300 su_ups_get: ups.realpower .1.3.6.1.4.1.232.165.3.9.3.0 16.458017 entering su_setinfo(ups.realpower) 16.458066 => value: 3000.00 16.458118 getting data: ups.status (.1.3.6.1.4.1.232.165.3.4.5.0) 16.458156 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.4.5.0 16.462623 SNMP UPS driver : entering su_status_set() 16.462674 su_find_infoval: found OL (value: 3) 16.462737 => value: 3 16.462760 getting data: ups.status (.1.3.6.1.4.1.232.165.3.2.5.0) 16.462784 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.2.5.0 16.467442 SNMP UPS driver : entering su_status_set() 16.467492 su_find_infoval: no matching INFO_* value for this OID value (3) 16.467543 => value: 3 16.467567 getting data: ups.status (.1.3.6.1.4.1.232.165.3.7.3.0) 16.467591 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.7.3.0 16.472075 SNMP UPS driver : entering su_status_set() 16.472126 su_find_infoval: found OB (value: 1) 16.472177 => value: 1 16.472202 getting data: ups.type (.1.3.6.1.4.1.232.165.3.4.5.0) 16.472249 su_ups_get: ups.type .1.3.6.1.4.1.232.165.3.4.5.0 16.477212 su_find_infoval: found normal (value: 3) 16.477261 entering su_setinfo(ups.type) 16.477289 => value: normal 16.477316 getting data: ups.test.result (.1.3.6.1.4.1.232.165.3.7.2.0) 16.477347 su_ups_get: ups.test.result .1.3.6.1.4.1.232.165.3.7.2.0 16.481904 su_find_infoval: found Unknown (value: 1) 16.481953 entering su_setinfo(ups.test.result) 16.481981 => value: Unknown 16.482006 getting data: ups.timer.shutdown (.1.3.6.1.4.1.232.165.3.8.1.0) 16.482036 su_ups_get: ups.timer.shutdown .1.3.6.1.4.1.232.165.3.8.1.0 16.486687 entering su_setinfo(ups.timer.shutdown) 16.486748 => value: 0.00 16.486800 getting data: ups.timer.start (.1.3.6.1.4.1.232.165.3.8.2.0) 16.486836 su_ups_get: ups.timer.start .1.3.6.1.4.1.232.165.3.8.2.0 16.491189 entering su_setinfo(ups.timer.start) 16.491238 => value: 0.00 16.491262 getting data: ambient.temperature (.1.3.6.1.4.1.232.165.3.6.1.0) 16.491313 su_ups_get: ambient.temperature .1.3.6.1.4.1.232.165.3.6.1.0 16.495551 entering su_setinfo(ambient.temperature) 16.495603 getting data: ambient.temperature.low (.1.3.6.1.4.1.232.165.3.6.2.0) 16.495660 su_ups_get: ambient.temperature.low .1.3.6.1.4.1.232.165.3.6.2.0 16.500357 entering su_setinfo(ambient.temperature.low) 16.500407 => value: 0.00 16.500459 getting data: ambient.temperature.high (.1.3.6.1.4.1.232.165.3.6.3.0) 16.500484 su_ups_get: ambient.temperature.high .1.3.6.1.4.1.232.165.3.6.3.0 16.504729 entering su_setinfo(ambient.temperature.high) 16.504777 => value: 40.00 16.504801 getting data: battery.charge (.1.3.6.1.4.1.232.165.3.2.4.0) 16.504852 su_ups_get: battery.charge .1.3.6.1.4.1.232.165.3.2.4.0 16.509311 entering su_setinfo(battery.charge) 16.509361 => value: 96.00 16.509385 getting data: battery.runtime (.1.3.6.1.4.1.232.165.3.2.1.0) 16.509437 su_ups_get: battery.runtime .1.3.6.1.4.1.232.165.3.2.1.0 16.513622 entering su_setinfo(battery.runtime) 16.513672 => value: 5883.00 16.513696 getting data: battery.voltage (.1.3.6.1.4.1.232.165.3.2.2.0) 16.513732 su_ups_get: battery.voltage .1.3.6.1.4.1.232.165.3.2.2.0 16.518503 entering su_setinfo(battery.voltage) 16.518551 => value: 13.70 16.518575 getting data: battery.current (.1.3.6.1.4.1.232.165.3.2.3.0) 16.518626 su_ups_get: battery.current .1.3.6.1.4.1.232.165.3.2.3.0 16.522717 entering su_setinfo(battery.current) 16.522766 => value: 0.00 16.522817 getting data: input.phases (.1.3.6.1.4.1.232.165.3.3.3.0) 16.522853 su_ups_get: input.phases .1.3.6.1.4.1.232.165.3.3.3.0 16.528866 setvar .1.3.6.1.4.1.232.165.3.3.3.0 16.528916 entering su_setinfo(input.phases) 16.528970 => value: 1.00 16.529008 getting data: input.frequency (.1.3.6.1.4.1.232.165.3.3.1.0) 16.529045 su_ups_get: input.frequency .1.3.6.1.4.1.232.165.3.3.1.0 16.533155 entering su_setinfo(input.frequency) 16.533206 => value: 49.80 16.533230 getting data: input.voltage (.1.3.6.1.4.1.232.165.3.3.4.1.2.1) 16.533281 su_ups_get: input.voltage .1.3.6.1.4.1.232.165.3.3.4.1.2.1 16.537876 entering su_setinfo(input.voltage) 16.537926 => value: 206.00 16.537951 getting data: input.voltage.nominal (.1.3.6.1.4.1.232.165.3.9.2.0) 16.538002 su_ups_get: input.voltage.nominal .1.3.6.1.4.1.232.165.3.9.2.0 16.542400 entering su_setinfo(input.voltage.nominal) 16.542453 => value: 204 16.542478 getting data: input.current (.1.3.6.1.4.1.232.165.3.3.4.1.3.1) 16.542530 su_ups_get: input.current .1.3.6.1.4.1.232.165.3.3.4.1.3.1 16.547139 entering su_setinfo(input.current) 16.547189 => value: 0.40 16.547241 getting data: input.quality (.1.3.6.1.4.1.232.165.3.3.2.0) 16.547276 su_ups_get: input.quality .1.3.6.1.4.1.232.165.3.3.2.0 16.551355 entering su_setinfo(input.quality) 16.551405 => value: 3.00 16.551456 getting data: output.phases (.1.3.6.1.4.1.232.165.3.4.3.0) 16.551492 su_ups_get: output.phases .1.3.6.1.4.1.232.165.3.4.3.0 16.555657 setvar .1.3.6.1.4.1.232.165.3.4.3.0 16.555720 entering su_setinfo(output.phases) 16.555773 => value: 1.00 16.555810 getting data: output.frequency (.1.3.6.1.4.1.232.165.3.4.2.0) 16.555852 su_ups_get: output.frequency .1.3.6.1.4.1.232.165.3.4.2.0 16.560579 entering su_setinfo(output.frequency) 16.560630 => value: 49.80 16.560655 getting data: output.frequency.nominal (.1.3.6.1.4.1.232.165.3.9.4.0) 16.560716 su_ups_get: output.frequency.nominal .1.3.6.1.4.1.232.165.3.9.4.0 16.565384 entering su_setinfo(output.frequency.nominal) 16.565436 => value: 500 16.565462 getting data: output.voltage (.1.3.6.1.4.1.232.165.3.4.4.1.2.1) 16.565513 su_ups_get: output.voltage .1.3.6.1.4.1.232.165.3.4.4.1.2.1 16.570212 entering su_setinfo(output.voltage) 16.570263 => value: 206.00 16.570315 getting data: output.voltage.nominal (.1.3.6.1.4.1.232.165.3.9.1.0) 16.570353 su_ups_get: output.voltage.nominal .1.3.6.1.4.1.232.165.3.9.1.0 16.574891 entering su_setinfo(output.voltage.nominal) 16.574942 => value: 204 16.574995 getting data: output.current (.1.3.6.1.4.1.232.165.3.4.4.1.3.1) 16.575020 su_ups_get: output.current .1.3.6.1.4.1.232.165.3.4.4.1.3.1 16.580100 entering su_setinfo(output.current) 16.580150 => value: 0.30 16.580202 getting data: outlet.count (.1.3.6.1.4.1.232.165.3.10.1.0) 16.580238 su_ups_get: outlet.count .1.3.6.1.4.1.232.165.3.10.1.0 16.584661 entering su_setinfo(outlet.count) 16.584723 => value: 2.00 16.584748 outlet template definition found (outlet.%i.status)... 16.584805 getting data: outlet.1.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.1) 16.584837 su_ups_get: outlet.1.status .1.3.6.1.4.1.232.165.3.10.2.1.2.1 16.589907 su_find_infoval: found on (value: 1) 16.589956 entering su_setinfo(outlet.1.status) 16.590012 => value: on 16.590048 getting data: outlet.2.status (.1.3.6.1.4.1.232.165.3.10.2.1.2.2) 16.590092 su_ups_get: outlet.2.status .1.3.6.1.4.1.232.165.3.10.2.1.2.2 16.594676 su_find_infoval: found on (value: 1) 16.594739 entering su_setinfo(outlet.2.status) 16.594768 => value: on 16.594822 outlet template definition found (outlet.%i.load.off)... 16.594858 outlet template definition found (outlet.%i.load.on)... 16.594920 outlet template definition found (outlet.%i.load.cycle)... 16.594967 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 16.595006 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 16.595049 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 16.595077 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.1.0 16.595110 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.2.0 16.595138 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.8.6.0 16.595169 SU_CMD_MASK => .1.3.6.1.4.1.232.165.3.7.1.0 18.450716 SNMP UPS driver : entering upsdrv_updateinfo() 20.452747 SNMP UPS driver : entering upsdrv_updateinfo() 22.454783 SNMP UPS driver : entering upsdrv_updateinfo() 24.456821 SNMP UPS driver : entering upsdrv_updateinfo() 26.458859 SNMP UPS driver : entering upsdrv_updateinfo() 28.460898 SNMP UPS driver : entering upsdrv_updateinfo() 30.462932 SNMP UPS driver : entering upsdrv_updateinfo() ^C -------------- 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/20140227/0dd24c22/attachment-0001.sig>
Philippe Andersson
2014-Feb-27 14:25 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Additional question: I noticed on the HP Website that the latest version of "CPQPOWER.MIB" (1.76, dated Sept. 19, 2013) was more recent than the related file (./drivers/compaq-mib.c) in the NUT driver. Is the MIB structure as implemented on the management card perhaps no longer in line with the NUT driver ? The latest MIB file can be downloaded from the following URL: <https://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_bd9b6997fbc7fc515f4cf4626f5c8d01=wsrp-navigationalState%3Didx%3D|swItem%3DMTX_d32e012fd5f14f1fb3e3859897|itemLocale%3D|mode%3D|action%3DdriverDocument&javax.portlet.tpst=bd9b6997fbc7fc515f4cf4626f5c8d01&ac.admitted=1393496865122.876444892.492883150> TIA Cheers. Bye. Ph. A. On 27/02/14 11:06, Philippe Andersson wrote:> Hello list, > > I've installed NUT on an HP blade server, and I try to get it > communicating via SNMP with 2 HP R3000 UPSes, each fitted with a AF465A > management card. To do this, I used the snmp-ups driver, and configured > it for the "cpqpower" MIB. Communication with the UPSes is established. > > My problem is that both UPSes constantly return the "OL OB" status > which, in addition to being nonsensical, drives upsmon crazy (it flips > between the two states every second). > > Here is the upsc output (from one of the UPSes -- they're both similar): > > -----------------------------<cut>-------------------------------- > mcbackup:/etc/ups # upsc R3000-B at localhost > ambient.temperature: 28.0 > ambient.temperature.high: 40.00 > ambient.temperature.low: 0.00 > battery.charge: 99.00 > battery.current: 0.00 > battery.runtime: 7440.00 > battery.voltage: 13.10 > device.mfr: HP > device.model: HP RT3000 G2 UPS > device.serial: 3C83435450 > device.type: ups > driver.name: snmp-ups > driver.parameter.mibs: auto > driver.parameter.pollfreq: 15 > driver.parameter.pollinterval: 2 > driver.parameter.port: mcups1.cal.org > driver.parameter.snmp_version: v1 > driver.version: 2.6.5 > driver.version.data: cpqpower MIB 1.5 > driver.version.internal: 0.68 > input.current: 0.40 > input.frequency: 50.00 > input.phases: 1.00 > input.quality: 2.00 > input.voltage: 209.00 > input.voltage.nominal: 230 > outlet.1.id: 1.00 > outlet.1.status: on > outlet.1.switchable: yes > outlet.2.id: 2.00 > outlet.2.status: on > outlet.2.switchable: yes > outlet.count: 2.00 > outlet.desc: All outlets > outlet.id: 0 > output.current: 0.20 > output.frequency: 50.00 > output.frequency.nominal: 500 > output.phases: 1.00 > output.voltage: 223.00 > output.voltage.nominal: 230 > ups.delay.shutdown: 20 > ups.delay.start: 30 > ups.firmware: 01.06.0026;01.02.0004 > ups.load: 19.00 > ups.mfr: HP > ups.model: HP RT3000 G2 UPS > ups.realpower: 3000.00 > ups.serial: 3C83435450 > ups.status: OL OB <================ !!! > ups.test.result: Unknown > ups.timer.shutdown: 0.00 > ups.timer.start: 0.00 > ups.type: normal > -----------------------------<cut>-------------------------------- > > If I use a MIB browser to inspect the .1.3.6.1.4.1.232.165.3.4.5.0 OID > (defined in ./drivers/compaq-mib.c as "CPQPOWER_OID_POWER_STATUS"), the > value returned by both UPSes is 3, meaning "OL" as defined in > "cpqpower_pwr_info[]" (which is indeed the expected state for the UPS at > present. > > But if I inspect OID .1.3.6.1.4.1.232.165.3.7.3.0 > ("CPQPOWER_OID_ALARM_OB") as suggested by Arnaud, this one returns "1" > on both UPSes (i.e. "OB", as defined in "cpqpower_alarm_ob[]") -- an > information which is clearly inaccurate. Both UPSes are currently on > grid power, as reported by their Web management interface. > > Both UPS management cards (HP P/N AF465A) are on the latest firmware > version (v. 1.01.013). > > My system: > OpenSUSE 13.1 64bit on HP BL460c in a C7000 enclosure > nut-2.6.5-6.1.5.x86_64 > nut-drivers-net-2.6.5-6.1.5.x86_64 > net-snmp-5.7.2-9.1.2.x86_64 > (NUT installed from official OpenSUSE repository) > > UPSes: > UPS Name : HP RT3000 G2 UPS > UPS Part Number : AF468A > UPS Firmware Revision : 01.02.0004 > Communication Board Firmware Revision : 01.06.0026 > Card Firmware revision : 1.01.013 > Card Part Number : AF465A > Card Technical Level : 05 > Card Hardware Revision : BB > > Attached is the captured trace of running the driver in debug mode. > > To me, this look more and more like a bug in the Management card > firmware. Has any one of you already experienced this? Is there a > workaround? > > TIA > > Cheers. Bye. > > 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: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140227/dcf6e771/attachment.sig>
Philippe Andersson
2014-Mar-11 10:56 UTC
[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Further information on this issue, attn. Arnaud Quette: Here is the result of a test I made a few days ago. I've pulled the input plug on the UPS and watched the 3 critical OIDs through a MIB browser: - 1.3.6.1.4.1.232.165.3.4.5.0 goes from 3 (OL) to 5 (OB) (as expected => good) - 1.3.6.1.4.1.232.165.3.7.3.0 stays at 1 (OB) (=> seems meaningless) - 1.3.6.1.4.1.232.165.3.7.4.0 doesn't exist (either before or after pulling the plug) (supposed to carry 'LB' info => not good) Thanks in advance for any feedback you might have on this issue. If you need more or different debugging information, please let me know. TIA Cheers. Bye. Ph. A. On 27/02/14 15:25, Philippe Andersson wrote:> Additional question: I noticed on the HP Website that the latest version > of "CPQPOWER.MIB" (1.76, dated Sept. 19, 2013) was more recent than the > related file (./drivers/compaq-mib.c) in the NUT driver. > > Is the MIB structure as implemented on the management card perhaps no > longer in line with the NUT driver ? > > The latest MIB file can be downloaded from the following URL: > > <https://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_bd9b6997fbc7fc515f4cf4626f5c8d01=wsrp-navigationalState%3Didx%3D|swItem%3DMTX_d32e012fd5f14f1fb3e3859897|itemLocale%3D|mode%3D|action%3DdriverDocument&javax.portlet.tpst=bd9b6997fbc7fc515f4cf4626f5c8d01&ac.admitted=1393496865122.876444892.492883150> > > TIA > > Cheers. Bye. > > Ph. A. > > > On 27/02/14 11:06, Philippe Andersson wrote: >> Hello list, >> >> I've installed NUT on an HP blade server, and I try to get it >> communicating via SNMP with 2 HP R3000 UPSes, each fitted with a AF465A >> management card. To do this, I used the snmp-ups driver, and configured >> it for the "cpqpower" MIB. Communication with the UPSes is established. >> >> My problem is that both UPSes constantly return the "OL OB" status >> which, in addition to being nonsensical, drives upsmon crazy (it flips >> between the two states every second). >> >> Here is the upsc output (from one of the UPSes -- they're both similar): >> >> -----------------------------<cut>-------------------------------- >> mcbackup:/etc/ups # upsc R3000-B at localhost >> ambient.temperature: 28.0 >> ambient.temperature.high: 40.00 >> ambient.temperature.low: 0.00 >> battery.charge: 99.00 >> battery.current: 0.00 >> battery.runtime: 7440.00 >> battery.voltage: 13.10 >> device.mfr: HP >> device.model: HP RT3000 G2 UPS >> device.serial: 3C83435450 >> device.type: ups >> driver.name: snmp-ups >> driver.parameter.mibs: auto >> driver.parameter.pollfreq: 15 >> driver.parameter.pollinterval: 2 >> driver.parameter.port: mcups1.cal.org >> driver.parameter.snmp_version: v1 >> driver.version: 2.6.5 >> driver.version.data: cpqpower MIB 1.5 >> driver.version.internal: 0.68 >> input.current: 0.40 >> input.frequency: 50.00 >> input.phases: 1.00 >> input.quality: 2.00 >> input.voltage: 209.00 >> input.voltage.nominal: 230 >> outlet.1.id: 1.00 >> outlet.1.status: on >> outlet.1.switchable: yes >> outlet.2.id: 2.00 >> outlet.2.status: on >> outlet.2.switchable: yes >> outlet.count: 2.00 >> outlet.desc: All outlets >> outlet.id: 0 >> output.current: 0.20 >> output.frequency: 50.00 >> output.frequency.nominal: 500 >> output.phases: 1.00 >> output.voltage: 223.00 >> output.voltage.nominal: 230 >> ups.delay.shutdown: 20 >> ups.delay.start: 30 >> ups.firmware: 01.06.0026;01.02.0004 >> ups.load: 19.00 >> ups.mfr: HP >> ups.model: HP RT3000 G2 UPS >> ups.realpower: 3000.00 >> ups.serial: 3C83435450 >> ups.status: OL OB <================ !!! >> ups.test.result: Unknown >> ups.timer.shutdown: 0.00 >> ups.timer.start: 0.00 >> ups.type: normal >> -----------------------------<cut>-------------------------------- >> >> If I use a MIB browser to inspect the .1.3.6.1.4.1.232.165.3.4.5.0 OID >> (defined in ./drivers/compaq-mib.c as "CPQPOWER_OID_POWER_STATUS"), the >> value returned by both UPSes is 3, meaning "OL" as defined in >> "cpqpower_pwr_info[]" (which is indeed the expected state for the UPS at >> present. >> >> But if I inspect OID .1.3.6.1.4.1.232.165.3.7.3.0 >> ("CPQPOWER_OID_ALARM_OB") as suggested by Arnaud, this one returns "1" >> on both UPSes (i.e. "OB", as defined in "cpqpower_alarm_ob[]") -- an >> information which is clearly inaccurate. Both UPSes are currently on >> grid power, as reported by their Web management interface. >> >> Both UPS management cards (HP P/N AF465A) are on the latest firmware >> version (v. 1.01.013). >> >> My system: >> OpenSUSE 13.1 64bit on HP BL460c in a C7000 enclosure >> nut-2.6.5-6.1.5.x86_64 >> nut-drivers-net-2.6.5-6.1.5.x86_64 >> net-snmp-5.7.2-9.1.2.x86_64 >> (NUT installed from official OpenSUSE repository) >> >> UPSes: >> UPS Name : HP RT3000 G2 UPS >> UPS Part Number : AF468A >> UPS Firmware Revision : 01.02.0004 >> Communication Board Firmware Revision : 01.06.0026 >> Card Firmware revision : 1.01.013 >> Card Part Number : AF465A >> Card Technical Level : 05 >> Card Hardware Revision : BB >> >> Attached is the captured trace of running the driver in debug mode. >> >> To me, this look more and more like a bug in the Management card >> firmware. Has any one of you already experienced this? Is there a >> workaround? >> >> TIA >> >> Cheers. Bye. >> >> 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: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140311/af00802e/attachment.sig>
Seemingly Similar Threads
- warnung: base variable (battery.runtime.low) is immutable
- HP R12000/3 UPS reports status as OL DISCHRG OB
- Snmp-ups/netvision driver for Socomec UPS
- 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]