Skip to content

Commit

Permalink
remove extra character from dell iDrac-SMIv1 MIB (prometheus#1141)
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Francis Begyn <[email protected]>
  • Loading branch information
fbegyn authored May 5, 2024
1 parent c35a87e commit a55c2b6
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 @@ -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

Expand Down

0 comments on commit a55c2b6

Please sign in to comment.