On 8/23/05, Dave Shield <[EMAIL PROTECTED]> wrote:
> [ First - *please* don't mail me privately, without copying
> any responses to the mailing list. I don't have the time
> or inclination to offer private, unpaid, SNMP consultancy.
> Keep discussions to the list, where others can both learn
> and offer advice. Thanks. ]
I immediately without even noticing, just clicked reply instead of
reply to all. I didnt mean to send you a private mail.
Anyway I am sorry for that.
>
> On Tue, 2005-08-23 at 15:27 +0530, aakansha rajvi wrote:
> > On 8/23/05, Dave Shield <[EMAIL PROTECTED]> wrote:
> > > On Tue, 2005-08-23 at 14:45 +0530, aakansha rajvi wrote:
> > >
> > > > Then I edited the 'win32\mib_module_includes.h' file to add an include
> > > > to my.h file.
> > > >
> > > > #include "mibgroup/my.h"
> > >
> > > And what are the contents of this file?
> >
> > I am having a directory called "test-mib" which contains the
> > collection of compiled MIBS(private mib) in agent/mibgroup.
> >
> > Inside "test-mib" I am having say "poe" directory which in turn
> > contains poe.c and poe.h files(Compiled files of POE MIB ). Similarly
> > inside test-mib I am having around 10 directories.These directories
> > has corresponding header files too in "test-mib"
> >
> > so I included, #include "mibgroup/test-mib/poe.h"
>
> Now I'm getting confused.
> First you said you included the header file
>
> 'mibgroup/my.h'
>
> Now you say you're including the header file
>
> 'mibgroup/test-mib/poe.h'
>
> But you also say that test-mib includes a *directory* "poe"
> which contains the file poe.h. This would imply that you
> should be including the header file
>
> 'mibgroup/test-mib/poe/poe.h'
>
>
>
> What is the *exact* line that you have in the file
> 'win32\mib_module_includes.h' ?
Fine. I am having a directory called test-mib inside agent/mibgroup.
This contains compiled private mibs. I am having aroung 10 private
MIB. So compiled each one seperately and grouped them in seperate
folders say 10 folders
My directory structure is
agent
|
mibgroup
|
test-mib
| |
poe apps...etc.,
|
poe.c poe.h
Correspondingly test-mib.h is placed under agent/mibgroup. "poe.h" and
"apps.h" is placed under agent/mibgroup/test-mib.
So now, I want to extend my agent with this private mib.
Now, I am confused about how to edit the mib_module_includes.h and
mib_modules_init.h?
Pls have a look at the lines I included in mib_module_includes.h
#include "mibgroup/test-mib.h"
#include "mibgroup/test-mib/poe.h"
#include "mibgroup/test-mib/apps.h"
I included the following lines in mib_module_inits.h
if (should_init("poe")) init_poe();
if (should_init("apps")) init_apps();
Thanks.
>
> What is the full pathname of the file that you expect
> to be included, and what are the contents of this file?
>
> Dave
>
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders