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

2010-08-25 Thread anup.shankar
Hi Dave, I changed the code as below, but now Get fails and Get next works. The below is the response. Dev6-MgmtServer:/usr/sbin # snmpget -v 2c -c public 127.0.0.1 1.3.6.1.4.1.1139.21.2.2.5.1.1.128.221.252.35 SNMPv2-SMI::enterprises.1139.21.2.2.5.1.1.128.221.252.35 = No Such Instance

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, anup.shan...@emc.com 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

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::

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 03:02, AC. achuan...@gmail.com 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

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, anup.shan...@emc.com 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

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

Re: A question of net-snmp

2010-08-25 Thread AC.
2010/8/25 Dave Shield d.t.shi...@liverpool.ac.uk On 25 August 2010 03:02, AC. achuan...@gmail.com 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.

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 09:40, AC. achuan...@gmail.com 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

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, Julian

Re: A question of net-snmp

2010-08-25 Thread AC.
2010/8/25 Dave Shield d.t.shi...@liverpool.ac.uk On 25 August 2010 09:40, AC. achuan...@gmail.com 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

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 10:45, AC. achuan...@gmail.com 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,

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

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

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: 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