Re: Wrong MIB objects in manpage examples

2008-01-03 Thread Robert Story
On Wed, 21 Nov 2007 09:42:25 + Dave wrote: DS> Hmmm... that raises an interesting question. DS> DS> Should "snmpgetnext" be applying the range checks at all? DS> DS> They make sense for the exact requests (GET and SET), because DS> if the OID isn't a valid instance according to the MIB defi

Re: Reloading config with -HUP and update_config does not work

2008-01-03 Thread Robert Story
On Fri, 16 Nov 2007 01:15:22 +0100 Magnus wrote: MF> On tor, 2007-11-15 at 08:23 +, Colin Wernham wrote: MF> > I have a problem with re-loading the snmpd.conf config using MF> > update_config() function as it appears to not do any reloading of MF> > config. MF> MF> It does reload the config. I

Re: Table Implementation

2008-01-03 Thread Robert Story
On Thu, 29 Nov 2007 19:50:45 +0530 Sridhar wrote: SA> set the cache->flags |= NETSNMP_CACHE_AUTO_RELOAD, will this invoke SA> devTable_container_load at the expirey of the cache timer? Yes. SA> I have different problem with other table, i do not know how many entried are SA> present in the table

Re: Proxy-ed stream

2008-01-03 Thread Robert Story
On Sun, 2 Dec 2007 12:15:00 +0100 (CET) [EMAIL PROTECTED] wrote: KHUPE> Any idea how to process proxy-ed stream PDU from main agent at arbitrary KHUPE> port and creating/sending the response back? I don't quite understand what you are trying to do. Could you explain it a little bit more?

Re: dlopen failed.

2008-01-03 Thread Robert Story
On Mon, 3 Dec 2007 10:48:28 +0530 Siva wrote: SPRG> I am facing problem while dynamically loading the module. SPRG> SPRG> I am using some of API's of XMLconfig module which is SPRG> written in C++ and my agent code is written in 'C' when i run Make SPRG> file by e

Re: GET-RESPONSE with multiple OID

2008-01-03 Thread Robert Story
On Fri, 7 Dec 2007 15:23:22 - Baltazar wrote: BF> BF> I think it is limited by the SNMP_MAX_PDU_SIZE value am I right ? BF> Can we be certain that if the GET-RESPONSE PDU size is inferior of SNMP_MAX_PDU_SIZE, the agent will transmit an only SNMP packet ? There are multiple factors involv

Re: Problems on a double indexed table

2008-01-03 Thread Robert Story
On Thu, 6 Dec 2007 17:05:22 +0100 [EMAIL PROTECTED] wrote: AI> I have a problem in a table with the following attributes: AI> ifIndex: foreign key (ifTable) AI> MacAddress: primary key. AI> other attributes... AI> I have generated the source code with mib2c command in MFD mode. AI> I have tryed to

Re: on 64 bit

2008-01-03 Thread Robert Story
On Mon, 31 Dec 2007 15:39:33 +0530 deepak wrote: DB> Here is how i issued the snmpget command, DB> [EMAIL PROTECTED]:/home/deepak/clovis/buildtools/local/bin# ./snmpget -v 2c -c DB> clovis localhost:161 1.3.6.1.4.1.94480.1.1.1.10.1.1.1 DB> Error in packet DB> Reason: (noSuchName) There is no such

Re: Porting the net-snmp agent to an embedded OS based on VxWorks.

2008-01-03 Thread Robert Story
On Wed, 19 Dec 2007 13:53:42 +0200 Mauro wrote: MR> Its OS is based on VxWorks, supports a partial set of standard library MR> functions and has its own system services. MR> MR> I have a specific 'C' compiler for this device that doesn't support MR> makefiles. MR> MR> I will write all the modules

Re: Problem with make - net-snmp 5.4.1

2008-01-03 Thread Robert Story
On Wed, 19 Dec 2007 18:47:43 +0100 Thomas wrote: TA> [EMAIL PROTECTED] schrieb: TA> > Hello, I've not much experience with Unix,C or make. I'm trying to do a TA> > make on net-snmp 5.4.1 running on Solaris 8. This is the output from make… TA> TA> Make sure you have /usr/ccs/bin/ar installed and in

Re: memory problem after sending trap

2008-01-03 Thread Robert Story
On Tue, 25 Dec 2007 18:19:22 +0100 slah wrote: SK> while using send_v2trap() api in net-snmp 5.3.0.1- memory size increased by SK> 40K for each SK> trap sent till it reaches 21 MB and no increase after that. SK> snmp_free_varbind is called in our code after send_v2trap(). This is the retention of

Re: Return type

2008-01-03 Thread Dave Shield
On 03/01/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > I don't understand below statements as Dave mentioned. >> You would do better concentrating on the newer handler-based approach. There are two styles of writing the code for MIB modules. One typically uses a routine 'var_xxx', and h

RE: Return type

2008-01-03 Thread Siva Prakash Reddy G
Hi! I don't understood; please can I get clear explanation. I don't understand below statements as Dave mentioned. > You would do better concentrating on the newer handler-based approach. > I would also suggest that you get a feel for writing MIB modules Y

Re: Return type

2008-01-03 Thread Dave Shield
On 03/01/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > Which code is calling var_system function and how > calling code will tell it is set request to the function var_system so > that var_system will set up the write_method hook value, here what is > hook value to invoke

RE: Return type

2008-01-03 Thread Siva Prakash Reddy G
HI! Let me thank for your constant support. > The var_system routine doesn't know whether this is a GET > Or a SET request. But the code that *calls* the var_system > Routine does. Which code is calling var_system function and how calling code will tell it is set re