[ First - *please* don't mail me directly.  Keep discussions on
       the list, where others can both learn and offer advice.  Thanks.   ]

On Thu, 8 Jul 2004 16:28:45 +0800 hwzhang wrote:
H>      I have Send the mail to others,but receive nothing for long time. 

You should post to the lists. There is better chance that someone can help you
there.

H>        I am trying to implement a MIB in C and add it to the agent.
H> My operation system is win2000 and environment compiling for
H> code(net-snmp-5.0.8) is VC and embeded tool---ede.

You probably should use a later version, if you can. Especially for Windows
platforms.

H> I am using the
H> agent/mibgroups/examples/ucdDemoPublic.c Then I did:
H>  1___ modify the '.h' file in  ucdDemoPublic.c  and at last ,the '.h' file 
H>  ucdDemoPublic.c is  
H>      as follow:
H>       #include <net-snmp/net-snmp-config.h>
H>       #include <net-snmp/net-snmp-includes.h>
H>       #include <net-snmp/agent/net-snmp-agent-includes.h> 
H>       #include "ucdDemoPublic.h"
H> 2___ add ucdDemoPublic.c and  ucdDemoPublic.h  files to the project in visual
H> c++ and compile successfully

Did you also modify the agent to initialize the demo mib? I think you might
need to add it to the win32/mib_module_inits.h file.

H> 3___download the program  to the device and run;
H> 4___do get action with MIB Browser ,but I got:
H>     Response binding:
H>     Error: No such name
H>     Error index: 1

Did you also set up a snmpd.conf file, for access control?

Can you access any of the standard mib objects, like sysDescr.0?

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.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

Reply via email to