Repository navigation
Conversation
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>
Formality Check: Suggestions AvailableWe checked this pull request against the contribution guidelines. Here is what needs your attention:
|
openwrt-ai
reviewed
Oct 17, 2026
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.
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 adistroextend). SetsysObjectIDin the default config to.1.3.6.1.4.1.66510.3.1(openwrtDevicein OPENWRT-MIB, under OpenWrt's IANA enterprise number 66510).snmpd.initalready 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 ansnmpgetduring discovery); the OPENWRT-MIB itself ships with #30547.Maintainer: @stintel
Compile tested: n/a (config file only)
Run tested: n/a (config file only)