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.
// No SNMPv1 or SNMPv2c community is configured (fails on snmp-server community)#[must_not_match_regex]/^snmp-server community /msnmp-server enable snmp vrf managementsnmp-server view all .1 included vrf managementsnmp-server location vrf management Dublin lab, rack 4Why: There is no community line.
snmp-server enable snmp vrf managementsnmp-server view all .1 included vrf managementsnmp-server community lab7ro view all version v2c ro vrf managementWhy: 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:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
Related reference
- IP Infusion OcNOS policy templates: every rule in
ocnos-snmp.policy, its references and known limitations. - Policy Definitions: the definition file format and every method.
- Policy Assignments: run a definition against your devices.
- Policy Compliance Results: read the pass and fail results.