Skip to content

Commit 7de8494

Browse files
committed
add the additional Eaton MIBs
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]>
1 parent 7c27117 commit 7de8494

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

generator/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/moni
6060
READYNAS_URL := https://www.downloads.netgear.com/files/ReadyNAS/READYNAS-MIB.txt
6161
READYDATAOS_URL := https://www.circitor.fr/Mibs/Mib/R/READYDATAOS-MIB.mib
6262
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
63+
EATON_EMP_MIB_URL := http://m.eaton.com/ecm/groups/public/@pub/@electrical/documents/content/ct_141083.txt
64+
EATON_OIDS_URL := https://www.circitor.fr/Mibs/Mib/E/EATON-OIDS.mib
6365

6466
CYBERPOWER_VERSION := 2.11
6567
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
@@ -372,4 +374,8 @@ $(MIBDIR)/readydataos:
372374

373375
$(MIBDIR)/XUPS-MIB.mib:
374376
@echo ">> Downloading XUPS-MIB.mib"
375-
@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)"
377+
@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)
378+
@echo ">> Downloading EATON-EMP-MIB"
379+
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-EMP-MIB $(EATON_EMP_MIB_URL)
380+
@echo ">> Downloading EATON-OIDS"
381+
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-OIDS $(EATON_OIDS_URL)

0 commit comments

Comments
 (0)