Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 10:45, AC. wrote: > The cause I change the question suddenly is > 1. My tables are big sometimes. > 2. When the table B was the big one and I wanna get table A, >     it wastes time and resource to get a *BIG* table B that I don't neet it. If your tables are big, then I *strongl

Re: A question of net-snmp

2010-08-25 Thread AC.
2010/8/25 Dave Shield > On 25 August 2010 09:40, AC. wrote: > >> > I see that the command "snmptable" use the "getnext" to retrive the > >> > information, > >> > but is that correct cause I don't need the information of table B? > >> > >> Please consider the following question: > >> - How does

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 09:40, AC. wrote: >> > I see that the command "snmptable" use the "getnext" to retrive the >> > information, >> > but is that correct cause I don't need the information of table B? >> >> Please consider the following question: >>   - How does the snmptable command know when it ha

Re: A question of net-snmp

2010-08-25 Thread AC.
2010/8/25 Dave Shield > On 25 August 2010 03:02, AC. wrote: > > When I used "snmptable" to get the information of the table A, it will > > contact the handler of table A. > > But it will contact the handler of table B, too. > > But only once, at the very end. > (I presume?) Yes! > > > I see

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 03:02, AC. wrote: > When I used "snmptable" to get the information of the table A, it will > contact the handler of table A. > But it will contact the handler of table B, too. But only once, at the very end. (I presume?) > I see that the command "snmptable" use the "getnext" t

Re: A question of net-snmp

2010-08-24 Thread AC.
Dear Dave, Thanks for your help, I resolve my problems. There is only one question about table having to be resolve and illustrate as following. net-snmp-5.5 2 tables, table A and table B, made by mib2c When I used "snmptable" to get the information of the table A, it will contact the handler of

Re: A question of net-snmp

2010-08-18 Thread Dave Shield
On 18 August 2010 09:01, AC. wrote: > I see that, but I have to follow two rules: > 1. When receiving the request command that want to get table information, > it must ask the information from my kernel. > -> So I remove the check, "if(tlist == NULL)", to let agent ask > information every

Re: A question of net-snmp

2010-08-18 Thread AC.
> > On 18 August 2010 06:47, AC. wrote: > >> How exactly are you retrieving the table. > > > > I used the "snmptable" command to retrive. > > In which case, things are working as expected. > > snmptable will send one GETNEXT request for each > row of the table, plus one additional request to disco

Re: A question of net-snmp

2010-08-18 Thread Dave Shield
On 18 August 2010 06:47, AC. wrote: >> How exactly are you retrieving the table. > > I used the "snmptable" command to retrive. In which case, things are working as expected. snmptable will send one GETNEXT request for each row of the table, plus one additional request to discover that it's reac

Re: A question of net-snmp

2010-08-17 Thread AC.
> > On 17 August 2010 07:28, AC. wrote: > > I can get table information that I need by using mib browser, but I > find two > > questions when I do it. > > Q1: If I use the command to get Table A, the agent will ask the > > inforation A and information B. > > "The command" is a bit vague. > H

Re: A question of net-snmp

2010-08-17 Thread Dave Shield
On 17 August 2010 07:28, AC. wrote: > I can get table information that I need by using mib browser, but I find two > questions when I do it. > Q1: If I use the command to get Table A, the agent will ask the > inforation A and information B. "The command" is a bit vague. How exactly are you

Re: A question of net-snmp

2010-08-16 Thread AC.
Dears, I can get table information that I need by using mib browser, but I find two questions when I do it. Q1: If I use the command to get Table A, the agent will ask the inforation A and information B. If I use the command to get Table B, the agent will ask the inforation B and information

Re: A question of net-snmp

2010-08-06 Thread AC.
Thank for your help. I resolve my problem, although I don't know that is the true resolution. the resoloved flow is as following: 1. use 64-bits linux os (centos) 2. unpacking the source tarball 3. use default parameter to configure (# ./configure) 4. make it, and it's no error message. (# ma

Re: A question of net-snmp

2010-08-05 Thread Dave Shield
On 5 August 2010 12:37, AC. wrote: > I downloaded "net-snmp-5.4.3.tar.gz" again, unpacked it, and then executed > "./configure". [snip] > Then, I executed the "make" command. (# make -j3 -s 1>make-out.log > 2>make-err.log) Can you try *without* the -j3 option. It looks suspiciously as if one

Re: A question of net-snmp

2010-08-05 Thread AC.
> I tried the method that you suggested yesterday. > > I downloaded "net-snmp-5.4.3.tar.gz" again, unpacked it, and then executed > "./configure". > > the "configure" patameter is as following (the same as before) > >--host=x86_64-linux \ > --with-cc="$CROSS_COMPILE"gcc \ > --with-endiannes

Re: A question of net-snmp

2010-08-05 Thread AC.
Before this change, I make it success for the old system. The imformation of the old embedded system is: Kernel: linux-2.6.14 power pc cross compile: powerpc-440-linux-gun Now I have to change system for Kernel: linux-2.6.32.9 x86_64 cross conpile-x86_64-unknow-linux-gun I jsut modify the parame

Re: A question of net-snmp

2010-08-04 Thread Dave Shield
On 5 August 2010 04:32, AC. wrote: > Before this change, I make it success for the old system. > > The imformation of the old embedded system is: [snip] > Now I have to change system for [snip] > I jsut modify the parameter of configure file with [snip] Are you using the same sourc

Re: A question of net-snmp

2010-08-04 Thread Dave Shield
On 4 August 2010 03:22, AC. wrote: > making all in /home/bluce/work/root/filesystem/packages/net-snmp-5.4/snmplib > make[1]: *** No rule to make target > `/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Config.pm', needed by > `Makefile'.  Stop. > make: *** [perlmodules] Error 1 > > Does that me

Re: A question of net-snmp

2010-08-04 Thread AC.
The error massage: making all in /home/bluce/work/root/filesystem/packages/net-snmp-5.4/snmplib make[1]: *** No rule to make target `/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Config.pm', needed by `Makefile'. Stop. make: *** [perlmodules] Error 1 Does that mean I must get and install the p

Re: A question of net-snmp

2010-08-03 Thread Dave Shield
On 3 August 2010 05:18, AC. wrote: > When I made the snmp server, I find that the execute file, snmpd, > was not made by the code. Have a look at the output of the compilation. If the agent wasn't created, then there was probably an error somewhere in the compilation process. If you can find and

Re: A question of net-snmp

2010-08-03 Thread AC.
Thank for your answer very much. Now I have to change my environment from power pc to x86_64. When I made the snmp server, I find that the execute file, snmpd, was not made by the code. And I can't find any information about snmpd for x86_64 by using "Google". XD Do you know where the snmpd for x8

Re: A question of net-snmp

2010-08-02 Thread Dave Shield
On 28 July 2010 13:57, AC. wrote: > I made a table for getting mibs information. > The first time to get information, the function, > "encTable_get_first_data_point", > is called and get my external information. > But the second time to get information, I just only get the old information > that

Re: A question of net-snmp

2010-07-28 Thread AC.
Dear sir(s), I made a table for getting mibs information. After my machine finished booting (the initial function was executed and was finish), I use "snmptable" function to get information. The first time to get information, the function,"encTable_get_first_data_point", is called and get my ext

A question of net-snmp

2010-07-28 Thread AC.
Dear sir(s), I made a table for getting mibs information. The structure is as following, Table.c /* ** table ** */ /** Initialize the table by defining its contents and how it's structured */ void initialize_table(void) { static oid enc