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 cisco IMC MIBs #1293

Merged
merged 19 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 13 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
13 changes: 12 additions & 1 deletion generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ READYNAS_URL := https://www.downloads.netgear.com/files/ReadyNAS/READYNAS-M
READYDATAOS_URL := https://www.downloads.netgear.com/files/GDC/RD5200/READYDATA_MIB.zip
SOPHOS_XG_URL := https://docs.sophos.com/nsg/sophos-firewall/MIB/SOPHOS-XG-MIB.zip
POWERCOM_URL := https://www.upspowercom.com/pcm-img/Card-DA807/Upsmate_PCM.mib
CISCO_CUCS_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/refs/heads/main/ucs-C-Series-mibs/UCS_Cseries3.0.tar
CISCO_FRU_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/26b38ac1b25a38510b6bb308465dd068e79df64b/v2/CISCO-ENTITY-FRU-CONTROL-MIB.my
bastischubert marked this conversation as resolved.
Show resolved Hide resolved

CYBERPOWER_VERSION := 2.11
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
Expand Down Expand Up @@ -156,7 +158,8 @@ mibs: \
$(MIBDIR)/CyberPower.MIB \
$(MIBDIR)/EAP.MIB \
$(MIBDIR)/EAP-Client.MIB \
$(MIBDIR)/powercom
$(MIBDIR)/powercom \
$(MIBDIR)/cisco_imc
bastischubert marked this conversation as resolved.
Show resolved Hide resolved

$(MIBDIR)/apc-powernet-mib:
@echo ">> Downloading apc-powernet-mib"
Expand Down Expand Up @@ -399,3 +402,11 @@ $(MIBDIR)/readydataos:
$(MIBDIR)/powercom:
@echo ">> Downloading powercom"
@curl $(CURL_OPTS) -o $(MIBDIR)/powercom "$(POWERCOM_URL)"

$(MIBDIR)/cisco_imc:
ranmalka marked this conversation as resolved.
Show resolved Hide resolved
bastischubert marked this conversation as resolved.
Show resolved Hide resolved
$(eval TMP := $(shell mktemp))
$(eval TMP_DIR := $(shell mktemp -d))
@echo ">> Downloading Cisco UCS to $(TMP)"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(CISCO_CUCS_URL)
@tar --strip-components=1 -xf $(TMP) -C $(MIBDIR)
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-ENTITY-FRU-CONTROL-MIB.my "$(CISCO_FRU_URL)"
bastischubert marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -837,3 +837,8 @@ modules:
- 1.3.6.1.4.1.935.1.1.1.9.2.2 # upsEnvUnderTemperature
- 1.3.6.1.4.1.935.1.1.1.9.2.3 # upsEnvOverHumidity
- 1.3.6.1.4.1.935.1.1.1.9.2.4 # upsEnvUnderHumidity
cisco_imc:
walk:
- 1.3.6.1.4.1.9.9.719.1.45.1.1.6 #cucsStorageControllerOperState
- 1.3.6.1.4.1.9.9.719.1.1.1.1.11 #cucsFaultDescription
- 1.3.6.1.4.1.9.9.719.1.1.1.1.20 #cucsFaultSeverity
67 changes: 67 additions & 0 deletions snmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2928,6 +2928,73 @@ modules:
0: unknown
1: ipv4
2: ipv6
cisco_imc:
walk:
- 1.3.6.1.4.1.9.9.719.1.1.1.1.11
- 1.3.6.1.4.1.9.9.719.1.1.1.1.20
- 1.3.6.1.4.1.9.9.719.1.45.1.1.6
metrics:
- name: cucsFaultDescription
oid: 1.3.6.1.4.1.9.9.719.1.1.1.1.11
type: DisplayString
help: Cisco UCS fault:Inst:descr managed object property - 1.3.6.1.4.1.9.9.719.1.1.1.1.11
indexes:
- labelname: cucsFaultIndex
type: gauge
- name: cucsFaultSeverity
oid: 1.3.6.1.4.1.9.9.719.1.1.1.1.20
type: gauge
help: Cisco UCS fault:Inst:severity managed object property - 1.3.6.1.4.1.9.9.719.1.1.1.1.20
indexes:
- labelname: cucsFaultIndex
type: gauge
enum_values:
0: cleared
1: info
3: warning
4: minor
5: major
6: critical
- name: cucsStorageControllerOperState
oid: 1.3.6.1.4.1.9.9.719.1.45.1.1.6
type: gauge
help: Cisco UCS storage:Controller:operState managed object property - 1.3.6.1.4.1.9.9.719.1.45.1.1.6
indexes:
- labelname: cucsStorageControllerInstanceId
type: gauge
enum_values:
0: unknown
1: operable
2: inoperable
3: degraded
4: poweredOff
5: powerProblem
6: removed
7: voltageProblem
8: thermalProblem
9: performanceProblem
10: accessibilityProblem
11: identityUnestablishable
12: biosPostTimeout
13: disabled
14: malformedFru
15: backplanePortProblem
16: chassisIntrusion
51: fabricConnProblem
52: fabricUnsupportedConn
81: config
82: equipmentProblem
83: decomissioning
84: chassisLimitExceeded
100: notSupported
101: discovery
102: discoveryFailed
103: identify
104: postFailure
105: upgradeProblem
106: peerCommProblem
107: autoUpgrade
108: linkActivateBlocked
cisco_wlc:
walk:
- 1.3.6.1.4.1.14179.2.1.1.1.2
Expand Down