Re: During getBulk

2007-03-29 Thread Zhang Chuan
Hi, I have met the same problem with you. But I have not solve it very well, I just let it be. Maybe the reason is the Advenet(you use it, don't you?) will search the next oid automaticly. So we can do nothing about it. If you do not use Advenet, the problem will disappear. On 3/29/07, Senthil

Re: Decrease execute times of get_first_data_point() when getBulk

2007-03-13 Thread Zhang Chuan
Thanks for useful advices. I have tried it but can not success in compile. 1.I use "mib2c -S cache=1 -c mib2c.iterate.conf portInfoTable" to generate the framework. 2.After compared the new framework with the old one, I got there are just minor difference between them. 3.I added the difference c

Decrease execute times of get_first_data_point() when getBulk

2007-03-08 Thread Zhang Chuan
Hi, Recently I have coded my own MIB module based on a stub file that was originally auto-generated by mib2c using mib2c.iterate.conf. The version is 5.2.2. The module contains a table with 10 columns and currently 125 rows. Since I want to get the newest data from system when a GETBULK message

Re: Re: net-snmp-5.4 compile error

2007-01-29 Thread Zhang Chuan
Try this one: ln -s /usr/local/lib/libbeecrypt.so.5 /usr/lib/libbeecrypt.so.5 On 1/30/07, liu.renfeng <[EMAIL PROTECTED]> wrote: Thanks very much. I create a symbol link as follow: ln -s libbeecrypt.so.6.2.0 libbeecrypt.la But still I get : [EMAIL PROTECTED] net-snmp-5.4]# make making all

Re: Porting net-snmp to arm platform questions

2007-01-23 Thread Zhang Chuan
Yes, I am just doing this job. Port net-snmp to ARM9 Do you have any problems? Please send us and discuss them. On 1/24/07, liu.renfeng <[EMAIL PROTECTED]> wrote: Is there anyone have the experience of porting net-snmp to arm platform? Or anyone can give me any suggestion?

Some primary questions on implementing trap

2007-01-06 Thread Zhang Chuan
Hi, everybody Happy new year! I am using NET-SNMP 5.2.2. I want to implement some traps in my agent. For example, as soon as CPU is overload or the fan is out of work, the agent should send notifications to manager. I already have some MIBs definitions for those traps. But I have no idea how to

A strange problem of use "getNext" to get table data

2006-10-31 Thread Zhang Chuan
Hi, all:   I have two tables in my MIB file. One is A_table, the other is B_table. The OID of A_table is:.1.3.6.1.4.1.236.4.6.1.3.1.2. The OID of B_table is: .1.3.6.1.4.1.236.4.6.1.3.1.3. Both of A and B tables have no data.   1. I use AdventNet to get the A_table data. The AdventNet sent "getNex

Re: compile net-snmp for ARM 9

2006-09-25 Thread Zhang Chuan
Y_PATH"? But I have tried and failed. Am I right? And how to solve it?   Many thanks!   Sincerely Peter  On 9/23/06, Thomas Anders <[EMAIL PROTECTED]> wrote: Zhang Chuan wrote:> But the next problem occurred, I have to migrate the agent from X86 to> ARM9. > I have get the cross

compile net-snmp for ARM 9

2006-09-22 Thread Zhang Chuan
Hi, everyone   With Mr.Dave and Mr.Robert 's kindly help, I have finished my first net-snmp agent on FC3. Thank you very much!   But the next problem occurred, I have to migrate the agent from X86 to ARM9. I have get the cross compile(arm-linux-gcc). But how can I compile the snmpd with the cross c

Re: CreateAndGot(4) and CreateAndWait(5) problem

2006-09-05 Thread Zhang Chuan
ction is not compatible to mib2c.iterate.conf, why it can be generated? Thank you very much!   Sincerely Peter       On 9/5/06, Dave Shield <[EMAIL PROTECTED]> wrote: On 05/09/06, Zhang Chuan <[EMAIL PROTECTED]> wrote: > I think the row can not be avaliable immediately after> netsnmp_ta

Re: CreateAndGot(4) and CreateAndWait(5) problem

2006-09-01 Thread Zhang Chuan
And another question: 3. What is the difference between "netsnmp_insert_table_row" and "netsnmp_table_data_add_row"?  On 9/2/06, Robert Story <[EMAIL PROTECTED]> wrote: On Thu, 31 Aug 2006 09:40:24 +0100 Dave wrote:DS> On 31/08/06, Zhang Chuan < [EMAIL PROTECTED

Re: CreateAndGot(4) and CreateAndWait(5) problem

2006-09-01 Thread Zhang Chuan
n 9/2/06, Robert Story <[EMAIL PROTECTED]> wrote: On Thu, 31 Aug 2006 09:40:24 +0100 Dave wrote:DS> On 31/08/06, Zhang Chuan < [EMAIL PROTECTED]> wrote:DS> > 1.if rowStatus is CreateAndGot(4), the "case MODE_SET_COMMIT:" will notDS> > be executed? if CreateAndWait(5

CreateAndGot(4) and CreateAndWait(5) problem

2006-08-31 Thread Zhang Chuan
Thank Dave for his patient answer of my first question!   But I have another one:   I wonder when I set a line to a table.There is a rowStatus field.When I set the rowStatus to CreateAndGo(4). Everything is OK, the line can be insert into table.   But if the rowStatus is CreateAndWait(5). In "case

Re: help on integer type in a table

2006-08-30 Thread Zhang Chuan
!  On 8/30/06, Dave Shield <[EMAIL PROTECTED] > wrote: On 30/08/06, Zhang Chuan < [EMAIL PROTECTED]> wrote:>NumberTemp=(int *)request->requestvb->val.integer;NumberTemp = (int) *request->requestvb->val.integer;>printf("\nNumberTemp=%d\n", NumberTem

Re: help on integer type in a table

2006-08-30 Thread Zhang Chuan
equest->requestvb->val.string);//here notePCUser is string, so it is OK break; table_row = notePCTable_createEntry(table_info->indexes->val.string, NumberTemp, UserTemp);netsnmp_insert_table_row(request, table_row);     Thank you for your help~ On 8/30/06, Dave Shield <[EMAIL

help on integer type in a table

2006-08-30 Thread Zhang Chuan
Hi, everyone:   I am Peter. I am a new comer of NET-SNMP. Nice to meet you all!   I have a problem recently. My MIB have a table("myTable") which include 2 fields. One is "myNumber" which is integer32. The other is "myName" which is string. I have gengerated the myTable.c and myTable.h by mib2c.i