Skip to content

Commit

Permalink
Remove Eaton from examples
Browse files Browse the repository at this point in the history
Eaton has made their MIBs incaccessible to our CI. So remove them from
the examples.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed Feb 13, 2023
1 parent 1964bce commit 2157aba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 69 deletions.
16 changes: 0 additions & 16 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ WIENER_URL := https://file.wiener-d.com/software/net-snmp/WIENER-CRATE-MI
RARITAN_URL := https://cdn.raritan.com/download/PX/v1.5.20/PDU-MIB.txt
INFRAPOWER_URL := https://www.austin-hughes.com/wp-content/uploads/2021/05/IPD-03-S-MIB.zip
LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/monitoring/lgpmib-win_rev16_299461_0.zip
EATON_URL := https://powerquality.eaton.com/Support/Software-Drivers/Downloads/ePDU/EATON-EPDU-MIB.zip
EATON_OIDS_URL := https://raw.githubusercontent.com/librenms/librenms/master/mibs/eaton/EATON-OIDS

CYBERPOWER_VERSION := 2.10
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
Expand Down Expand Up @@ -127,9 +125,6 @@ mibs: mib-dir \
$(MIBDIR)/PDU-MIB.txt \
$(MIBDIR)/Infrapower-MIB.mib \
$(MIBDIR)/LIEBERT_GP_PDU.MIB \
$(MIBDIR)/EATON-EPDU-MIB.txt \
$(MIBDIR)/EATON-SENSOR-MIB.txt \
$(MIBDIR)/EATON-OIDS.txt \
$(MIBDIR)/CyberPower.MIB

mib-dir:
Expand Down Expand Up @@ -316,17 +311,6 @@ $(MIBDIR)/LIEBERT_GP_PDU.MIB:
@unzip -j -d $(MIBDIR) $(TMP) LIEBERT_GP_PDU.MIB LIEBERT_GP_REG.MIB
@rm -v $(TMP)

$(MIBDIR)/EATON-EPDU-MIB.txt $(MIBDIR)/EATON-SENSOR-MIB.txt:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading EATON-EPDU-MIB.txt to $(TMP)"
@curl $(CURL_OPTS) -o $(TMP) $(EATON_URL)
@unzip -j -d $(MIBDIR) $(TMP) EATON-EPDU-MIB.txt EATON-SENSOR-MIB.txt
@rm -v $(TMP)

$(MIBDIR)/EATON-OIDS.txt:
@echo ">> Downloading EATON-OIDS.txt to $@"
@curl $(CURL_OPTS) -o $@ $(EATON_OIDS_URL)

$(MIBDIR)/CyberPower.MIB:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading CyberPower.MIB to $(TMP)"
Expand Down
53 changes: 0 additions & 53 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -658,59 +658,6 @@ modules:
ifType:
type: EnumAsInfo

# Eaton ePDU
#
# https://www.eaton.com/us/en-us/catalog/backup-power-ups-surge-it-power-distribution/eaton-metered-outlet-rack-pdu.resources.html
eaton_epdu:
version: 1
walk:
- interfaces
- ifXTable
- communicationStatus
- internalStatus
- inputFrequency
- inputFrequencyStatus
- inputVoltageCount
- inputCurrentCount
- inputPowerCount
- inputFeedName
- inputVoltage
- inputVoltageThStatus
- inputCurrentCapacity
- inputCurrent
- inputCurrentThStatus
- inputCurrentCrestFactor
- inputCurrentPercentLoad
- inputVA
- inputWatts
- inputPowerCapacity
- outletCurrentCapacity
- outletCurrent
- outletCurrentThStatus
- outletCurrentCrestFactor
- outletCurrentPercentLoad
- outletVA
- outletWatts
- outletPowerFactor
- outletControlStatus
- humidityAlarm
- humidityValue
- temperatureAlarm
- temperatureValue
lookups:
- source_indexes: [strappingIndex, outletIndex]
lookup: 1.3.6.1.4.1.534.6.6.7.6.1.1.2 # outletID
- source_indexes: [strappingIndex, outletIndex]
lookup: 1.3.6.1.4.1.534.6.6.7.6.1.1.3 # outletName
- source_indexes: [strappingIndex, outletIndex]
lookup: 1.3.6.1.4.1.534.6.6.7.6.1.1.6 # outletDesignator
drop_source_indexes: true
overrides:
ifType:
type: EnumAsInfo
"1.3.6.1.4.1.534.6.6.7.6.1.1.3":
type: DisplayString

# CyberPower
#
# https://www.cyberpowersystems.com/product/software/mib-files/mib-v29/
Expand Down

0 comments on commit 2157aba

Please sign in to comment.