Skip to content

Commit

Permalink
Merge pull request #1267 from dsgnr/hpe_mibs
Browse files Browse the repository at this point in the history
Add HPE MIBs
  • Loading branch information
bastischubert authored Oct 30, 2024
2 parents 1cc1e66 + c2b6a57 commit 0c6b6ed
Show file tree
Hide file tree
Showing 3 changed files with 7,562 additions and 0 deletions.
11 changes: 11 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ APC_URL := https://download.schneider-electric.com/files?p_enDocType=F
ARISTA_URL := https://www.arista.com/assets/data/docs/MIBS
CISCO_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/f55dc443daff58dfc86a764047ded2248bb94e12/v2
DELL_URL := https://dl.dell.com/FOLDER11196144M/1/Dell-OM-MIBS-11010_A00.zip
HPE_URL := https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1580676047/v229101/upd11.85mib.tar.gz
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 @@ -120,6 +121,7 @@ mibs: \
$(MIBDIR)/ARISTA-SMI-MIB \
$(MIBDIR)/ARISTA-SW-IP-FORWARDING-MIB \
$(MIBDIR)/iDRAC-SMIv2.mib \
$(MIBDIR)/HPE-MIB \
$(MIBDIR)/ENTITY-MIB \
$(MIBDIR)/ENTITY-SENSOR-MIB \
$(MIBDIR)/ENTITY-STATE-MIB \
Expand Down Expand Up @@ -188,6 +190,15 @@ $(MIBDIR)/iDRAC-SMIv2.mib:
@unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-SMIv2.mib
@rm -v $(TMP)

$(MIBDIR)/HPE-MIB:
$(eval TMP := $(shell mktemp))
$(eval TMP_DIR := $(shell mktemp -d))
@echo ">> Downloading HPE to $(TMP)"
@curl -L $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(HPE_URL)
@tar -xf $(TMP) -C $(TMP_DIR)
@mv $(TMP_DIR)/*cpq*.mib $(MIBDIR)
@rm -rf $(TMP_DIR) $(TMP)

$(MIBDIR)/ENTITY-MIB:
@echo ">> Downloading Cisco ENTITY-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/ENTITY-MIB "$(CISCO_URL)/ENTITY-MIB.my"
Expand Down
19 changes: 19 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ modules:
- 1.3.6.1.4.1.674.10892.5.4 # systemDetailsGroup
- 1.3.6.1.4.1.674.10892.5.5 # storageDetailsGroup

# HPE MIBs
hpe:
walk:
- sysUpTime
- 1.3.6.1.4.1.232.1.2.2.1.1 # CPU
- 1.3.6.1.4.1.232.11 # Firmware version
- 1.3.6.1.4.1.232.14 # Asmd agent IDE/SATA
- 1.3.6.1.4.1.232.3.2.2.1 # RAID storage controller
- 1.3.6.1.4.1.232.3.2.3.1.1 # Logical drives
- 1.3.6.1.4.1.232.3.2.5.1.1 # Physical drives
- 1.3.6.1.4.1.232.5 # Asmd agent SCSI disks
- 1.3.6.1.4.1.232.6.2.14.13.1.6 # Memory size only
- 1.3.6.1.4.1.232.6.2.15 # Power meter
- 1.3.6.1.4.1.232.6.2.16 # BIOS state
- 1.3.6.1.4.1.232.6.2.17 # RAID controller battery
- 1.3.6.1.4.1.232.6.2.6.8.1 # Temperatures
- 1.3.6.1.4.1.232.6.2.9 # Power supply
- 1.3.6.1.4.1.232.9.2.2 # ILO Module

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

0 comments on commit 0c6b6ed

Please sign in to comment.