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

Update Eaton MIBs 9PX - M2 network card #2372

Open
ashenmare opened this issue Mar 26, 2024 · 4 comments
Open

Update Eaton MIBs 9PX - M2 network card #2372

ashenmare opened this issue Mar 26, 2024 · 4 comments
Assignees
Labels
Eaton impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) SNMP
Milestone

Comments

@ashenmare
Copy link

ashenmare commented Mar 26, 2024

Eaton has been adding data, alarms and status from their newer UPS. They have updated the MIB files to reflect this. Can the new MIB file be included in the driver?
NUT 2.8.1
I have a Eaton 9PX6KSP model using SNMP v3 with the M2 network card.
Missing items that the USB interface provides, like VA and efficiency.

XUPS-MIB.txt

@ashenmare
Copy link
Author

I have also noticed incorrect ups.power and only showing 1 phase of the split phase and not the total output of the UPS.

28% of 5520 is 1545w not 627w

image png 52db58fd72e9ef29559be3b3de16afd6

@jimklimov
Copy link
Member

jimklimov commented Mar 26, 2024

CC @arnaudquette-eaton

@jimklimov jimklimov added Eaton SNMP impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) labels Apr 4, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone Apr 4, 2024
@jimklimov
Copy link
Member

jimklimov commented Jul 22, 2024

The MIB files are not "included" per se in the NUT drivers, but information from them are part of mapping tables (current NUT versions provide built-in C arrays of structures; the 42ITy "FTY" fork also includes DMF mappings that can be loaded at run-time; upstreaming pending per #1316 et al). Either way, variables in the NUT driver programs are to be modified based on the known mappings, and reported to consumers via NUT protocols.

@arghhh40k @akelleher : would you be able to try custom-building your NUT per https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests instructions, with its code for the drivers/*-mib.c file for the sub-driver you use further updated to include the new mappings you need, and posting a PR with the resulting fix?

One way about it is to start with https://github.com/networkupstools/nut/blob/master/docs/snmp-subdrivers.txt to generate a new subdriver based on a data walk, and use a diff editor like meld (or WinMerge if editing on Windows) to transplant the newly discovered mapping table lines.

@desertwitch
Copy link
Contributor

desertwitch commented Sep 24, 2024

For what it's worth, here's a rudimentary driver stub with dumped data from a simulated SNMP device on the new MIB:
https://gist.github.com/desertwitch/b9208033c3ab8817f2836d0674c12a35

root@TowerOLD:~/eaton# ./gen-snmp-subdriver.sh -H 192.168.0.100 -c public -n eaton-xups -M /root/eaton/mibs/ -s .1.3.6.1.4.1.534.1
Mode 1 selected
Using the provided sysOID override (.1.3.6.1.4.1.534.1)
Retrieving SNMP information. This may take some time
SNMP OIDs extracted = 132 / 132
Creating eaton-xups-mib.h
Creating eaton-xups-mib.c
Done.

This should help get the ball rolling with some additional (new) data points, most likely to enhance existing:
https://github.com/networkupstools/nut/blob/master/drivers/eaton-ups-pxg-mib.c
which is based on what seems to be a previous revision of Xups.mib, so probably best merged into?

I'll play around with this to my (limited) abilities, perhaps get a test driver for you somewhat functional... 😎
I do not own a 9PX device to test this with, just thought I'd share the OIDs and string descriptors as a possible start.
Plus there's always the additional question what/how things are used in real-world devices vs. defined within the MIB...
Do beware that the dump is from a simulated device, so while the OIDs/units/... are MIB-based, values are fictional here.

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) SNMP
Projects
None yet
Development

No branches or pull requests

4 participants