Re: Extending the Agent

This is a discussion on Re: Extending the Agent within the SNMP Coders forums, part of the Networking and Network Related category; On 8/23/05, Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote: > [ First - *please* don'...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2005
aakansha rajvi
 
Posts: n/a
Default Re: Extending the Agent

On 8/23/05, Dave Shield <D.T.Shield@csc.liv.ac.uk> 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.

>=20
> On Tue, 2005-08-23 at 15:27 +0530, aakansha rajvi wrote:
> > On 8/23/05, Dave Shield <D.T.Shield@csc.liv.ac.uk> 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 incl=

ude
> > > > 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"

>=20
> Now I'm getting confused.
> First you said you included the header file
>=20
> 'mibgroup/my.h'
>=20
> Now you say you're including the header file
>=20
> 'mibgroup/test-mib/poe.h'
>=20
> 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
>=20
> 'mibgroup/test-mib/poe/poe.h'
>=20
>=20
>=20
> 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=20


agent
|
mibgroup
|
test-mib=20
| |
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.=20

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.




>=20
> What is the full pathname of the file that you expect
> to be included, and what are the contents of this file?
>=20
> Dave
>=20
>



-------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0