diff --git a/generator/Makefile b/generator/Makefile index 75905407..3dda3cb7 100644 --- a/generator/Makefile +++ b/generator/Makefile @@ -51,6 +51,9 @@ LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/moni CYBERPOWER_VERSION := 2.10 CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip +EAP_URL := http://static.tp-link.com/EAP_Private_Mibs_$(EAP_VERSION).zip +EAP_VERSION := 1.0 + .DEFAULT: all .PHONY: all @@ -126,7 +129,9 @@ mibs: \ $(MIBDIR)/PDU2-MIB.txt \ $(MIBDIR)/Infrapower-MIB.mib \ $(MIBDIR)/LIEBERT_GP_PDU.MIB \ - $(MIBDIR)/CyberPower.MIB + $(MIBDIR)/CyberPower.MIB \ + $(MIBDIR)/EAP.MIB \ + $(MIBDIR)/EAP-Client.MIB $(MIBDIR)/apc-powernet-mib: @echo ">> Downloading apc-powernet-mib" @@ -320,3 +325,12 @@ $(MIBDIR)/CyberPower.MIB: @sed -i.bak -E 's/(DisplayString[[:space:]]*FROM )RFC1213-MIB/\1SNMPv2-TC/' $@ @rm $@.bak @rm -v $(TMP) + +$(MIBDIR)/EAP.MIB $(MIBDIR)/EAP-Client.MIB: + $(eval TMP := $(shell mktemp)) + @echo ">> Downloading EAP.MIB to $(TMP)" + @curl $(CURL_OPTS) -o $(TMP) $(EAP_URL) + @unzip -j -d $(MIBDIR) $(TMP) EAP_Private-Mibs_$(EAP_VERSION)/TPLINK.mib EAP_Private-Mibs_$(EAP_VERSION)/EAP/clientMib/client.mib + @mv -v $(MIBDIR)/TPLINK.mib $(MIBDIR)/EAP.MIB + @mv -v $(MIBDIR)/client.mib $(MIBDIR)/EAP-Client.MIB + @rm -v $(TMP) diff --git a/generator/generator.yml b/generator/generator.yml index be2b490b..e8fbb4d9 100644 --- a/generator/generator.yml +++ b/generator/generator.yml @@ -599,3 +599,9 @@ modules: - 1.3.6.1.4.1.3808.1.1.1 # ups - 1.3.6.1.4.1.3808.1.1.4 # environmentSensor - 1.3.6.1.4.1.3808.1.1.6 # ePDU2 +# +# TP LINK EAP +# http://static.tp-link.com/EAP_Private_Mibs_1.0.zip + eap: + walk: + - 1.3.6.1.4.1.11863.10.1.1.1 # client count