Re: Table iterator and get-next question

2005-11-25 Thread Dave Shield
On Thu, 2005-11-24 at 19:43 +0100, Barbara Kuriata wrote: > But what happens if some error occurs either in get_first_data_point > or get_next_data_point routine? Shouldn't the get-next process be > interrupted and the General Error be returned in Response? > > That what I thought after reading

Re: How to define the table with the index of mac address

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 12:08 +0800, livia xie wrote: > To test the codes, I construct the datas manually. But when > I run the command of snmpget, it always returns the different values. I think you'll need to give us a bit more detail. How exactly are you constructing the returned OIDs and valu

netsnmp crash in netsnmp_table_array_ext_data_helper_handler

2005-11-25 Thread Gouri Singaraju
Hi, I am getting a crash in While running snmpgetnext -v 2c -t 240 -n "" -c public 192.168.4.246  ifIndex.256  ifNumber.0   Here is the backtrace #0  0x4061aa48 in strcmp () from /opt/Nevis/gcc-v3.2.2/lib/libc.so.6 #1  0x4054f483 in netsnmp_get_list_data (head=0x80bf060, name=0x80583

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Dave Shield
On Thu, 2005-11-24 at 16:23 +0100, Thomas Anders wrote: > according to Dave's testing with CVS MAIN on HP-UX 10.20, test #58 > (snmpwalk) fails against an agent that's running as non-root (as is > typically the case during "make test"), but succeeds when the agent is > running as root. (BTW, the

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Thomas Anders
Dave Shield wrote: On Thu, 2005-11-24 at 16:23 +0100, Thomas Anders wrote: according to Dave's testing with CVS MAIN on HP-UX 10.20, test #58 (snmpwalk) fails against an agent that's running as non-root (as is typically the case during "make test"), but succeeds when the agent is running as ro

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 15:05 +0100, Thomas Anders wrote: > Dave Shield wrote: > > I've just submitted a patch to skip these particular tests if > > 'id -u' doesn't return 0. Currently this only applies for HP-UX > > kit, but the same thing may be applicable on other systems too. > > This may be f

Re: Multiple Index in snmp table

2005-11-25 Thread Robert Story
MA> I checked the udp and tcp tables. I generated the code with few options MA> Ex: mib2c nodename followed by options 2 -> 2-> 2. MA> MA> But this code is different than the one in tcp and udp code and am MA> facing problems with this code. Please give me the options to be given MA> to mib2c co

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Thomas Anders
Dave Shield wrote: The current test suite is *much* better than it was, but I don't think that the "snmpwalk" test is sufficiently focused to be very useful. I think it fills a gap that the more focused tests leave. It verifies two very basic assumption: 1) a series of GETNEXT requests s

Re: How to define the table with the index of mac address

2005-11-25 Thread Robert Story
On Fri, 25 Nov 2005 12:08:59 +0800 livia wrote: LX> I have a private table whose index is mac address. I use mib2c to generate LX> the base codes for me and it recongnizes the mac address index's type as LX> ASN_OCT_STR. Then I define the mac address as a char array with size of 6. You want to cha

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 16:35 +0100, Thomas Anders wrote: > Dave Shield wrote: > > The current test suite is *much* better than it was, but I don't > > think that the "snmpwalk" test is sufficiently focused to be very > > useful. > > I think it fills a gap that the more focused tests leave. How

Re: agentx support for java lib on windows 2k machine

2005-11-25 Thread Robert Story
On Thu, 24 Nov 2005 04:28:25 -0800 (PST) jigar wrote: JC> I am developing AgentX subagent utility in Java on windows 2000 JC> platform. I want to develop is using netsnmp java library. We don't have a java library. If some third part has developed on, you'll have to contact them for support

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Thomas Anders
Dave Shield wrote: On Fri, 2005-11-25 at 16:35 +0100, Thomas Anders wrote: Dave Shield wrote: The current test suite is *much* better than it was, but I don't think that the "snmpwalk" test is sufficiently focused to be very useful. I think it fills a gap that the more focused tests leave.

Re: How to force a cache reload when dynamic interfaces creating/removing happen

2005-11-25 Thread Robert Story
On Wed, 23 Nov 2005 10:41:26 -0600 [EMAIL PROTECTED] wrote: EYC> I implemented ifTable subagent using mib2c.mfd.conf, it works great but I EYC> have some questions about CACHE. You created a new implementation, right? No copying of the existing code? EYC> I want to trigger a cache reload only EY

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Robert Story
On Fri, 25 Nov 2005 16:47:29 +0100 Thomas wrote: TA> Rephrased: I think it *currently* fills a gap that the other *existing* TA> tests leave. (And as such, it's IMHO *currently* quite useful) I have to agree. It has revealed at least one bug during this release cycle. -- Robert Story; NET-SNMP

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 16:47 +0100, Thomas Anders wrote: > Rephrased: I think it *currently* fills a gap that the other *existing* > tests leave. (And as such, it's IMHO *currently* quite useful) Agreed. And I'm not proposing to remove it. or at least, not until there's something better to take i

Re: Bug with transient interfaces (ppp)?

2005-11-25 Thread Robert Story
On Wed, 23 Nov 2005 23:29:39 +0100 [EMAIL PROTECTED] wrote: SO> The internet connection is via dsl PPP, sometimes the link SO> disconnect and then reconnect automatically. We also have some SO> OpenVPN tunnels that sometimes disconnect/reconnect. SO> SO> This unfortunately leave snmpd whith a ba