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

Remove Eaton from examples #843

Merged
merged 1 commit into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DOCKER_REPO ?= prom

APC_URL := 'https://download.schneider-electric.com/files?p_Doc_Ref=APC_POWERNETMIB_441_EN&p_enDocType=Firmware&p_File_Name=powernet441.mib'
ARISTA_URL := https://www.arista.com/assets/data/docs/MIBS
CISCO_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/main/v2
CISCO_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/2d465cce2de4e67a3561d8e41e4c99b597558d4b/v2
IANA_CHARSET_URL := https://www.iana.org/assignments/ianacharset-mib/ianacharset-mib
IANA_IFTYPE_URL := https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
IANA_PRINTER_URL := https://www.iana.org/assignments/ianaprinter-mib/ianaprinter-mib
Expand All @@ -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
Loading