Hello,

I am running OpenWRT (tried several versions, latest kernel 3.14) in a TP-LINK 
WDR3600, with snmpd and snmp utils installed.
I have two issues were I am having trouble finding documentation:
1) I can read from whatever MIBs are supported but not write:

SNMPGET

 Code:     root@OpenWrt:/# snmpget -v 1 -c public 10.0.0.2 iso.3.6.1.2.1.1.5.0
    MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
    Cannot find module (TUNNEL-MIB): At line 0 in (none)
    Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-MIB): At line 0 in (none)
    Cannot find module (IF-MIB): At line 0 in (none)
    Cannot find module (IP-MIB): At line 0 in (none)
    Cannot find module (TCP-MIB): At line 0 in (none)
    Cannot find module (UDP-MIB): At line 0 in (none)
    Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
    iso.3.6.1.2.1.1.5.0 = STRING: "HeartOfGold"SNMPSET
 Code:     root@OpenWrt:/# snmpset -v 1 -c private 10.0.0.2 iso.3.6.1.2.1.1.5.0 
s test
    MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
    Cannot find module (TUNNEL-MIB): At line 0 in (none)
    Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-MIB): At line 0 in (none)
    Cannot find module (IF-MIB): At line 0 in (none)
    Cannot find module (IP-MIB): At line 0 in (none)
    Cannot find module (TCP-MIB): At line 0 in (none)
    Cannot find module (UDP-MIB): At line 0 in (none)
    Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
    Error in packet.
    Reason: (noSuchName) There is no such variable name in this MIB.
    Failed object: iso.3.6.1.2.1.1.5.0SNMP CONF
 Code: root@OpenWrt:/# cat etc/snmp/snmpd.conf
agentaddress UDP:161
sysLocation office
sysContact b...@example.com
sysName HeartOfGold
com2sec ro default public
com2sec rw default private
group public v1 ro
group public v2c ro
group public usm ro
group private v1 rw
group private v2c rw
group private usm rw
view all included .1
access public "" any noauth exact all none none
access private "" any noauth exact all all all
exec  filedescriptors /bin/cat /proc/sys/fs/file-nrI thought of the community 
string and tried to give readwrite priviledges to public but nothing changed.
Any hints?




2) I tried to load the MIBs following the 
http://www.net-snmp.org/docs/FAQ.html#What_does__Cannot_find_module__XXX_MIB___mean_
and downloading them from random sources but this produced more errors. The 
get/set should work with just OIDs anyway, right?
Where does the code of (write to OID)->(produce an effect) lie?


Thank youPatroklos
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to