Re: extending the agent options

2008-06-11 Thread Dave Shield
2008/6/11 ntwrkd <[EMAIL PROTECTED]>: > i am more interested in the different options for extending the agent. > would i use mib2c? That's the easiest way to produce suitable template code for implementing a new MIB module, yes. But it's not compulsory. It is perfectl

extending the agent options

2008-06-10 Thread ntwrkd
i am more interested in the different options for extending the agent. would i use mib2c? what are the alternatives to extending the agent? Dave, I noticed you wrote a FAQ on extending the agent. Thanks in advance. matt

Extending the agent

2007-02-02 Thread Eran Frank
Hi, I'd like to extend the net-SNMP agent to support the GetRange PDU. I would appreciate some guidance regarding where I should start, what code in what file should be changed etc. Thanks, Eran. - Using Tomcat but

Re: Extending the agent

2005-11-08 Thread Dave Shield
On Mon, 2005-11-07 at 15:07 +0200, Michael G wrote: > But I still miss something. > > The netsnmp_create_handler_registration() gets as parameter the > handler function. Yes. > The code that was generated using the mib2c lacks some handler > function for the tables. Which mib2c config are you

Re: Extending the agent

2005-11-07 Thread Dave Shield
On Mon, 2005-11-07 at 12:46 +0200, Michael G wrote: > I have defined a new enterprise mib. > I used mib2c tool to generate some c code files. > I have used the new net-snmp style option. > > How can I hook the new code to the tree? I mean I don't see code > generated that will allow the agent to

Extending the agent

2005-11-07 Thread Michael G
Hello,   I have defined a new enterprise mib. I used mib2c tool to generate some c code files. I have used the new net-snmp style option.   How can I hook the new code to the tree? I mean I don't see code generated that will allow the agent to call the functions when the request will be made. For e

Re: Extending the Agent

2005-08-24 Thread aakansha rajvi
I cant able to figure out where I am going wrong. Still I am stuck up with the same issue. Can anyone pls help me on this? Actually I have configure net-snmp 5.2.1 in linux and it is working fine there. Then I executed "make distclean" and copied that package to windows PC. In windows with VC ++

Re: Extending the Agent

