From afedc001b3f4abbc11f43e995f6166091bc48d9d Mon Sep 17 00:00:00 2001 From: Igor Shishkin Date: Wed, 30 Oct 2024 08:56:49 +0300 Subject: [PATCH] Add powercom MIBs Signed-off-by: Igor Shishkin --- generator/Makefile | 8 +++++++- generator/generator.yml | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/generator/Makefile b/generator/Makefile index e45b69a7..2ef7838f 100644 --- a/generator/Makefile +++ b/generator/Makefile @@ -60,6 +60,7 @@ LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/moni READYNAS_URL := https://www.downloads.netgear.com/files/ReadyNAS/READYNAS-MIB.txt READYDATAOS_URL := https://www.downloads.netgear.com/files/GDC/RD5200/READYDATA_MIB.zip SOPHOS_XG_URL := https://docs.sophos.com/nsg/sophos-firewall/MIB/SOPHOS-XG-MIB.zip +POWERCOM_URL := https://www.upspowercom.com/pcm-img/Card-DA807/Upsmate_PCM.mib CYBERPOWER_VERSION := 2.11 CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip @@ -152,7 +153,8 @@ mibs: \ $(MIBDIR)/LIEBERT_GP_PDU.MIB \ $(MIBDIR)/CyberPower.MIB \ $(MIBDIR)/EAP.MIB \ - $(MIBDIR)/EAP-Client.MIB + $(MIBDIR)/EAP-Client.MIB \ + $(MIBDIR)/powercom.txt $(MIBDIR)/apc-powernet-mib: @echo ">> Downloading apc-powernet-mib" @@ -382,3 +384,7 @@ $(MIBDIR)/readydataos: @unzip -j -d $(MIBDIR) $(TMP) READYDATAOS-MIB.txt @mv -v $(MIBDIR)/READYDATAOS-MIB.txt $(MIBDIR)/readydataos @rm -v $(TMP) + +$(MIBDIR)/powercom: + @echo ">> Downloading powercom" + @curl $(CURL_OPTS) -o $(MIBDIR)/powercom.txt "$(POWERCOM_URL)" diff --git a/generator/generator.yml b/generator/generator.yml index 784157e6..4cc16bd1 100644 --- a/generator/generator.yml +++ b/generator/generator.yml @@ -752,3 +752,17 @@ modules: hrSWInstalled: walk: - hrSWInstalled + +# +# Powercom MIBs +# +# https://www.upspowercom.com/Card-DA807.jsp +# + powercom: + walk: + - 1.3.6.1.4.1.935.1.1.1.1 + - 1.3.6.1.4.1.935.1.1.1.2 + - 1.3.6.1.4.1.935.1.1.1.3 + - 1.3.6.1.4.1.935.1.1.1.4 + - 1.3.6.1.4.1.935.1.1.1.9 + - 1.3.6.1.4.1.476.1.42.3