From 85cd43eb34e862f8dd52a86991dc44ce05fb7729 Mon Sep 17 00:00:00 2001 From: Francis Begyn Date: Thu, 21 Mar 2024 11:31:57 +0100 Subject: [PATCH] remove extra character from dell iDrac-SMIv1 MIB The dell idrac mib is currently failing on parsing with the following error. This is because after the `MIB-END` indicitor, there are some broken characters interrupting the parsing. ``` Bad operator (: At line 13878 in ./mibs//iDRAC-SMIv1.mib ``` This can easily be solved by just removing the last line of this MIB. --- generator/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generator/Makefile b/generator/Makefile index c832ef50..b0c2898e 100644 --- a/generator/Makefile +++ b/generator/Makefile @@ -183,6 +183,8 @@ $(MIBDIR)/.dell: @echo ">> Downloading dell to $(TMP)" @curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(DELL_URL) @unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-*.mib + # There are some additional characters behind MIB end that break parsing + @sed -i '$ d' $(MIBDIR)/iDRAC-SMIv1.mib @rm -v $(TMP) @touch $(MIBDIR)/.dell