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 it's
head file.
I then copy my source files in the uClinux-dist/user/ucdsnmp/agent/mibgroup
dir.My procedure for adding a 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 in 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 I want to set a Parameter which has the oid of 1.3.6.1.4.1.19176.1.1.20.3.0.
The snmpd.conf is put under target board's /usr/local/share/snmp dir. It's
content as following: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
ofmy_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 };
It's snmpd.conf as following: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. regardsyecl _______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev