Skip to content

Commit

Permalink
Merge branch 'main' into bastischubert/add-prometheus-multi-module-ex…
Browse files Browse the repository at this point in the history
…ample
  • Loading branch information
bastischubert authored Jan 1, 2025
2 parents 746c400 + 0e4113f commit 6989ca2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ clean:
rm -rvf \
$(MIBDIR)/* \
$(MIBDIR)/.cisco_v2 \
$(MIBDIR)/.cisco_imc \
$(MIBDIR)/.dell \
$(MIBDIR)/.hpe-mib \
$(MIBDIR)/.net-snmp \
$(MIBDIR)/.paloalto_panos \
$(MIBDIR)/.synology \
Expand Down Expand Up @@ -125,7 +127,7 @@ mibs: \
$(MIBDIR)/ARISTA-SMI-MIB \
$(MIBDIR)/ARISTA-SW-IP-FORWARDING-MIB \
$(MIBDIR)/iDRAC-SMIv2.mib \
$(MIBDIR)/HPE-MIB \
$(MIBDIR)/.hpe-mib \
$(MIBDIR)/ENTITY-MIB \
$(MIBDIR)/ENTITY-SENSOR-MIB \
$(MIBDIR)/ENTITY-STATE-MIB \
Expand Down Expand Up @@ -198,14 +200,15 @@ $(MIBDIR)/iDRAC-SMIv2.mib:
@unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-SMIv2.mib
@rm -v $(TMP)

$(MIBDIR)/HPE-MIB:
$(MIBDIR)/.hpe-mib:
$(eval TMP := $(shell mktemp))
$(eval TMP_DIR := $(shell mktemp -d))
@echo ">> Downloading HPE to $(TMP)"
@curl -L $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(HPE_URL)
@tar -xf $(TMP) -C $(TMP_DIR)
@mv $(TMP_DIR)/*cpq*.mib $(MIBDIR)
@rm -rf $(TMP_DIR) $(TMP)
@touch $(MIBDIR)/.hpe-mib

$(MIBDIR)/ENTITY-MIB:
@echo ">> Downloading Cisco ENTITY-MIB"
Expand Down Expand Up @@ -422,4 +425,5 @@ $(MIBDIR)/.cisco_imc:
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-UNIFIED-COMPUTING-STORAGE-MIB.my "$(CISCO_CUCS_URL)/CISCO-UNIFIED-COMPUTING-STORAGE-MIB.my"
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-UNIFIED-COMPUTING-TC-MIB.my "$(CISCO_CUCS_URL)/CISCO-UNIFIED-COMPUTING-TC-MIB.my"
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-TC.my "$(CISCO_CUCS_URL_v2)/CISCO-TC.my"
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-SMI.my "$(CISCO_CUCS_URL_v2)/CISCO-SMI.my"
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-SMI.my "$(CISCO_CUCS_URL_v2)/CISCO-SMI.my"
@touch $(MIBDIR)/.cisco_imc

0 comments on commit 6989ca2

Please sign in to comment.