Skip to content

NMS-12873: SNMP configuration docs - #8991

Closed
joseanesONMS wants to merge 5 commits into
developfrom
jira/NMS-12873-snmp-config-docs-smoke
Closed

joseanesONMS wants to merge 5 commits into
developfrom
jira/NMS-12873-snmp-config-docs-smoke

Conversation

@joseanesONMS

@joseanesONMS joseanesONMS commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Documents the SNMP agent configuration, split out of #8984; content checked against the code on develop, one commit per ticket.

Ticket Topic Page(s) added/changed Source of truth
NMS-12873 SNMP configuration attributes operation/…/provisioning/snmp-configuration.adoc (new) snmp-config.xsd, SnmpConfiguration.java, SnmpConfigManager.java
NMS-13513 SNMP proxy-host snmp-configuration.adoc SnmpPeerFactory.java, Snmp4JAgentConfig.java
NMS-16211 SNMP configuration troubleshooting snmp-configuration.adoc core/snmp/commands/*, NodeInfoScan.java

The SNMP sample namespace in xml-samples.adoc is also corrected.

Corrections to existing docs (separate NMS-12873: Fix … commits, each can be dropped on its own)

Topic Change Source of truth
SNMP REST Field names, passphrase defaults, protocol reset when no passphrase Configuration.java, AddressSnmpConfigVisitor.java
Meta-data page SNMP entry reflects database-stored configuration DefaultSnmpConfigDao.java, SnmpPeerFactory.java

The docs build adds no warnings (develop's two existing ones remain).

External References

There was no operator page describing the SNMP agent configuration: its structure, how an IP address is matched to a definition, or each attribute and its default. The new SNMP Configuration page is based on snmp-config.xsd, the JAXB Configuration and Definition classes, AddressSnmpConfigVisitor, and SnmpConfiguration defaults, and the quick start, profile, and XML sample pages now link to it.
The proxy-host attribute was listed without any explanation of its effect. SnmpPeerFactory replaces the request address with the proxy and keeps the agent as ProxyForAddress, and the SNMP4J strategy sends only to the proxy; the new section describes this, which settings apply to the proxy, and how to verify it.
Operators had no guidance on checking the effective SNMP configuration, testing requests, or tuning timeouts and PDU sizes for slow agents. The new section uses the snmp-show-config, snmp-get, snmp-walk, and snmp-fit Karaf commands and the matching, security level, and profile fitting rules in AddressSnmpConfigVisitor and NodeInfoScan.
… defaults

The /api/v2/snmp-config resource serializes org.opennms.netmgt.config.snmp.Configuration, whose @JsonProperty names are retry, authPassphrase, privacyPassphrase, and privacyProtocol; AddressSnmpConfigVisitor sets no default for either passphrase.
DefaultSnmpConfigDao reads the SNMP configuration from the database through the configuration management store, not from snmp-config.xml, and SnmpPeerFactory.getAgentConfig() interpolates only the security name, community strings, and passphrases with the secure credentials vault scope.
@joseanesONMS

Copy link
Copy Markdown
Contributor Author

Reopened as #9001 from a branch without the -smoke suffix; this PR is docs-only, so it doesn't need a smoke run.

@joseanesONMS
joseanesONMS deleted the jira/NMS-12873-snmp-config-docs-smoke branch October 22, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant