apcupsd unable to do killpower with snmp driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apcupsd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 16.10
Release: 16.10
# apt-cache policy apcupsd
apcupsd:
Installed: 3.14.14-0.2
Candidate: 3.14.14-0.2
Version table:
*** 3.14.14-0.2 500
500 http://
100 /var/lib/
Symptoms: apcupsd --killpower unable to do killpower with SNMP driver
Issue was observed on:
UPS: Smart-UPS 2200
SNMP module:
MN:AP9619 HR:A10 MD:11/02/2005
AOS: 3.7.3 (02/02/2010), StatApp(name: sumx): 3.7.2 (02/02/2010)
tcpdump after "apcupsd --killpower" exec:
<...lines with getting UPS state...>
IP 192.168.1.38.57389 > 192.168.1.5.161: C=xxx SetRequest(33) .1.3.6.
IP 192.168.1.5.161 > 192.168.1.38.57389: C=xxx GetResponse(33) noSuchName@1 .1.3.6.
Main cause - upsBasicControl
Correct OID for upsBasicControl
I have tested this OID manually with snmpset - it's working correct.
Here tcpdump of this tests with comments:
IP 192.168.1.38.59474 > 192.168.1.5.161: C=xxx SetRequest(35) .1.3.6.
IP 192.168.1.5.161 > 192.168.1.38.59474: C=xxx GetResponse(35) genErr@1 .1.3.6.
IP 192.168.1.5.49315 > 192.168.1.38.162: Trap(108) .1.3.6.1.4.1.318 192.168.1.5 enterpriseSpecific s=5 26777240 .1.3.6.
IP 192.168.1.38.35216 > 192.168.1.5.161: C=xxx SetRequest(35) .1.3.6.
IP 192.168.1.5.161 > 192.168.1.38.35216: C=xxx GetResponse(35) .1.3.6.
Same problem with upsAdvControlUpsOff - correct OID .1.3.6.
In attach - patch with trying to fixing this problem in simplest way.
The attachment "oids.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]