Skip to content

Commit

Permalink
feat: adding dell support (#1125)
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Kreitzer <[email protected]>
  • Loading branch information
buroa authored Feb 29, 2024
1 parent 35a5112 commit 1242b20
Show file tree
Hide file tree
Showing 3 changed files with 6,042 additions and 0 deletions.
11 changes: 11 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ endif
APC_URL := https://download.schneider-electric.com/files?p_enDocType=Firmware&p_File_Name=powernet451.mib&p_Doc_Ref=APC_POWERNETMIB_451_EN
ARISTA_URL := https://www.arista.com/assets/data/docs/MIBS
CISCO_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/2d465cce2de4e67a3561d8e41e4c99b597558d4b/v2
DELL_URL := https://dl.dell.com/FOLDER11196144M/1/Dell-OM-MIBS-11010_A00.zip
IANA_CHARSET_URL := https://www.iana.org/assignments/ianacharset-mib/ianacharset-mib
IANA_IFTYPE_URL := https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
IANA_PRINTER_URL := https://www.iana.org/assignments/ianaprinter-mib/ianaprinter-mib
Expand Down Expand Up @@ -73,6 +74,7 @@ clean:
rm -rvf \
$(MIBDIR)/* \
$(MIBDIR)/.cisco_v2 \
$(MIBDIR)/.dell \
$(MIBDIR)/.net-snmp \
$(MIBDIR)/.paloalto_panos \
$(MIBDIR)/.synology \
Expand Down Expand Up @@ -114,6 +116,7 @@ mibs: \
$(MIBDIR)/ARISTA-ENTITY-SENSOR-MIB \
$(MIBDIR)/ARISTA-SMI-MIB \
$(MIBDIR)/ARISTA-SW-IP-FORWARDING-MIB \
$(MIBDIR)/.dell \
$(MIBDIR)/ENTITY-MIB \
$(MIBDIR)/ENTITY-SENSOR-MIB \
$(MIBDIR)/ENTITY-STATE-MIB \
Expand Down Expand Up @@ -174,6 +177,14 @@ $(MIBDIR)/AIRESPACE-WIRELESS-MIB:
@echo ">> Downloading Cisco AIRESPACE-WIRELESS-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/AIRESPACE-WIRELESS-MIB "$(CISCO_URL)/AIRESPACE-WIRELESS-MIB.my"

$(MIBDIR)/.dell:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading dell to $(TMP)"
@curl $(CURL_OPTS) -H "User-Agent: snmp_exporter" -o $(TMP) $(DELL_URL)
@unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-*.mib
@rm -v $(TMP)
@touch $(MIBDIR)/.dell

$(MIBDIR)/ENTITY-MIB:
@echo ">> Downloading Cisco ENTITY-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/ENTITY-MIB "$(CISCO_URL)/ENTITY-MIB.my"
Expand Down
7 changes: 7 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ modules:
bsnAPName:
type: DisplayString

# Dell OpenManage MIBs
dell:
walk:
- 1.3.6.1.4.1.674.10892.5.2 # statusGroup
- 1.3.6.1.4.1.674.10892.5.4 # systemDetailsGroup
- 1.3.6.1.4.1.674.10892.5.5 # storageDetailsGroup

# APC/Schneider UPS Network Management Cards
#
# Note: older management cards only support SNMP v1 (AP9606 and
Expand Down
Loading

0 comments on commit 1242b20

Please sign in to comment.