Hiya,

What I did when trying (still trying) to understand this baby was fill it
with trace. There are examples already in the code.
However run the snmpd agent with -d or -D this will dump allow you to see
some action. See the log file in /var/net-snmp/snmpd.log.

Providing you have built everything correctly you should be able to perform
snmpset and snmpget requests on the oid.
Note you need to fill the template code with your specific needs.
In its present state it will have the capability of allowing get and set
requests but may need embellishing.
But its upto to you to build the persistence and create your own data
structures to manage the contexts.

Thanks,
Garyc

----- Original Message -----
From: "Preethy Yarlagadda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 2:04 PM
Subject: Newbie : New MIB


> Hi everyone,
>
> I am a student implementing a project for one of my classes. I want to
> add a new MIB and poll the values. I tried to follow all the steps
> given at http://www.net-snmp.org/tutorial-5/toolkit/mib_module/index.html
>
> Immediately after adding the MIB, I can see everything through
> snmptranslate but once I build it into the agent I am getting the
> unknown Object Identifier error. I am listing down the steps I
> followed.
> 1. Defined a new MIB with a simple scalar variable.
> (Extended netSnmpPlaypen)
> 2. Used mib2c to generate .c and .h files
> 3. Moved those files into agent/mibgroup directory
> 4. Ran the configure script with the object variable
> ./configure --with-mib-modules="myModuleObject"
> 5. Build the agent
> make
> 6.Installed everything
> make install
>
> 4,5,6 steps are given at the netsnmp sources directory.
>
> As I told earlier, after following all these steps I am unable to see
> anything from the agent. How can I fix or debug this? I would be
> really glad if somebody can help me out here.
>
> Thank you
> Preethy
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> 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



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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