Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Dave Shield
    xxx_get_oid(var, table_info->indexes, "column1", > entry_val); Again, does this call succed? I've no real idea what this routine is meant to do, or whether it returns anything. Where are you updating the OID within the varbind for GETNEXT requests? That&#x

Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Ravi Kumar
Thanks... On Thu, Oct 20, 2011 at 12:41 PM, Dave Shield wrote: > On 20 October 2011 08:07, Ravi Kumar wrote: > > I have registered my table with netsnmp_register_table to implement > > my own getnext. > > Every thing seems to be working fine except snmpgetnext req

Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Dave Shield
On 20 October 2011 08:07, Ravi Kumar wrote: > I have registered my table with netsnmp_register_table to implement > my own getnext. > Every thing seems to be working fine except snmpgetnext request with > multiple oid  returns only first oid and its value in response PDU. > Any

Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Ravi Kumar
I have registered my table with netsnmp_register_table to implement my own getnext. Every thing seems to be working fine except snmpgetnext request with multiple oid returns only first oid and its value in response PDU. Any guesses ? my code loops over for (request = requests; request; request

Re: getnext handling in netSnmpHostsTable

2011-10-19 Thread Dave Shield
x27;s at the heart of the iterator-based table implementations. > what if some one wants to implement his own getnext functionality ? Then register the table using "netsnmp_register_table" The point of using one of the various table helpers is to take advantage of the stuff that'

Re: getnext handling in netSnmpHostsTable

2011-10-19 Thread Ravi Kumar
Can you please point me the function or code where this conversion is happening with respect to netSnmpHostsTable . what if some one wants to implement his own getnext functionality ? Thanks. On Wed, Oct 19, 2011 at 1:05 PM, Dave Shield wrote: > On 19 October 2011 07:53, R

Re: getnext handling in netSnmpHostsTable

2011-10-19 Thread Dave Shield
On 19 October 2011 07:53, Ravi Kumar wrote: > I was going though netSnmpHostsTable table implementation based > on mib2c.iterate_access.conf. > I could no find a GETNEXT handling in netSnmpHostsTable_handler from the > code looks like only get and set are handled. That's cor

getnext handling in netSnmpHostsTable

2011-10-18 Thread Ravi Kumar
Hi, I was going though netSnmpHostsTable table implementation based on mib2c.iterate_access.conf. I could no find a GETNEXT handling in netSnmpHostsTable_handler from the code looks like only get and set are handled. But while querying the table getnext is working fine as well. Can any body tell

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 12 April 2011 15:54, Dave Shield wrote: > On 12 April 2011 15:38, Zimmer Hu wrote: >> Could you tell me which way is the right way to make such a change? > > Not unless you send the header files I asked for. Oops! Sorry - I've just spotted the later message that included them. OK - I'll try

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 12 April 2011 15:38, Zimmer Hu wrote: > Could you tell me which way is the right way to make such a change? Not unless you send the header files I asked for. In order to help you solve this problem, I need to reproduce it first - which means I need a version of the agent that includes this mo

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Zimmer Hu
Dave, After I have "stCnt = 1" removed from free_loop_context_at_end(), the index of column grows endlessly. Hence, snmpwalk can't move to the next column. Could you tell me which way is the right way to make such a change? Thanks, -Z On Tue, Apr 12, 2011 at 10:28 AM, Zimmer Hu wrote: > Here th

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Zimmer Hu
Here they are. The last file is the freshly generated snmpwalk output log file with a shortened syslog sample. I'm trying the one with stCnt removed... On Tue, Apr 12, 2011 at 10:15 AM, Dave Shield wrote: > On 12 April 2011 14:57, Zimmer Hu wrote: > > Dave, attached is my code. > > And the hea

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 12 April 2011 14:57, Zimmer Hu wrote: > Dave, attached is my code. And the header files? > The rationale behind the code is to set index value at every beginning of > column loop. When loop goes back to the beginning of next column, the index > is reset to 1 and count again. The iterator fr

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Zimmer Hu
t_info*reqinfo, netsnmp_request_info *requests) { netsnmp_request_info *request; netsnmp_table_request_info *table_info; // struct syslogMsgTable_entry *table_entry; syslogMsgTable_loop_context *table_loopctx; syslogMsgTable_data_context *table_entry; //

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 12 April 2011 14:28, Zimmer Hu wrote: >> You still haven't provided the output from "snmpwalk" that I asked for. > > Here is snmpwalk output (only partial, too long as a whole). No - please post the *WHOLE* of the output. (Probably as an attachment would be best). Or at least make it available

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Zimmer Hu
On Tue, Apr 12, 2011 at 4:10 AM, Dave Shield wrote: > On 11 April 2011 19:17, Zimmer Hu wrote: > > Here are exact output: > > > > 1a) snmpget > > > > # snmpget -v 2c -c public localhost .1.3.6.1.2.1.192.1.2 > > .1.3.6.1.2.1.192.1.2 = No Such Object available on this agent at this > OID > > Yes -

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 11 April 2011 19:17, Zimmer Hu wrote: > Here are exact output: > > 1a) snmpget > > # snmpget -v 2c -c public localhost .1.3.6.1.2.1.192.1.2 > .1.3.6.1.2.1.192.1.2 = No Such Object available on this agent at this OID Yes - that is correct. For "snmpget", you have to provide the OID of an instan

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 11 April 2011 18:07, Zimmer Hu wrote: > I'm going to try snmptable command, >better to have snmptable command in mbrowse... You'll have to talk to the mbrowse developers about that. It's nothing to do with the Net-SNMP project. (other than apparently being built on out toolkits) Dave

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Zimmer Hu
t;> > with error same as that in 1a)) >> >> Again, that's really too vague to be useful. >> Please post the exact command(s) and full output. >> >> >> >> >> > I just can't conceive an example let me go through one row's col

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Zimmer Hu
7;t conceive an example let me go through one row's columns > first, > > then move to next row....Is this to say Snmpv1 is not capable to > handle > > table efficiently > > It's nothing to do with SNMPv1 vs SNMPv2 - this is a consequence of > the basic behavi

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Zimmer Hu
gt; > with error same as that in 1a)) > > Again, that's really too vague to be useful. > Please post the exact command(s) and full output. > > > > > > I just can't conceive an example let me go through one row's columns > first, > > then move to next

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Dave Shield
...Is this to say Snmpv1 is not capable to handle > table efficiently It's nothing to do with SNMPv1 vs SNMPv2 - this is a consequence of the basic behaviour of the GETNEXT command, combined with the OID ordering rules of SMI. An "snmpwalk" will *always* traverse tab

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Zimmer Hu
> > tried using "snmpget" to retrieve the data in your way, and mbrowse to > > retrieve only one MO (column) in one row from a table but it failed > > That description is a little bit vague. > What was the exact "snmpget" command that you tried? > (And for comparison, what's the full output from sn

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-11 Thread Dave Shield
On 10 April 2011 19:46, Zimmer Hu wrote: > I'm asking this because I am using "snmpwalk" to send the requests, > so, is it true for the most nature case, my explanation is right? If you are using "snmpwalk", then this sends a series of GETNEXT requests, each contai

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-10 Thread Zimmer Hu
Yes, that's to say, only when client wants to do this deliberately. Otherwise, the requests is one column after the other. Dave, I'm asking this because I am using "snmpwalk" to send the requests, so, is it true for the most nature case, my explanation is right? I have tried using "snmpget" to ret

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-10 Thread Dave Shield
On 10 April 2011 16:46, Zimmer Hu wrote: > Right, I took it for granted that the varbinds for "each requests" is for > the columns of "each row". There may be holes in table so this may not be > the case. Nevertheless, is this assertion true for the "full-filled" table > (a varbind in one requests

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-10 Thread Zimmer Hu
Right, I took it for granted that the varbinds for "each requests" is for the columns of "each row". There may be holes in table so this may not be the case. Nevertheless, is this assertion true for the "full-filled" table (a varbind in one requests list == a request ==a column in a row)? On Sun,

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-10 Thread Dave Shield
On 9 April 2011 13:46, Zimmer Hu wrote: > As to my understanding (and your hints), > netsnmp_table_iterator_helper_handler goes through each row first; Then for > each row, it stores each column data(data_context) in TI_REQUEST_CACHE; Close - but not quite. The iterator goes through each row of

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-09 Thread Zimmer Hu
> If the helper framework knows (or can find out) the list of valid rows, > then it can automatically determine which row is needed to answer a > given GETNEXT request. > Dave, Thanks. As to my understanding (and your hints), netsnmp_table_iterator_helper_handler goes through ea

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-08 Thread Dave Shield
On 8 April 2011 06:33, Zimmer Hu wrote: >> I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed when I >> snmpwalk through MyTable, there are a lot of GETNEXT request sent out, but >> in my handler, branch GETNEXT doesn't get execute

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-07 Thread Zimmer Hu
Ok, I have found in netsnmp_table_iterator_helper_handler(), it changes all GETNEXT requests to GET. ( Line 778 in table_iterator.c for netsnmp-5.4.3). On Thu, Apr 7, 2011 at 4:23 PM, Zimmer Hu wrote: > Hi, > > I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed whe

Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-07 Thread Zimmer Hu
Hi, I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed when I snmpwalk through MyTable, there are a lot of GETNEXT request sent out, but in my handler, branch GETNEXT doesn't get executed, the string I put there doesn't get printout. Same thing for netSnmpHostsTable an

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2011-02-28 Thread Phill Xenox
Hi! Probably problem in function int check_getnext_results (netsnmp_agent_session *asp) from snmp_agent.c (a line 2798). There is no check of the status of request. If the status of request is erroneous, function check_getnext_results all can return 1 (request GETNEXT correct). It is necessary

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
On Fri, Feb 18, 2011 at 3:58 PM, Dave Shield wrote: > On 18 February 2011 20:28, Fulko Hew wrote: > > I have two regions registered, and I perform a getnext to the master... > > > > The master sends an AgentX getNext PDU on the first region looking for a > > positi

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Dave Shield
On 18 February 2011 20:28, Fulko Hew wrote: > I have two regions registered, and I perform a getnext to the master... > > The master sends an AgentX getNext PDU on the first region looking for a > positive response.  Unfortunately, the 'next' variable isn't within t

problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
I'm confused by what Net-SNMP (5.6.rc2) is doing when interacting with my AgentX sub-agent. I have two regions registered, and I perform a getnext to the master... The master sends an AgentX getNext PDU on the first region looking for a positive response. Unfortunately, the 'next

getNext on AgentX sub-agent OID boundary confusion

2011-02-15 Thread Fulko Hew
following OIDs: 1.3.6.1.4.1.881.500.1.5.1.1.1 1.3.6.1.4.1.881.500.1.5.1.2.1 1.3.6.1.4.1.881.500.1.5.1.3.1 1.3.6.1.4.1.881.500.1.5.1.4.1 ie, columns 1 through 4 for row 1 2/ To test it, I query my agent with a: getnext 1.3.6.1.4.1.881.500.1 3/ What I see in the AgentX getNext PDU is:

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-17 Thread Phill Xenox
list, where others can both learn > and offer advice. Thanks. ] Sorry for the trouble. > > We probably need a bit more information about exactly what is happening here. > > Can you please try running the agent using the flags > > -D snmp_agent,agentx > > and issu

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-16 Thread Dave Shield
andler does not terminate a poll subagent when it > receives generror. We probably need a bit more information about exactly what is happening here. Can you please try running the agent using the flags -D snmp_agent,agentx and issue a single GETNEXT request, that will trigger the problem

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Dave Shield
On 11 November 2010 15:16, Robert Story wrote: > On Thu, 11 Nov 2010 09:20:22 +0300 Phill wrote: > PX> Has faced a strange situation. There are 4 tables in one MIB-file. All > tables are realised in the subagent through AgentX. Net-SNMP works as the > master. All fields of the table have type Un

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Robert Story
On Thu, 11 Nov 2010 09:20:22 +0300 Phill wrote: PX> Has faced a strange situation. There are 4 tables in one MIB-file. All tables are realised in the subagent through AgentX. Net-SNMP works as the master. All fields of the table have type Unsigned32. If any table contains an error (for example n

GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Phill Xenox
Hi All! Has faced a strange situation. There are 4 tables in one MIB-file. All tables are realised in the subagent through AgentX. Net-SNMP works as the master. All fields of the table have type Unsigned32. If any table contains an error (for example negative value, the subagent returns genErro

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-29 Thread Claus Klein
Hi Dave, I have submitted 2 patches, one for the trunk and one for V5.4 branch. Please check at leased that one for trunk. 3 test scripts are also included. https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3096725&group_id=12694 Kindly regards, Claus On 26.10.2010, at 22:43, Cl

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-27 Thread Claus Klein
Ok, done. see https://sourceforge.net/tracker/?func=detail&aid=3096725&group_id=12694&atid=312694 Note, this patch does not fix the sparse table BUG at V5.4.3! Regards Claus On 26.10.2010, at 06:06, Thomas Anders wrote: > Claus Klein wrote: >> Please apply this patch and check the result abo

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-26 Thread Claus Klein
Hi Dave, thanks, you are right. I merged more than needed. On the other site, the sparse table handling on net-snmp v5.6 works. Without my changes at the table_dataset.c. But I have no Idea why? So I merged all this files ... without luck. Later I found the solution for this problem at the ta

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-26 Thread Claus Klein
Ok Thomas, I will do it again against the SVN trunk. But I still need a hint: At another tread I asked some question about the code ... 1.) Why is the send_trap_to_sess() called for each entry at sinks without check the snmpNotifyFilter? 2.) And why is the snmpNotifyFilter called via callbac

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-26 Thread Dave Shield
On 25 October 2010 22:30, Claus Klein wrote: > First of all, the sparse table handling for the notificationLogMib does not > work! > > Second the v1 trap pdu is different from the v2/v3 trap pdu. > > Than there are a lot of small BUGs about the trap handling toward the > notificationLogMib. > Pl

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-25 Thread Thomas Anders
Claus Klein wrote: > Please apply this patch and check the result about my FIXME notes. Please submit your patch to http://www.net-snmp.org/patches so it won't get lost. Patches that apply cleanly against SVN trunk usually have a higher chance to get accepted quickly. +Thomas

Re: getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-25 Thread Claus Klein
I was able to fix it. It was more than one BUG involved! First of all, the sparse table handling for the notificationLogMib does not work! Second the v1 trap pdu is different from the v2/v3 trap pdu. Than there are a lot of small BUGs about the trap handling toward the notificationLogMib.

getnext (snmpwalk) does not deliver the hole table (snmpd5.4.3)

2010-10-21 Thread Claus Klein
Hi all, I am going to become crazy. While working with net-snmp v5.4.3 i have problems with the notificationlogmib. An snmpwalk localhost nlmLogTable does not deliver all rows. I checked that the missing entries are added to the table. When I walk over the missing row, I can read the entries?

how to optimize getnext operation in subagent

2009-09-29 Thread Manu Mehta
agent some error code so that it will skip over all the subsequent row handlers. I tried sending SNMP_ENDOFMIBVIEW but still the getnext goes through all the row handlers. Below is the sequence of steps 1. udpTable (1.3.6.1.2.1.5.7) is indexed on IP Address and Port combination. For simplicity lets

RE: help needed with root oid and getnext operation

2009-03-02 Thread EYRE Bernadette
; [email protected] Subject: Re: help needed with root oid and getnext operation 2009/2/28 EYRE Bernadette : > One of my original problem was that when using snmpwalk command OK - so you are using "snmpwalk". That's definitely relevant here > on say

Re: help needed with root oid and getnext operation

2009-02-28 Thread Dave Shield
cted, but you hadn't given sufficient detail to confirm this. > my subagent handler was getting called > once with getnext and next with get mode. That is the designed behaviour. Think about what things look like from the user point of view. If I run "snmpwalk ... system", I

RE: help needed with root oid and getnext operation

2009-02-27 Thread EYRE Bernadette
Hi David, One of my original problem was that when using snmpwalk command on say a column (without any instance index) of one of the tables, my subagent handler was getting called once with getnext and next with get mode. I wasn't sure if that was the expected sequence of calls. I wa

Re: help needed with root oid and getnext operation

2009-02-26 Thread Bernadette Eyre
've no idea what information Harish has suggested, since this doesn't > seem to have been copied to the list. Harish email is listed below: Hi Berndette, Maybe you can get good sample programs for GETNEXT here http://www.opensource.apple.com/darwinsource/10.4.4.ppc/net_snmp-18/

RE: GET and GETNEXT Processing

2009-02-24 Thread Sathyanarayana Murthy, Harish Kolar
Hi Berndette, Maybe you can get good sample programs for GETNEXT here http://www.opensource.apple.com/darwinsource/10.4.4.ppc/net_snmp-18/net-snmp/apps/ Hope this helps. Thanks Harish From: EYRE Bernadette [mailto:[email protected]] Sent

GET and GETNEXT Processing

2009-02-24 Thread EYRE Bernadette
Hello snmp coders and users, I'm lost please help shed some light. I have an subagent which registers organization root oid (several tables and scalars) when I run snmpwalk on one of the columns of one of the tables the net-snmp master agent calls my handler with GETNEXT mode first and

Re: Proper GETNEXT behavior

2009-01-22 Thread Dave Shield
2009/1/21 Adrian Overbury : >If I've got a MIB > file that covers my whole sub-tree, is there a way I can parse that in, > say, python or perl, and get some kind of data structure from which I > can follow a link to the next OID in the tree? You *cou

Re: Proper GETNEXT behavior

2009-01-22 Thread Dave Shield
2009/1/21 Adrian Overbury : > Say I've got a table, and I've just gotten a GETNEXT request for the OID > of one of the column heads. Should I return the OID for the next column > head or the OID of the first field of that column? The general rule with GETNEXT is that you shoul

Proper GETNEXT behavior

2009-01-21 Thread Adrian Overbury
So this is a point I've never been clear on: Say I've got a table, and I've just gotten a GETNEXT request for the OID of one of the column heads. Should I return the OID for the next column head or the OID of the first field of that column? On a similar note, I've been

Re: scalar_group and getnext processing

2009-01-21 Thread Dave Shield
2009/1/21 satyam : > what is the best way to handle group of similar scalars ? > I was looking at scalar_group and it seems to meet requirement perfectly > > Would it take care of getnext processing and getbulk processing

scalar_group and getnext processing

2009-01-20 Thread satyam
what is the best way to handle group of similar scalars ? I was looking at scalar_group and it seems to meet requirement perfectly Would it take care of getnext processing and getbulk processing ? -- This SF.net email

Re: How to avoid getfirst-getnext cycles in unsorted-external and iterator methods

2008-05-17 Thread Dave Shield
erlying table This should probably come *after* the table_info call (since this is where you retrieve the index values) Duplicate this block to form a GETNEXT block, and tweak it to search your underlying table for the appropriate row. (Or you could

Re: How to avoid getfirst-getnext cycles in unsorted-external and iterator methods

2008-05-11 Thread Magnus Fromreide
; low level snmp routines for my database. These are my requirements: > >> > >> 1) Given the index/indices in the OID extracted from the SNMP Varbind, > >> I can directly access the node which has the required info. I don't > >> want to go through a getfirst-getn

Re: How to avoid getfirst-getnext cycles in unsorted-external and iterator methods

2008-05-11 Thread Rupa P V
n directly access the node which has the required info. I don't >> want to go through a getfirst-getnext cycle to find the correct row >> for an SNMP GET request. My database is maintained as a hash table and >> so I can access my data by hashing on my indices. >> >>

Re: How to avoid getfirst-getnext cycles in unsorted-external and iterator methods

2008-05-11 Thread Magnus Fromreide
ctly access the node which has the required info. I don't > want to go through a getfirst-getnext cycle to find the correct row > for an SNMP GET request. My database is maintained as a hash table and > so I can access my data by hashing on my indices. > > 2)My data base is not so

How to avoid getfirst-getnext cycles in unsorted-external and iterator methods

2008-05-11 Thread Rupa P V
ugh a getfirst-getnext cycle to find the correct row for an SNMP GET request. My database is maintained as a hash table and so I can access my data by hashing on my indices. 2)My data base is not sorted, so for SNMP GetNexts , I dont mind getfirst-getnext cycles being called. I tried mfd (uns

Re: GETNEXT stumbles at end of some subtrees

2008-02-12 Thread Larry Dickson
iled originally? I'll have to dig into these things later... the boss wants to focus on failover. I'll get back to you. > I forgot to mention, when I do a > > getnext on netSnmp.1.8 I get an additional line that says > > > > Connection from > > > >

Re: GETNEXT stumbles at end of some subtrees

2008-02-12 Thread Dave Shield
On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > Also, 2nd question - What should be our subagent's response to a "getnext" > on the last leaf in our subtree? The subagent should return an "endOfMibView" value for this varbind (RFC 2741, section 7.2.

Re: GETNEXT stumbles at end of some subtrees

2008-02-12 Thread Dave Shield
; do you see anything unexpected? How was the agent configured/compiled originally? > I forgot to mention, when I do a > getnext on netSnmp.1.8 I get an additional line that says > > Connection from > > before it jumps to our private s

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Larry Dickson
I inserted ### before the "perl do" line in each copy of snmpd.conf that had it. The behavior did not change, i.e. it still timed out as before. (Also the subagent still appears to function.) I forgot to mention, when I do a getnext on netSnmp.1.8 I get an additional line that says

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Dave Shield
On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > Apparently we have no extend, etc, entries, though there's a "perl do"; here > is the full text (excluding comments and blank lines) of the 3 snmpd.conf > files I found on the system (=== lines are my commentary): > === Contents of (recent

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Larry Dickson
rapsink 192.168.1.22 perl do /etc/edgeware-subagent.pl Also, 2nd question - What should be our subagent's response to a "getnext" on the last leaf in our subtree? Larry Dickson On 2/11/08, Dave Shield <[EMAIL PROTECTED]> wrote: > > On 11/02/2008, Larry Dickson <[EMA

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Dave Shield
On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > > > But my question is also more algorithmic: How is it (the agent/subagent > > > combination) supposed to do a getnext that jumps out of the subagent's > > > subtree? > > > > The subtree i

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Dave Shield
On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > Getnext results for netSnmp.x > 1.4 nsCacheDefaultTimeout.0 > 1.5 same So the cache modules is working OK > 1.6 nsDebugEnabled.0 > 1.7 same ... as is the debug module... > 1.8 enterprises.22782.1.2.1.1.0 =

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Larry Dickson
Interleaved below... On 2/11/08, Dave Shield <[EMAIL PROTECTED]> wrote: > > On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > > Response to getnext at netSnmp.1.3 is timeout. > > OK - what about >GETNEXT netSnmp.1.5 > GETNEXT netSnmp.1.7 >

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Dave Shield
On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: > Response to getnext at netSnmp.1.3 is timeout. OK - what about GETNEXT netSnmp.1.5 GETNEXT netSnmp.1.7 GETNEXT netSnmp.1.9 What I'm trying to determine here is exactly *where* the blocking module is located

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Larry Dickson
Response to getnext at netSnmp.1.3 is timeout. Response to get at netSnmp.1.3, netSnmp.1.3.1, etc, is noSuchName (though it does give a name for the first couple of them). My guess is that whatever comes immediately after netSnmp.1.2.1.1.6.0.12.1.3.6.1.6.3.16.1.5.2.1.6.127 is where the damage is

Re: GETNEXT stumbles at end of some subtrees

2008-02-11 Thread Dave Shield
On 23/01/2008, Larry Dickson <[EMAIL PROTECTED]> wrote: >attempting a subtree at netSnmp times out after > netSnmp.1.2.1.1.6.0.12.1.3.6.1.6.3.16.1.5.2.1.6.127 and > trying a getnext on this oid also times out. That's part of the nsModuleTable (in particular, an instance of

GETNEXT stumbles at end of some subtrees

2008-01-23 Thread Larry Dickson
Hi all, I'm new at this and using a variant of version 5.2.1 (ca 2005-05-26). I'm using iReasoning mib browser and/or snmpwalk and friends. Attempts to do getnext at end of a subtree get inconsistent results. In the MIB files, ucdavis = .1.3.6.1.4.1.2021 and netSnmp=.1.3.6.1.4.1.8072 -

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

2006-10-31 Thread Robert Story
On Tue, 31 Oct 2006 17:24:27 +0900 Zhang wrote: ZC> Who can tell me why agent will search B_table continuely? As Juergen said, the agent will search continuously until it does find a object, regardless of any table/object boundaries. There was some proposed work to allow specifying a limiting oid,

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

2006-10-31 Thread Juergen Schoenwaelder
> 1. I use AdventNet to get the A_table data. The AdventNet sent "getNext" > message to agent: > > The list are copied from my Tera Term: > GETNEXT message >-- SNMPv2-SMI::enterprises.236.4.6.1.3.1.2.1.1 >-- SNMPv2-SMI::enterprises.236.4.6.

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

2006-10-31 Thread Zhang Chuan
"getNext" message to agent:   The list are copied from my Tera Term:   GETNEXT message    -- SNMPv2-SMI::enterprises.236.4.6.1.3.1.2.1.1    -- SNMPv2-SMI::enterprises.236.4.6.1.3.1.2.1.2    -- SNMPv2-SMI::enterprises.236.4.6.1.3.1.2.1.3    -- ... ... ... ...    -- SNMPv2-SMI:: e

Re: netsnmp_register_handler and get / getnext requests

2006-10-15 Thread Alex Burger
nt pass the request to my extension when issuing a > getnext, but not a get? I would expect it to either fail in both cases, > or pass in both. > > Alex - Using Tomcat but need to do more? Need to support web services, s

netsnmp_register_handler and get / getnext requests

2006-10-15 Thread Alex Burger
. Failed object: .1.3.6.1.2.1.4.1.0 If I do an snmpgetnext of .1.3.6.1.2.1.4.1.0, I get: .1.3.6.1.2.1.4.2.0 = INTEGER: 128 Why would the agent pass the request to my extension when issuing a getnext, but not a get? I would expect it to either fail in both cases, or pass in both. Alex

Re: Return SNMP_ENDOFMIBVIEW on GetNext in a Subagent

2006-03-08 Thread Robert Story
. KB> We had the problem that when a getNext on a subagent was called, the KB> getNext-callbackFunction was called to often, even we returned KB> SNMP_ENDOFMIBVIEW. What happens if you don't return anything? That is, simply return from the handler without doing anything. -- NOT

Return SNMP_ENDOFMIBVIEW on GetNext in a Subagent

2006-02-20 Thread Keller, Beat
Hi, We are using agentx with shared tables (e.g. subagent 1 has row 1, subagent 2 row 2, ...). Table_iterator is not used, because we don't want to register a whole table, but only rows. The net-snmp version is 5.3.0.1. We had the problem that when a getNext on a subagent was called

Re: Good example of GetNext?

2005-11-15 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Mon,

Re: Good example of GetNext?

2005-11-14 Thread Wes Hardaker
> On Sun, 13 Nov 2005 23:28:07 -0500, Sharon Gowan <[EMAIL PROTECTED]> said: Sharon> I have been looking for a good example of using get next to Sharon> walk a section of a mib, but it doesn't pop out at me from the Sharon> net-snmp development web site. Can anyone on this mailing Sharon> lis

Re: Good example of GetNext?

2005-11-14 Thread Dave Shield
itten, > bare-bones example similar to the one on the net-snmp site shows for GET? What exactly are you wanting to do? The tutorial GET example could be converted to a GETNEXT version, simply by changing the snmp_pdu_create call to us SNMP_MSG_GETNEXT instead. Or you could look at the code for

Good example of GetNext?

2005-11-14 Thread Sharon Gowan
Hi: I have been looking for a good example of using get next to walk a section of a mib, but it doesn't pop out at me from the net-snmp development web site. Can anyone on this mailing list point me to a good, clearly-written, bare-bones example similar to the one on the net-snmp site shows f

Re: The use of getnext in iterate table

2005-08-24 Thread Dave Shield
On Tue, 2005-08-23 at 19:22 -0300, Jordan Janeiro Lopes da Silva wrote: > The snmpgetnext should work fine in a table generated by a > mib2c.iterate.conf? Yes. > Do I have to implement something or everything is ready > to use with snmpget and snmpgetnext? You'll have to fill in the details o

The use of getnext in iterate table

2005-08-23 Thread Jordan Janeiro Lopes da Silva
Hello guys, The snmpgetnext should work fine in a table generated by a mib2c.iterate.conf? Do I have to implement something or everything is ready to use with snmpget and snmpgetnext? Because I´ve tried to use the snmpgetnext in a "iterate" table and nothing happens, but when I use snmpget, e

Re: GETNEXT

2005-06-14 Thread partha
Hi Dave, I have rechecked it , populating the values both the indexes If I using snmp_alarm_register, in that case reqinfo->mode =161(GETNEXT) and if i not using that reqinfo->mode =160(GET).. I feel this is the only problem. But I don't know , why it is coming like that . Thank

Re: GetNext

2005-06-14 Thread partha
Hi , I have now populated the first index also . But still it is giving the same result. running snmpwalk on that node is giving "Timeout: No Response from localhost " Thanks & regards Partha Dave Shield wrote: On Tue, 2005-06-14 at 11:36, partha wrote: For the time being I want to work

UCD-SNMP-MIB getnext problem

2004-10-06 Thread Karthikeyan N
Hi, I am running the below test case using the SilverCreek and getting the following errors. Please let me know does anyone face this similar problem? Also, let me know, is there any patch/fix available in the repository for this : == 3.07 - 1.1.5 ~ SNMP Protocol Chapter 1.0 Test 1.1.5 - FAIL-

Re: GetNext and GetBulk

2004-07-01 Thread Dave Shield
> does GetNext and GetBulk functions column-wise in case of a table > or row-wise.. They both walk the full length of each column (i.e. the value from each row) before moving on to the next column. Did you think of actually trying this with an existing agent, to see what it does in pr

GetNext and GetBulk

2004-07-01 Thread Nitin
Hi!!,         Can anyone tell me how GetNext and GetBulk functions. .I mean does GetNext and GetBulk functions column-wise in case of a table or row-wise..   If possible if anyone can give a link which explains the proper functionality of GETNEXT and GETBULK functionality