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

Simplify and cleanup the current SNMP data mapping #153

Open
4 tasks
aquette opened this issue Sep 12, 2014 · 0 comments
Open
4 tasks

Simplify and cleanup the current SNMP data mapping #153

aquette opened this issue Sep 12, 2014 · 0 comments

Comments

@aquette
Copy link
Member

aquette commented Sep 12, 2014

SNMP data mapping (SNMP OIDs to NUT variables) are currently hardcoded in *-mib.c files.
The next generation of SNMP driver ( #20 ) will use external data mapping (i.e., not hardcoded but text files).
However, most *-mib.c files use #define and other things that don't ease the current maintenance nor evolution, and that won't ease future conversion.
This should be limited to the following list of files:

  • apcc-mib.c
  • compaq-mib.c
  • eaton-mib.c
  • ietf-mib.c
  • netvision-mib.c
  • powerware-mib.c

Moreover, some structures (such as value lookup structures, ex: outlet_status_info) can be colliding, and should be added a suitable suffix (ex: outlet_status_info => eaton_marlin_outlet_status_info)

Todo list

  • have only 1 mib2nut per implementation (.c) file
  • have the implementation (.c and .h) files named after the mib2nut structure (i.e. "x.c / x.h => mib2nut x = ...")
  • replace all defines in structure by their values
  • have unique name for all value lookup structures
@aquette aquette changed the title Simplify the current SNMP data mapping Simplify and cleanup the current SNMP data mapping Aug 17, 2016
jimklimov added a commit to jimklimov/nut that referenced this issue Nov 16, 2021
Eaton: add support for EMP002 on ATS16 NM2 with SNMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant