Please keep list traffic on the list.

----- Doorgestuurd bericht van [email protected] -----
    Datum: Mon, 31 Aug 2009 14:59:37 +0100
      Van: Philip Ward <[email protected]>
 Onderwerp: Re: [Nut-upsdev] SNMP on HP UPS
      Aan: Arjen de Korte <[email protected]>

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 <[email protected]>:

[...]

> 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
[email protected]
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 -----
./snmp-ups -DDD -a upsccr-s15-2
Network UPS Tools - Generic SNMP UPS driver 0.44 (2.4.1)
debug level is '3'
SNMP UPS driver : entering upsdrv_initups()
SNMP UPS driver : entering nut_snmp_init(snmp-ups, upsccr-s15-2.stir.ac.uk, v1, public)
SNMP UPS driver : entering load_mib2nut(ietf)
load_mib2nut: using ietf mib
nut_snmp_get(1.3.6.1.2.1.33.1.1.2.0)
Detected R5500 XR         on host upsccr-s15-2.stir.ac.uk (mib: ietf 1.3)
SNMP UPS driver : entering upsdrv_initinfo()
su_ups_get: ups.mfr 1.3.6.1.2.1.33.1.1.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.1.1.0)
SNMP UPS driver : entering su_setinfo(ups.mfr)
=> value: Powerware Corporation
su_ups_get: ups.model 1.3.6.1.2.1.33.1.1.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.1.2.0)
SNMP UPS driver : entering su_setinfo(ups.model)
=> value: R5500 XR
su_ups_get: ups.firmware 1.3.6.1.2.1.33.1.1.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.1.3.0)
SNMP UPS driver : entering su_setinfo(ups.firmware)
=> value:  FP:  0.00  INV:  2.04
su_ups_get: ups.firmware.aux 1.3.6.1.2.1.33.1.1.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.1.4.0)
SNMP UPS driver : entering su_setinfo(ups.firmware.aux)
=> value: Version 3.60 (26-Nov-2001)
su_ups_get: ups.serial 1.3.6.1.2.1.33.1.1.5.0
nut_snmp_get(1.3.6.1.2.1.33.1.1.5.0)
SNMP UPS driver : entering su_setinfo(ups.serial)
=> value: ID: MX17490889      ,  Msg: 349994-B31
Check outphases
su_ups_get: ups.power 1.3.6.1.2.1.33.1.4.4.1.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.4.1.4.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.4.4.1.4.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
su_ups_get: ups.status 1.3.6.1.2.1.33.1.4.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found OL (value: 3)
=> value: 3
su_ups_get: ups.status 1.3.6.1.2.1.33.1.2.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found  (value: 2)
=> value: 2
su_ups_get: ups.test.result 1.3.6.1.2.1.33.1.7.4
nut_snmp_get(1.3.6.1.2.1.33.1.7.4)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.7.4: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
su_ups_get: battery.charge 1.3.6.1.2.1.33.1.2.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.4.0)
SNMP UPS driver : entering su_setinfo(battery.charge)
=> value: 99.00
su_ups_get: battery.runtime 1.3.6.1.2.1.33.1.2.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.3.0)
SNMP UPS driver : entering su_setinfo(battery.runtime)
=> value: 1860.00
su_ups_get: battery.runtime.low 1.3.6.1.2.1.33.1.9.7.0
nut_snmp_get(1.3.6.1.2.1.33.1.9.7.0)
SNMP UPS driver : entering su_setinfo(battery.runtime.low)
=> value: 3
su_ups_get: battery.voltage 1.3.6.1.2.1.33.1.2.5.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.5.0)
SNMP UPS driver : entering su_setinfo(battery.voltage)
=> value: 259.20
su_ups_get: battery.current 1.3.6.1.2.1.33.1.2.6.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.6.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.2.6.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
su_ups_get: battery.temperature 1.3.6.1.2.1.33.1.2.7.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.7.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.2.7.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
su_ups_get: output.phases 1.3.6.1.2.1.33.1.4.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.3.0)
setvar 1.3.6.1.2.1.33.1.4.3.0
SNMP UPS driver : entering su_setinfo(output.phases)
=> value: 1.00
su_ups_get: output.frequency 1.3.6.1.2.1.33.1.4.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.2.0)
SNMP UPS driver : entering su_setinfo(output.frequency)
=> value: 50.00
Check outphases
outphases is set
su_ups_get: output.voltage 1.3.6.1.2.1.33.1.4.4.1.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.4.1.2.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.4.4.1.2.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check outphases
outphases is set
su_ups_get: output.current 1.3.6.1.2.1.33.1.4.4.1.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.4.1.3.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.4.4.1.3.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check outphases
outphases is set
su_ups_get: output.realpower 1.3.6.1.2.1.33.1.4.4.1.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.4.1.4.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.4.4.1.4.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
Check outphases
outphases is set
outphases is not 3
su_ups_get: input.phases 1.3.6.1.2.1.33.1.3.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.2.0)
setvar 1.3.6.1.2.1.33.1.3.2.0
SNMP UPS driver : entering su_setinfo(input.phases)
=> value: 1.00
Check inphases
inphases is set
su_ups_get: input.frequency 1.3.6.1.2.1.33.1.3.3.1.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.3.1.2.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.3.3.1.2.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check inphases
inphases is set
su_ups_get: input.voltage 1.3.6.1.2.1.33.1.3.3.1.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.3.1.3.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.3.3.1.3.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check inphases
inphases is set
su_ups_get: input.current 1.3.6.1.2.1.33.1.3.3.1.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.3.1.4.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.3.3.1.4.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
Check inphases
inphases is set
inphases is not 3
su_ups_get: input.quality 1.3.6.1.2.1.33.1.3.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.1.0)
SNMP UPS driver : entering su_setinfo(input.quality)
=> value: 0.00
SU_CMD_MASK => 1.3.6.1.2.1.33.1.8.2
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
SNMP UPS driver : entering upsdrv_updateinfo()
Check outphases
outphases is set
su_ups_get: ups.load 1.3.6.1.2.1.33.1.4.4.1.5.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.4.1.5.0)
[upsccr-s15-2] nut_snmp_get: 1.3.6.1.2.1.33.1.4.4.1.5.0: Error in packet: (noSuchName) There is no such variable name in this MIB.
=> Failed
[upsccr-s15-2] snmp_ups_walk: data stale for ups.load
su_ups_get: ups.status 1.3.6.1.2.1.33.1.4.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found OL (value: 3)
=> value: 3
su_ups_get: ups.status 1.3.6.1.2.1.33.1.2.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found  (value: 2)
=> value: 2
su_ups_get: battery.charge 1.3.6.1.2.1.33.1.2.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.4.0)
SNMP UPS driver : entering su_setinfo(battery.charge)
=> value: 99.00
su_ups_get: battery.runtime 1.3.6.1.2.1.33.1.2.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.3.0)
SNMP UPS driver : entering su_setinfo(battery.runtime)
=> value: 1860.00
su_ups_get: battery.runtime.low 1.3.6.1.2.1.33.1.9.7.0
nut_snmp_get(1.3.6.1.2.1.33.1.9.7.0)
SNMP UPS driver : entering su_setinfo(battery.runtime.low)
=> value: 3
su_ups_get: battery.voltage 1.3.6.1.2.1.33.1.2.5.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.5.0)
SNMP UPS driver : entering su_setinfo(battery.voltage)
=> value: 259.20
su_ups_get: output.phases 1.3.6.1.2.1.33.1.4.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.3.0)
setvar 1.3.6.1.2.1.33.1.4.3.0
SNMP UPS driver : entering su_setinfo(output.phases)
=> value: 1.00
su_ups_get: output.frequency 1.3.6.1.2.1.33.1.4.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.2.0)
SNMP UPS driver : entering su_setinfo(output.frequency)
=> value: 50.00
su_ups_get: input.phases 1.3.6.1.2.1.33.1.3.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.2.0)
setvar 1.3.6.1.2.1.33.1.3.2.0
SNMP UPS driver : entering su_setinfo(input.phases)
=> value: 1.00
su_ups_get: input.quality 1.3.6.1.2.1.33.1.3.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.1.0)
SNMP UPS driver : entering su_setinfo(input.quality)
=> value: 0.00
SU_CMD_MASK => 1.3.6.1.2.1.33.1.8.2
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
dstate_init: sock /var/state/ups/snmp-ups-upsccr-s15-2 open on fd 5
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
su_ups_get: ups.status 1.3.6.1.2.1.33.1.4.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found OL (value: 3)
=> value: 3
su_ups_get: ups.status 1.3.6.1.2.1.33.1.2.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.1.0)
SNMP UPS driver : entering su_status_set()
su_find_infoval: found  (value: 2)
=> value: 2
su_ups_get: battery.charge 1.3.6.1.2.1.33.1.2.4.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.4.0)
SNMP UPS driver : entering su_setinfo(battery.charge)
=> value: 99.00
su_ups_get: battery.runtime 1.3.6.1.2.1.33.1.2.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.3.0)
SNMP UPS driver : entering su_setinfo(battery.runtime)
=> value: 1860.00
su_ups_get: battery.runtime.low 1.3.6.1.2.1.33.1.9.7.0
nut_snmp_get(1.3.6.1.2.1.33.1.9.7.0)
SNMP UPS driver : entering su_setinfo(battery.runtime.low)
=> value: 3
su_ups_get: battery.voltage 1.3.6.1.2.1.33.1.2.5.0
nut_snmp_get(1.3.6.1.2.1.33.1.2.5.0)
SNMP UPS driver : entering su_setinfo(battery.voltage)
=> value: 258.70
su_ups_get: output.phases 1.3.6.1.2.1.33.1.4.3.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.3.0)
setvar 1.3.6.1.2.1.33.1.4.3.0
SNMP UPS driver : entering su_setinfo(output.phases)
=> value: 1.00
su_ups_get: output.frequency 1.3.6.1.2.1.33.1.4.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.4.2.0)
SNMP UPS driver : entering su_setinfo(output.frequency)
=> value: 49.90
su_ups_get: input.phases 1.3.6.1.2.1.33.1.3.2.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.2.0)
setvar 1.3.6.1.2.1.33.1.3.2.0
SNMP UPS driver : entering su_setinfo(input.phases)
=> value: 1.00
su_ups_get: input.quality 1.3.6.1.2.1.33.1.3.1.0
nut_snmp_get(1.3.6.1.2.1.33.1.3.1.0)
SNMP UPS driver : entering su_setinfo(input.quality)
=> value: 0.00
SU_CMD_MASK => 1.3.6.1.2.1.33.1.8.2
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
SU_CMD_MASK => 1.3.6.1.2.1.33.1.7.1
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
SNMP UPS driver : entering upsdrv_updateinfo()
Signal 2: exiting
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to