Skip to content
Guides & References

OcNOS SNMP

Worked examples for the OcNOS SNMP template: no SNMPv1 or SNMPv2c community strings.

Policy LibraryUpdated
Platform
ip-infusion-ocnos
Minimum version
rConfig 8.0.2
Editions
Pro, Vector, Enterprise
On this page

OcNOS SNMP

SNMPv1 and v2c use a community string that is sent in clear text and works like a shared password. This rule comes from the ocnos-snmp policy template.

Every example on this page was checked with rConfig Pro's policy engine on

Each of the 2 configs below was run through rConfig Pro’s evaluator with the rule above it, and gave the result shown. The configs are sanitised excerpts of the sample configs that come with the template.

All the rules come from ocnos-snmp.policy in the policy templates (v1.5.0). Import the whole file with Import Templates (see importing a policy template), or copy one rule into your own definition. The IP Infusion OcNOS templates page lists the file’s known limitations. Run the rules against show running-config.

Rule Method Since
No SNMPv1 or SNMPv2c community must_not_match_regex 8.0.2

No SNMPv1 or SNMPv2c community

The rule fails on any line that starts with snmp-server community, whatever the version, view or VRF. Other snmp-server lines, such as the view and the location, are fine.

Definition
// No SNMPv1 or SNMPv2c community is configured (fails on snmp-server community)
#[must_not_match_regex]
/^snmp-server community /m
passPassing config: Hardened S9510-28DC-B sample (OcNOS-SP 7.0.0, edited copy of the lab router sample)
snmp-server enable snmp vrf management
snmp-server view all .1 included vrf management
snmp-server location vrf management Dublin lab, rack 4

Why: There is no community line.

failFailing config: S9510-28DC-B lab router sample (OcNOS-SP 7.0.0, sanitised)
snmp-server enable snmp vrf management
snmp-server view all .1 included vrf management
snmp-server community lab7ro view all version v2c ro vrf management

Why: A v2c read-only community is set. The community string is sanitised.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 SC-12
HIPAA (45 CFR) 164.312(e)(1)
ISO/IEC 27001:2022 Annex A A.8.5

Tested with: sample excerpts from OcNOS-SP 7.0.0. Minimum rConfig 8.0.2 (must_not_match_regex). Editions: Pro, Vector, Enterprise.


Type to search.