Skip to content

Commit 28446ed

Browse files
committed
update the XUPS-MIB url to newer version
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.
1 parent eb64b45 commit 28446ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ INFRAPOWER_URL := https://www.austin-hughes.com/wp-content/uploads/2021/05/IP
5959
LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/monitoring/lgpmib-win_rev16_299461_0.zip
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
62-
XUPS_URL := https://www.circitor.fr/Mibs/Mib/X/XUPS-MIB.mib
62+
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
6363

6464
CYBERPOWER_VERSION := 2.11
6565
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
@@ -375,4 +375,4 @@ $(MIBDIR)/readydataos:
375375

376376
$(MIBDIR)/XUPS-MIB.mib:
377377
@echo ">> Downloading XUPS-MIB.mib"
378-
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/XUPS-MIB.mib "$(XUPS_URL)"
378+
@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)"

0 commit comments

Comments
 (0)