Skip to content

Add XUPS-MIB to downloads for SNMP generator #1143

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fbegyn
Copy link
Contributor

@fbegyn fbegyn commented Mar 21, 2024

Add the XUPS-MIB to the Makefile for downloading.

@bastischubert
Copy link
Member

Hi @fbegyn , the most recent version of the mib is available at

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
Do you mind updating your PR to use the version from 2011 instead of the one from 2003?

@fbegyn fbegyn force-pushed the add-xups-mib branch 2 times, most recently from 28446ed to 9511fdd Compare May 7, 2024 22:47
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no example use of this in the generator. If you think this MIB is useful, please add an example module.

fbegyn added 4 commits July 13, 2024 01:17
To use the eaton url, we do need to mock a valid user agent. The host
seems to check and the "default" agent defined in the Makefile is
unsufficient.

Signed-off-by: Francis Begyn <[email protected]>
By upgrading to the new XUPS-MIB from Eaton, it pull in some dependencies that
can't be parsed without downloading them as well.

By downloading `EATON-OIDS` and `EATON-EMP-MIB` we fullfill the MIB requirements
of XUPS-MIB.

Signed-off-by: Francis Begyn <[email protected]>
Signed-off-by: Francis Begyn <[email protected]>
@fbegyn fbegyn requested a review from SuperQ July 12, 2024 23:24
@llamafilm
Copy link

I found my way here while trying to build my own config for this UPS. I'm having a problem with the alarm object, it looks like this:

xupsAlarmDescr{xupsAlarmDescr="1.3.6.1.4.1.534.1.7.13",xupsAlarmID="6"} 1

Net-snmp tools decodes the value like this, is this possible to do with the generator?

XUPS-MIB::xupsAlarmDescr.6 = OID: XUPS-MIB::xupsOutputOff

Here is the relevant sections of the MIB:

xupsAlarmDescr OBJECT-TYPE
    SYNTAX     OBJECT IDENTIFIER
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
        "A reference to an alarm description object.  The object
         referenced should not be accessible, but rather be used to
         provide a unique description of the alarm condition."
    ::= {xupsAlarmEntry 2}

--
-- Well known alarm conditions.
--
xupsOnBattery                    OBJECT IDENTIFIER ::= {xupsAlarm 3}
xupsLowBattery                   OBJECT IDENTIFIER ::= {xupsAlarm 4}
xupsUtilityPowerRestored         OBJECT IDENTIFIER ::= {xupsAlarm 5}
xupsReturnFromLowBattery         OBJECT IDENTIFIER ::= {xupsAlarm 6}
xupsOutputOverload               OBJECT IDENTIFIER ::= {xupsAlarm 7}
xupsInternalFailure              OBJECT IDENTIFIER ::= {xupsAlarm 8}
xupsBatteryDischarged            OBJECT IDENTIFIER ::= {xupsAlarm 9}
xupsInverterFailure              OBJECT IDENTIFIER ::= {xupsAlarm 10}
xupsOnBypass                     OBJECT IDENTIFIER ::= {xupsAlarm 11}
xupsBypassNotAvailable           OBJECT IDENTIFIER ::= {xupsAlarm 12}
xupsOutputOff                    OBJECT IDENTIFIER ::= {xupsAlarm 13}
xupsInputFailure                 OBJECT IDENTIFIER ::= {xupsAlarm 14}
xupsBuildingAlarm                OBJECT IDENTIFIER ::= {xupsAlarm 15}
xupsShutdownImminent             OBJECT IDENTIFIER ::= {xupsAlarm 16}
xupsOnInverter                   OBJECT IDENTIFIER ::= {xupsAlarm 17}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants