Skip to content

Commit

Permalink
add the additional Eaton MIBs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
fbegyn committed May 7, 2024
1 parent 9511fdd commit 79932d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/moni
READYNAS_URL := https://www.downloads.netgear.com/files/ReadyNAS/READYNAS-MIB.txt
READYDATAOS_URL := https://www.circitor.fr/Mibs/Mib/R/READYDATAOS-MIB.mib
XUPS_URL := 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
EATON_EMP_MIB_URL := http://m.eaton.com/ecm/groups/public/@pub/@electrical/documents/content/ct_141083.txt
EATON_OIDS_URL := https://www.circitor.fr/Mibs/Mib/E/EATON-OIDS.mib

CYBERPOWER_VERSION := 2.11
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
Expand Down Expand Up @@ -375,4 +377,8 @@ $(MIBDIR)/readydataos:

$(MIBDIR)/XUPS-MIB.mib:
@echo ">> Downloading XUPS-MIB.mib"
@curl $(CURL_OPTS) -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" --compressed -o $(MIBDIR)/XUPS-MIB.mib "$(XUPS_URL)"
@curl $(CURL_OPTS) -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" --compressed -o $(MIBDIR)/XUPS-MIB.mib $(XUPS_URL)
@echo ">> Downloading EATON-EMP-MIB"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-EMP-MIB $(EATON_EMP_MIB_URL)
@echo ">> Downloading EATON-OIDS"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-OIDS $(EATON_OIDS_URL)

0 comments on commit 79932d9

Please sign in to comment.