Skip to content

Commit 983804f

Browse files
committed
SNMP: extend Cisco serial_number coverage and add Catalyst 1300/9200 sysobjectids
Adds entPhysicalSerialNum.67109120 as the primary ENTITY-MIB fallback for Cisco devices that expose chassis data at the CBS350/Catalyst 1300 index, and keeps entPhysicalSerialNum.1 as the secondary fallback. - _cisco-catalyst.yaml: insert the .67109120 entry ahead of .1 in the serial_number symbols list so Catalyst 1300 and Cat 9400/9200 chassis (e.g. cisco_switch_c9407r) report a serial even when the legacy chassisSerialNumberString is absent. - _cisco-metadata.yaml: add the same fallback chain so profiles that inherit it (cisco.yaml via _base_cisco -> _cisco-generic) gain serial_number metadata. - cisco-sb.yaml: define serial_number with the same chain for CBS350 devices that fall outside the cisco-catalyst inheritance tree. - cisco-catalyst.yaml: add Catalyst 9200 (1.3.6.1.4.1.9.1.3079) and Catalyst 1300 (.3233, .3236) sysobjectids so those devices match the Catalyst profile. Refs AGENT-15682.
1 parent e5577fe commit 983804f

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

snmp/datadog_checks/snmp/data/default_profiles/_cisco-catalyst.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ metadata:
1616
# Cisco Systems WS-C6509.Cisco Catalyst Operating System Software, Version 5.5(8).Copyright (c) 1995-2001 by Cisco Systems.
1717
- OID: 1.3.6.1.4.1.9.5.1.2.19.0
1818
name: chassisSerialNumberString
19+
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 67109120 — Catalyst 1300 / CBS-derived chassis.
20+
# Reference: https://www.cisco.com/c/en/us/support/docs/smb/switches/Cisco-Business-Switching/kmgmt3636-snmpv3-common-oids-cbs350.html
21+
- OID: 1.3.6.1.2.1.47.1.1.1.1.11.67109120
22+
name: entPhysicalSerialNum
1923
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 1 — fallback when stack MIB data is missing.
2024
# Source: https://circitor.fr/Mibs/Html/ENTITY-MIB.php
2125
# Stacked members often use x000 indexes (1000, 2000, …); add more list entries if you need them.

snmp/datadog_checks/snmp/data/default_profiles/_cisco-metadata.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ metadata:
55
fields:
66
vendor:
77
value: "cisco"
8+
serial_number:
9+
symbols:
10+
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 67109120 — Catalyst 1300 / CBS-derived chassis.
11+
# Reference: https://www.cisco.com/c/en/us/support/docs/smb/switches/Cisco-Business-Switching/kmgmt3636-snmpv3-common-oids-cbs350.html
12+
- OID: 1.3.6.1.2.1.47.1.1.1.1.11.67109120
13+
name: entPhysicalSerialNum
14+
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 1 — common chassis index.
15+
# Source: https://circitor.fr/Mibs/Html/ENTITY-MIB.php
16+
- OID: 1.3.6.1.2.1.47.1.1.1.1.11.1
17+
name: entPhysicalSerialNum
818
version:
919
symbol:
1020
OID: 1.3.6.1.2.1.1.1.0

snmp/datadog_checks/snmp/data/default_profiles/cisco-catalyst.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,6 @@ sysobjectid:
463463
- 1.3.6.1.4.1.9.1.3023 # ciscoC1000FE48T4GL
464464
- 1.3.6.1.4.1.9.1.3024 # ciscoC1000FE48P4GL
465465
- 1.3.6.1.4.1.9.1.3069 # ciscoC8500L8S4X
466+
- 1.3.6.1.4.1.9.1.3079 # ciscoC9200CX12P2X2G
467+
- 1.3.6.1.4.1.9.1.3233 # ciscoC130024P4G
468+
- 1.3.6.1.4.1.9.1.3236 # ciscoSwitch1300

snmp/datadog_checks/snmp/data/default_profiles/cisco-sb.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ metadata:
1010
fields:
1111
vendor:
1212
value: "cisco"
13+
serial_number:
14+
symbols:
15+
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 67109120 — CBS350 / Cisco Small Business chassis.
16+
# Reference: https://www.cisco.com/c/en/us/support/docs/smb/switches/Cisco-Business-Switching/kmgmt3636-snmpv3-common-oids-cbs350.html
17+
- OID: 1.3.6.1.2.1.47.1.1.1.1.11.67109120
18+
name: entPhysicalSerialNum
19+
# ENTITY-MIB: entPhysicalSerialNum at entPhysicalIndex 1 — common chassis index.
20+
# Source: https://circitor.fr/Mibs/Html/ENTITY-MIB.php
21+
- OID: 1.3.6.1.2.1.47.1.1.1.1.11.1
22+
name: entPhysicalSerialNum
1323
metrics:
1424
- MIB: CISCOSB-rndMng
1525
symbol:

0 commit comments

Comments
 (0)