why ucd-snmp agent can only be get, can't be set always
ye_cl <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <711348457.106581187750710490.JavaMail.coremail@bj163app90.163.com> |
Hello all, I have a question about using ucd-snmp-4.1.2 on uClinux.
I created My MIB module's skeleton source files my_mib.c and my_mib.h according to /uClinux-dist/user/ucdsnmp/agent/mibgroup/examples/ucdDemoPublic.c and its head file.
I then copy my source files in the uClinux-dist/user/ucdsnmp/agent/mibgroup dir. My procedure for adding my new MIB implementation module ("my_mib") to the agent manually is as follows:
ucdsnmp/agent/Makefile:
add "mibgroup/my_mib.o" to MIBOBJS
ucdsnmp/agent/mibgroup/Makefile:
add "my_mib.o" to OBJS
add "my_mib.c" to SRCS
ucdsnmp/agent/mibgroup/mib_module_includes.h
add #include "mibgroup/my_mib.h"
ucdsnmp/agent/mibgroup/mib_module_inits.h
add init_my_mib();
then I do "make user_only" under /uClinux-dist dir to get snmpd in the uClinux-dist/user/ucdsnmp/agent/ dir.When my snmpd is running on uClinux, I can only do get operation, there is always the response of "request timed out" for set.
In my source file,the oid prefix is:
oid my_mib_variables_oid[] = { 1,3,6,1,4,1,19176 };
And the oid I want to set is 1.3.6.1.4.1.19176.1.1.20.3.0.
The snmpd.conf is under target board's /usr/local/share/snmp dir. Its content is as follows:sysservices 72
com2sec public default public
com2sec private default private
group public v1 public
group private v1 private
group public v2c public
group private v2c private
group public usm public
group private usm private
view all included .1 80
view system included .1.3.6.1.2.1.1 fe
access public "" any noauth exact all none all
access private "" any noauth exact none all all
trapsink 200.162.162.27 I then test ucd-snmp's example of ucdDemoPublic,My procedure for adding ucdDemoPublic to the agent is the same as that of my_mib.When snmpd is running, there is also the response of "request timed out" for set.
ucdDemoPublic's MIB is uClinux-dist/user/ucdsnmp/mibs/UCD-DEMO-MIB.txt,
it's oid prefix is: oid ucdDemoPublic_variables_oid[] = { 1,3,6,1,4,1,2021,14,1,1 };
Its snmpd.conf as follows:sysservices 72
com2sec public default public
com2sec private default private
group public v1 public
group private v1 private
group public v2c public
group private v2c private
group public usm public
group private usm private
view all included .1 80
view demoview included .1.3.6.1.4.1.2021.14.1.1
view demowrite included .1.3.6.1.4.1.2021.14.1.1
view system included .1.3.6.1.2.1.1 fe
access public "" any noauth exact demoview none all
access private "" any noauth exact none demowrite all
trapsink 200.162.162.27 I don't know why I can't set, I will be appreciated if you give me some help.
regards.yecl
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users