Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP: eaton-ups-pwnm2-mib.c: two same numeric IDs in a lookup table #2303

Open
jimklimov opened this issue Feb 10, 2024 · 3 comments
Open

SNMP: eaton-ups-pwnm2-mib.c: two same numeric IDs in a lookup table #2303

jimklimov opened this issue Feb 10, 2024 · 3 comments
Assignees
Labels
Eaton impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) question SNMP
Milestone

Comments

@jimklimov
Copy link
Member

{ 10, "OL" /* high efficiency */, NULL, NULL },
{ 11, "BYPASS" /* maintenanceBypass */, NULL, NULL },
{ 11, "OL" /* essMode */, NULL, NULL },

@aquette : the two 11 values here, also in original code before the change - which one is right and which is a typo?

Originally posted by @jimklimov in #2285 (comment)

@jimklimov jimklimov changed the title SNMP: eaton-ups-pwnm2-mib.c: two same nueric IDs in a lookup table SNMP: eaton-ups-pwnm2-mib.c: two same numeric IDs in a lookup table Feb 10, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone Feb 10, 2024
@jimklimov jimklimov added the impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) label Feb 10, 2024
@jimklimov
Copy link
Member Author

Looked for these OIDs, and it seems to be originally xupsOutputSource from XUPS-MIB (which only went up to 10 in enum values), supplanted by PowerMIB which as of 2011 included the maintenanceBypass(11) entry:

https://www.eaton.com/content/dam/eaton/products/backup-power-ups-surge-it-power-distribution/power-management-software-connectivity/eaton-network-card-ms/eaton-ups-power-mib-release-notes.txt

Similarly in CPQPower MIB at http://www.circitor.fr/Mibs/Html/C/CPQPOWER-MIB.php (up to 10'th enum value though, with a different OID prefix).

Was there a published Eaton MIB (probably after 2011) that actually mentioned an "ESS mode" in some fashion?

@jimklimov
Copy link
Member Author

jimklimov commented Jul 22, 2024

@arnaudquette-eaton : gentle bump :)

@jimklimov
Copy link
Member Author

Feels curiously related to #2684 that adds "ESS mode" among other things to usbhid-ups generally and mge-hid.c in particular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Eaton impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) question SNMP
Projects
None yet
Development

No branches or pull requests

2 participants