Skip to content

Commit

Permalink
Import TP-Link EAP MIB
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Sébastien Hedde <jeanseb@au-fil-du.net>
  • Loading branch information
jeansebastienh committed Sep 4, 2023
1 parent 850e8f1 commit aeca020
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 1 deletion.
16 changes: 15 additions & 1 deletion generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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_VERSION := 1.0
EAP_URL := http://static.tp-link.com/EAP_Private_Mibs_$(EAP_VERSION).zip

.DEFAULT: all

.PHONY: all
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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)
6 changes: 6 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aeca020

Please sign in to comment.