Skip to content

Commit

Permalink
Patch MIBs to import DisplayString from SNMPv2-TC instead of RFC1213-MIB
Browse files Browse the repository at this point in the history
Fixes #867

Signed-off-by: Brian Candler <[email protected]>
  • Loading branch information
candlerb committed Apr 14, 2023
1 parent 4b68fe9 commit ff45521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ mibs: \
$(MIBDIR)/apc-powernet-mib:
@echo ">> Downloading apc-powernet-mib"
@curl $(CURL_OPTS) -o $(MIBDIR)/apc-powernet-mib "$(APC_URL)"
@sed -i '' -e 's/\(DisplayString[[:space:]]*FROM \)RFC1213-MIB/\1SNMPv2-TC/' $(MIBDIR)/apc-powernet-mib

$(MIBDIR)/ARISTA-ENTITY-SENSOR-MIB:
@echo ">> Downloading ARISTA-ENTITY-SENSOR-MIB"
Expand Down Expand Up @@ -313,4 +314,5 @@ $(MIBDIR)/CyberPower.MIB:
@curl $(CURL_OPTS) -o $(TMP) $(CYBERPOWER_URL)
@unzip -j -d $(MIBDIR) $(TMP) CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB
@mv -v $(MIBDIR)/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB $@
@sed -i '' -e 's/\(DisplayString[[:space:]]*FROM \)RFC1213-MIB/\1SNMPv2-TC/' $@
@rm -v $(TMP)

0 comments on commit ff45521

Please sign in to comment.