Skip to content

Commit

Permalink
update the XUPS-MIB url to newer version
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Francis Begyn <[email protected]>
  • Loading branch information
fbegyn committed May 7, 2024
1 parent eb64b45 commit 9511fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ INFRAPOWER_URL := https://www.austin-hughes.com/wp-content/uploads/2021/05/IP
LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/monitoring/lgpmib-win_rev16_299461_0.zip
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.circitor.fr/Mibs/Mib/X/XUPS-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

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

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

0 comments on commit 9511fdd

Please sign in to comment.