Thanks for having the time to give it a look.
An update: By including -m ALL in the flags I get rid of the "Cannot find module.." errors. But still cannot write.
Actually in version 2c the error is:
Quote:
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: iso.3.6.1.2.1.1.5.0
|
which does not make sense, because we are talking about the sysName.
I have no snmp folder in /usr/share/ at all. No MIBs there, no config.
My config is in etc/snmp/snmpd.conf as posted above, and if I am not mistaken it is generated from /etc/config/snmpd
Code:
root@OpenWrt:/# cat /etc/config/snmpd
config agent
option agentaddress UDP:161
config com2sec public
option secname ro
option source default
option community public
config com2sec private
option secname rw
option source localhost
option community private
config group public_v1
option group public
option version v1
option secname ro
config group public_v2c
option group public
option version v2c
option secname ro
config group public_usm
option group public
option version usm
option secname ro
config group private_v1
option group private
option version v1
option secname rw
config group private_v2c
option group private
option version v2c
option secname rw
config group private_usm
option group private
option version usm
option secname rw
config view all
option viewname all
option type included
option oid .1
config access public_access
option group public
option context none
option version any
option level noauth
option prefix exact
option read all
option write none
option notify none
config access private_access
option group private
option context none
option version any
option level noauth
option prefix exact
option read all
option write all
option notify all
config system
option sysLocation 'office'
option sysContact 'bofh@example.com'
option sysName 'HeartOfGold'
# option sysServices 72
# option sysDescr 'adult playground'
# option sysObjectID '1.2.3.4'
config exec
option name filedescriptors
option prog /bin/cat
option args /proc/sys/fs/file-nr
# option miboid 1.2.3.4
This is how OpenWRT works. Basically I take any distribution of it, fresh, or compile my own and I install "snmpd" and "snmp utils" packages. Maybe I should modify the init.d file to load a Snmp config as in any other linux system.. I do not get much support from their forums.
But shouldn't SNMP get and set work even without MIBs since we are referring to OIDs?