2005-08-24 Thread aakansha rajvi
Sorry. Pls have a look at this .dsp file. In my previous message sent you a wrong file. On 8/24/05, Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-24 at 19:17 +0530, aakansha rajvi wrote: > > On 8/24/05, aakansha rajvi <[EMAIL PROTECTED]> wrote: > > > On 8/24/05, Dave Shield <[EMAIL PRO

Re: Extending the Agent

2005-08-24 Thread aakansha rajvi
On 8/24/05, Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-24 at 19:17 +0530, aakansha rajvi wrote: > > On 8/24/05, aakansha rajvi <[EMAIL PROTECTED]> wrote: > > > On 8/24/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > > > > If you look closely at the section of that output which follows

Re: Extending the Agent

2005-08-24 Thread Dave Shield
On Wed, 2005-08-24 at 19:17 +0530, aakansha rajvi wrote: > On 8/24/05, aakansha rajvi <[EMAIL PROTECTED]> wrote: > > On 8/24/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > > If you look closely at the section of that output which follows > > > the reference to "netsnmpmibs", there's no mention wh

Re: Extending the Agent

2005-08-24 Thread aakansha rajvi
On 8/24/05, aakansha rajvi <[EMAIL PROTECTED]> wrote: > On 8/24/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > On Wed, 2005-08-24 at 15:49 +0530, aakansha rajvi wrote: > > > I have done some mistake while including the files in netsnmpmibs project. > > > > That's what I suspected. > > > > > > > So

Re: Extending the Agent

2005-08-24 Thread Dave Shield
On Wed, 2005-08-24 at 15:49 +0530, aakansha rajvi wrote: > I have done some mistake while including the files in netsnmpmibs project. That's what I suspected. > So I tried to include from the first. > In VC ++, File->open workspace and I located to netsnmpmibs in > win32/netsnmpmibs/netsnmpmibs

Re: Extending the Agent

2005-08-24 Thread aakansha rajvi
I have done some mistake while including the files in netsnmpmibs project. So I tried to include from the first. In VC ++, File->open workspace and I located to netsnmpmibs in win32/netsnmpmibs/netsnmpmibs.dsw and opened it. Here I added my compiled files to the project by pointing to project->A

Re: Extending the Agent

2005-08-23 Thread Dave Shield
On Tue, 2005-08-23 at 18:33 +0530, aakansha rajvi wrote: > But still some other errors are shown. > > netsnmpmibs.lib(mib_modules.obj) : error LNK2001: > unresolved external symbol _init_poe Did you add the 'poe.c' (and 'apps.c') files to the netsnmpmibs project, as directed in README.win32? Da

Re: Extending the Agent

2005-08-23 Thread aakansha rajvi
Thanks a lot.. I did as you directed me. The error I posted in my first message is resolved now. But still some other errors are shown. netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external symbol _init_poe netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external symb

Re: Extending the Agent

2005-08-23 Thread Dave Shield
[ Cc: to mailing list restored. *Please* try to remember! ] On Tue, 2005-08-23 at 17:14 +0530, aakansha rajvi wrote: > On 8/23/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > > > > My directory structure is > > > > > > > > > agent > > > | > > > mibgroup > > > | > > > test-mib > >

Re: Extending the Agent

2005-08-23 Thread Dave Shield
[ 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. ] On Tue,

Re: Extending the Agent

2005-08-23 Thread Dave Shield
> My directory structure is > > > agent > | > mibgroup > | > test-mib > || > poe apps...etc., > | > poe.c poe.h So the full path to "poe.h" is "agent/mibgroup/test-mib/poe/poe.h" > Correspondingly test-mib.h is placed under agent/mibgroup. "poe.h" and > "apps.h" is placed under age

Re: Extending the Agent

2005-08-23 Thread aakansha rajvi
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 b

Re: Extending the Agent

2005-08-23 Thread Dave Shield
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? Dave --- SF.Net em

Extending the Agent

2005-08-23 Thread aakansha rajvi
I installed net-snmp-5.2.1 in windows with VC ++. I didnt install PSDK. The agent configuration went well. Now I would like to extend the agent. I placed my compiled mibs ie., my.c and my.h in the agent/mibgroup Then I edited the 'win32\mib_module_includes.h' file to add an include to my.h file.

Re: Extending the agent with MFD -> cache reload problem

2005-07-20 Thread Jon Neerup Lassen
Hi > JNL> But how do I flush the cache manually? > > Good question. I'll make sure to add an API to do this for the next release. > > If you look in the interface file, at _cache_free and _cache_item_free, you'll > get the basic idea. Go through the container and release any memory you > alloca

Re: Extending the agent with MFD -> cache reload problem

2005-07-19 Thread Robert Story
On Fri, 15 Jul 2005 15:37:10 +0200 Jon wrote: JNL> I have another question: I'd like to control when the cache is flushed. JNL> If I set the following cache flags the cache will never be flushed, right? JNL> JNL> NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD JNL> NETSNMP_CACHE_DONT_FREE_EXPIRED NETSNMP_C

Re: Extending the agent with MFD -> cache reload problem

2005-07-15 Thread Jon Neerup Lassen
Hi I tried to compile the module as a separate agentx subagent (which it should be in the final application) and my problem disappeared and i works fine now. :) I have another question: I'd like to control when the cache is flushed. If I set the following cache flags the cache will never be flu

Re: Extending the agent with MFD -> cache reload problem

2005-07-14 Thread Robert Story
On Tue, 5 Jul 2005 12:51:12 +0200 Jon wrote: JNL> I'm trying to extend the agent with my own MIB using mib2c and the MIB JNL> For Dummies framework. JNL> JNL> The agent works fine and I can do a snmpwalk on the table, but when JNL> the container-cache reloads snmpwalk gives an empty result (no err

Re: Extending the Agent for sysServices

2005-07-11 Thread Dave Shield
On Mon, 2005-07-04 at 12:14 +0530, [EMAIL PROTECTED] wrote: > I am trying to extend the agent for “sysServices” which is under > system group. I trust that you realise the Net-SNMP agent already implements this particular object? Though you do need to explicitly configure a suitable value in the

Extending the agent with MFD -> cache reload problem

2005-07-05 Thread Jon Neerup Lassen
Hi I'm trying to extend the agent with my own MIB using mib2c and the MIB For Dummies framework. I've read the ifTable tutorial on net-snmp.org. The agent works fine and I can do a snmpwalk on the table, but when the container-cache reloads snmpwalk gives an empty result (no error). The cache-t

Extending the Agent for sysServices

2005-07-03 Thread kanda.samy
Hi   I am trying to extend the agent for “sysServices” which is under system group.   I followed these steps:   1) Mib2c sysServices 2) I got 2 files sysServices.h and sysServices.c 3) In sysServices.c file I added variable declaration “static int t=7” and in th