Skip to content

net-snmp: report OpenWrt's own sysObjectID by default - #30796

Open
perceival wants to merge 1 commit into
openwrt:masterfrom
perceival:net-snmp-sysobjectid
Open

perceival wants to merge 1 commit into
openwrt:masterfrom
perceival:net-snmp-sysobjectid

Conversation

@perceival

@perceival perceival commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

snmpd reports net-snmp's generic Linux sysObjectID (.1.3.6.1.4.1.8072.3.2.10) unless told otherwise, so a network manager cannot tell an OpenWrt device from any other net-snmp host without an extra query (typically a distro extend). Set sysObjectID in the default config to .1.3.6.1.4.1.66510.3.1 (openwrtDevice in OPENWRT-MIB, under OpenWrt's IANA enterprise number 66510). snmpd.init already passes the option through.

It is only a change to the default snmpd.conf, so it reaches new installs; existing configurations are untouched and can drop the option like any other. LibreNMS uses it to detect OpenWrt without a query (librenms/librenms#19347, where a maintainer asked to avoid an snmpget during discovery); the OPENWRT-MIB itself ships with #30547.

Maintainer: @stintel
Compile tested: n/a (config file only)
Run tested: n/a (config file only)

snmpd reports net-snmp's generic Linux sysObjectID
(.1.3.6.1.4.1.8072.3.2.10) unless told otherwise, so a manager cannot
tell an OpenWrt device from any other net-snmp host without an extra
query, typically against the distro extend.

Set sysObjectID in the default config to .1.3.6.1.4.1.66510.3.1
(openwrtDevice in OPENWRT-MIB, under OpenWrt's IANA enterprise number).
snmpd.init already passes the option through. Being in the default
config, it only reaches new installs and can be removed like any other
option.

Bump PKG_RELEASE to account for the package configuration change.

Signed-off-by: Kamil Bienkiewicz <perceivalpercy@gmail.com>
@openwrt

openwrt Bot commented Oct 17, 2026

Copy link
Copy Markdown

Formality Check: Suggestions Available

We checked this pull request against the contribution guidelines. Here is what needs your attention:

⚠️ STYLISTIC WARNINGS & SUGGESTIONS

Commit 652d9d9:

  • ⚠️ Incorrect capitalization of 'OpenWrt' detected: 'OPENWRT'. Please use the correct spelling 'OpenWrt' (or lowercase 'openwrt' where appropriate).

Something broken? Consider reporting an issue.
Running version 37cc78e deployed on 2026-10-15 12:36:36 CEST

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commits; no new issues found.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants