Implement IMPLIED in MIB hash

2009-04-02 Thread Bill Fenner
I have a mib2c-based project that needs to be able to know whether an INDEX is IMPLIED - this allows the decision to use ASN_PRIV_IMPLIED_OCTET_STR to be: if ( ($node->{type} == "OCTETSTR") && (@{ $node->{ranges} } == 1) ) { my $range = $node->{ranges}->[0]; if ( $range->{high} == $

Re: Review Request: Don't splat /var/agentx/master when starting an extraneous snmpd

2009-04-02 Thread Wes Hardaker
> On Thu, 2 Apr 2009 20:14:26 -0700, Bill Fenner said: BF> Yeah, sorry for being dumb That's ok; the intent was certainly helpful :-) BF> I am so in love with reviewboard and it works so well at my office BF> that I thought I'd try it for open source stuff. I will continue to BF> post my d

Re: Review Request: Don't splat /var/agentx/master when starting an extraneous snmpd

2009-04-02 Thread Bill Fenner
On Thu, Apr 2, 2009 at 2:24 PM, Wes Hardaker wrote: >> On Thu, 02 Apr 2009 18:49:45 -, "Bill Fenner (gmail)" >> said: > BF> --- > BF> This is an automatically generated e-mail. To reply, visit: > BF> http://review.fenron.com/r/4

Re: Review Request: Don't splat /var/agentx/master when starting an extraneous snmpd

2009-04-02 Thread Wes Hardaker
> On Thu, 02 Apr 2009 18:49:45 -, "Bill Fenner (gmail)" > said: Hi Bill! BF> --- BF> This is an automatically generated e-mail. To reply, visit: BF> http://review.fenron.com/r/4/ BF>

Review Request: Don't splat /var/agentx/master when starting an extraneous snmpd

2009-04-02 Thread Bill Fenner (gmail)
--- This is an automatically generated e-mail. To reply, visit: http://review.fenron.com/r/4/ --- Review request for Net-SNMP Coders. Summary --- If you start snmpd twice (e.g.,

First 5.5 pre-release available: 5.5.pre1

2009-04-02 Thread Wes Hardaker
The first of the pre-releases for 5.5 is now available on our download site. Feedback during our pre-release and RC series is always greatly appreciated, so if you're willing to give it a whirl please do so! http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=11571&release_

Re: 答复: 答复: code size generating by mib2c.mf d.conf

2009-04-02 Thread Dave Shield
2009/4/2 Kang Chen : > If the data is not belong to the agent, I mean the data will change > dynamically, > is there any chance to reload the data again when I want to get the data? Generate the template code using mib2c -S cache=1 . That will include a mechanism for re-loading the data

答复: 答复: code size generating by mib2 c.mfd.conf

2009-04-02 Thread Kang Chen
Hi, Dave I've implement the code using mib2c.table_data.conf. Another question, If the data is not belong to the agent, I mean the data will change dynamically, is there any chance to reload the data again when I want to get the data? -邮件原件- 发件人: dave.shi...@googlemail.com [mailto:dave.

Re: I obtain that with make install

2009-04-02 Thread Dave Shield
2009/4/2 "Gómez González, Enrique" : > About mib2c.table_data.conf there are more errors, it is easy to find them > compiling the *.c and *.h file generated. Anycase I could progress. If you are going to report problems, it would be useful if you could give a bit more detail about exactly *what* e

RE: I obtain that with make install

2009-04-02 Thread Gómez González, Enrique
Thank you again: About mib2c.table_data.conf there are more errors, it is easy to find them compiling the *.c and *.h file generated. Anycase I could progress. A new question, I have the module volumeOccupancyTable, so after I develop and modify in file net-snmp-5.4.2.1/agent/mibgroup/volumeOccupa

Re: 答复: code size generating by mib2c.mfd.conf

2009-04-02 Thread Dave Shield
2009/4/2 Kang Chen : > I used to use mib2c.iterate.conf, but I found the efficiency of this > framework is too slow. > So, how about the efficiency of mib2c.table_data.conf? Regardless of the template that you choose, there are two (or possibly three) basic approaches to processing a table reque

答复: code size generating by mib2c.mfd.conf

2009-04-02 Thread Kang Chen
Hi, Dave Thank you for your recommendation. I used to use mib2c.iterate.conf, but I found the efficiency of this framework is too slow. For example i implement a table with about 4000 instances, it took me several minutes to walk this table. So, how about the efficiency of mib2c.table_data.conf?

Re: code size generating by mib2c.mfd.conf

2009-04-02 Thread Dave Shield
2009/4/2 Kang Chen : > I use mib2c.mfd.conf to generate the code, > but I find the code size is too large. > > What’s your opinion about this problem and do you have > any ways to reduce the code size? The aim of the MfD framework is to handle as much as possible of the table processing automatica