AGENT-15682 Catalyst SMB SNMP profiles#23921
Closed
FlorianVeaux wants to merge 1 commit into
Closed
Conversation
Contributor
|
Bits Dev status: ✅ Done Comment @DataDog to request changes |
Contributor
|
I can only run on private repositories. |
Contributor
🛑 Gate Violations
|
Contributor
Validation Report
Run Passed validations (20)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds dedicated SNMP default profiles for Cisco Catalyst 1200 and Cisco Catalyst 1300/1300X SMB-OS switches. The profiles are scoped to explicit ciscoProducts sysObjectIDs and collect chassis serial metadata from the documented ENTITY-MIB SMB chassis index 67109120.
Motivation
AGENT-15682 surfaced that Cisco Catalyst SMB-OS devices were missing
serial_numbermetadata. This supersedes the hardcoded ENTITY-MIB fallback approach proposed in #23498 by keeping the existing Catalyst and Cisco SMB profiles unchanged, adding standalone SMB-OS profiles with explicit OIDs, and avoiding conflicts with the generic Cisco9.1.*wildcard profile.Changes
cisco-catalyst-1200default SNMP profile with Catalyst 1200 ciscoProducts sysObjectIDs.cisco-catalyst-1300default SNMP profile with Catalyst 1300 and 1300X ciscoProducts sysObjectIDs.serial_numberfromentPhysicalSerialNum.67109120.Testing/Validation
ddev validate models snmpddev validate metadata snmpddev meta snmp validate-profile -d snmp/datadog_checks/snmp/data/default_profiles -f snmp/datadog_checks/snmp/data/default_profiles/cisco-catalyst-1200.yamlddev meta snmp validate-profile -d snmp/datadog_checks/snmp/data/default_profiles -f snmp/datadog_checks/snmp/data/default_profiles/cisco-catalyst-1300.yamlddev validate all snmpddev test -fs snmpcisco.yaml9.1.*wildcard remains non-conflicting.ddev env test snmp py3.13-false -- -k "cisco_catalyst_1200 or cisco_catalyst_1300"after pre-seeding snmpsim data; the local sandbox could not start the compose environment because Podman/podman-compose lacked--waitunder Python 3.13 and then failed network creation due missing CNI plugins. The e2e tests are included for CI/runtime validation.Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required. Proposed:qa/skip-qa.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is mergedPR by Bits - View session in Datadog
Comment @DataDog to request changes