RE: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread anup.shankar
Hi Dave, Could you get a chance to look into this. Thanks, Anup -Original Message- From: Shankar, Anup Sent: Wednesday, August 25, 2010 1:45 PM To: 'Dave Shield' Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in t

snmpdemoapp Makefile

2010-08-25 Thread Leo Lin
Hi,   I was studying the snmpdemoapp.c from net-snmp wiki tutorial.    I was not able to compile the project because the make() program gave me some errors;   basically, it cannot find references in two source codes;   scapi.c keytools.c   I used the following command in make()   snmpdemoapp: $(

Re: trapsess problems

2010-08-25 Thread Markus Hofer
Now I got the following question When defining trapsess like this createUser -e 0x81020304 snmpv3_SHA_authNoPriv_trap_dst1 SHA helloworld and trapsess -v 3 -u snmpv3_SHA_authNoPriv_trap_dst2 -l authNoPriv -a SHA -A helloworld 10.16.10.11:162 Again I used some dummy engineID Does the

Re: Trap receivers, table_data.conf

2010-08-25 Thread Norasyikin MD Ali
Hello again, My registration table using table_data works fine. Now I'm trying to map values from this table to an internal table in my mib called the hosttable : table_entry = (regnms_entry *) netsnmp_tdata_extract_entry(request); //mapping registered manager

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: net-snmp & HOST-RESOURCES-MIB::hrStorage

2010-08-25 Thread Julian Grunnell
>-Original Message- >From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On >Behalf Of Dave Shield >Sent: 23 August 2010 15:44 >To: Julian Grunnell >Cc: net-snmp-users@lists.sourceforge.net >Subject: Re: net-snmp & HOST-RESOURCES-MIB::hrStorage > >On 23 August 2010 15:34,

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: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread anup.shankar
Attached is the compiled code... -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, August 25, 2010 1:20 PM To: Shankar, Anup Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Fails:: SNMPGetNext and GetB

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread Dave Shield
On 25 August 2010 08:30, wrote: > Attached is the code.. And the header files? What I'm looking to do is to try out your MIB module on my local system, so I can see exactly what is going wrong. In order to do that, I need *ALL* the stuff that you have added (including the C++ objects that you

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: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread anup.shankar
Attached is the code.. Thanks for your help. ~Anup -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, August 25, 2010 12:50 PM To: Shankar, Anup Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Fails:: S

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread Dave Shield
On 25 August 2010 07:21, wrote: > I changed the code as below, but now Get fails and Get next works > The code snipprt is as below:: Hmmm... I'm not quite sure what is happening here. Could you please post (as attachments) the *complete* code of the MIB module that you are working with. Da