Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HPE MIBs #1267

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
bastischubert marked this conversation as resolved.
Show resolved Hide resolved
@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
bastischubert marked this conversation as resolved.
Show resolved Hide resolved
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