Re: array-user snmpbulkwalk worked for a table not entire mib
On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote: JC I have run into an issue when running snmpbulkwalk on my MIB JC implemented using array-user in 5.2.1. Sorry for the delay. Can you send me: 1) your MY-MIB.txt file 2) output of snmpbulkwalk -On -v 2c -c public myhost MY-MIB::myObjects 3) output of snmpwalk -On -v 2c -c public myhost MY-MIB::myObjects -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users You are lost in a twisty maze of little standards, all different. --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
On Fri, 2005-05-27 at 15:15, [EMAIL PROTECTED] wrote: If I put the non-repeater value to anything 1 and higher it works fine. If you're running 'snmpbulkwalk', then presumably you're only supplying a single OID to work with? In which case, setting a non-repeater value of 1 (or more), means that you're not actually using the bulk retrieval aspect of the GetBulk request. If you're querying for a single OID, and saying don't repeat this OID, then that's equivalent to a straight GetNext-based walk. Then to get the entire table with a snmpbulkget I set -Cr to that number(33). It worked fine, no no more variables. When I increased the number to 34, again it works fine, got a scalar object that is in the next object group as well. But, when I increased it to 35, that is when I saw the no more variables. Hmmm... What happens if you run a single snmpgetnext request on the scalar instance OID ? What about a snmpbulkget -Cr 1 on the scalar instance OID? What about a snmpbulkget -Cr 2 on the scalar *object* OID? Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
Hi Dave, Thanks again for the response. I wasn't sure if I would I interpret the instructions right, so I just did more and here is what I tried. rCount is the scalar after the previous table and before the next table. 62 =>./snmpgetnext -v 2c -c P-public localhost MY-MIB::rCount MY-MIB::rCount.0 = INTEGER: 3 63 => 63 =>./snmpgetnext -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::rCount.0 = INTEGER: 0 64=> 64 =>./snmpbulkget -Cr1 -v 2c -c P-public localhost MY-MIB::rCount MY-MIB::rCount.0 = INTEGER: 3 65 => 65 =>./snmpbulkget -Cr1 -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::rCount.0 = INTEGER: 0 66 => 66 =>./snmpbulkget -Cr2 -v 2c -c P-public localhost MY-MIB::rCount MY-MIB::rCount.0 = INTEGER: 3 MY-MIB::boardId.0 = INTEGER: 0 67 => 67 =>./snmpbulkget -Cr2 -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::boardId.0 = INTEGER: 0 MY-MIB::boardId.1 = INTEGER: 1 I am thinking that I will spend a little time decreasing the size of my MIB and just have a small sample to see if this is reproducible with array-user without a lot of extras involved(I have varying scalar counts between tables, with about 10 tables). - John --- On Fri 06/03, Dave Shield < [EMAIL PROTECTED] > wrote: From: Dave Shield [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Date: Fri, 03 Jun 2005 09:36:10 +0100 Subject: Re: array-user snmpbulkwalk worked for a table not entire mib On Fri, 2005-05-27 at 15:15, [EMAIL PROTECTED] wrote:> If I put the non-repeater value to anything 1 and higher it works> fine.If you're running 'snmpbulkwalk', then presumably you're onlysupplying a single OID to work with?In which case, setting a non-repeater value of 1 (or more),means that you're not actually using the bulk retrieval aspectof the GetBulk request. If you're querying for a single OID,and saying "don't repeat this OID", then that's equivalentto a straight GetNext-based walk.> Then to get the entire table with a snmpbulkget I set -Cr to that> number(33). It worked fine, no "no more variables". When I increased> the number to 34, again it works fine, got a scalar object that is in> the next object group as well. But, when I increased it to 35, that is> when I saw the "no more variables".Hmmm...What happens if you run a single "snmpgetnext" request on thescalar instance OID ?What about a "snmpbulkget -Cr 1 " on the scalar instance OID?What about a "snmpbulkget -Cr 2 " on the scalar *object* OID?DaveJoin Excite! - http://www.excite.comThe most personalized portal on the Web!
Re: array-user snmpbulkwalk worked for a table not entire mib
On Fri, 2005-06-03 at 15:10, [EMAIL PROTECTED] wrote: 63 =./snmpgetnext -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::rCount.0 = INTEGER: 0 That's wrong for a start. This should be returning 'MY-MIB::boardId.0 65 =./snmpbulkget -Cr1 -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::rCount.0 = INTEGER: 0 And here. There definitely seems to be a problem with moving on from your scalar object to the next table. Neither of these involve the first table at all. What does snmpgetnext -v 2c -c P-public localhost MY-MIB::boardId show? 66 =./snmpbulkget -Cr2 -v 2c -c P-public localhost MY-MIB::rCount MY-MIB::rCount.0 = INTEGER: 3 MY-MIB::boardId.0 = INTEGER: 0 Hmmm... but that one works correctly... 67 =./snmpbulkget -Cr2 -v 2c -c P-public localhost MY-MIB::rCount.0 MY-MIB::boardId.0 = INTEGER: 0 MY-MIB::boardId.1 = INTEGER: 1 As does that. This is confusing! I am thinking that I will spend a little time decreasing the size of my MIB and just have a small sample to see if this is reproducible with array-user without a lot of extras involved The first thing to check, IMO, is why the initial 'getnext rCount.0' query is failing. If you can track that down, I wouldn't be surprised if much of the rest falls into place as well. He said optimistically Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
Hi Dave, Thanks again. Robert may be looking into it, although he may not have been actually able to reproduce it yet. I am just not sure if this has to do with array-user or not, it may have been something I have done. If I put the non-repeater value to anything 1 and higher it works fine. I just have to be able to justify why someone would have to set that, and I haven't yet gotten there. As for individual bulkgets, I suppose I am not quite sure what I will describe here makes sense(most likely it does not), but on a snmpwalk I used a -Cp to get the number of variables. Then to get the entire table with a snmpbulkget I set -Cr to that number(33). It worked fine, no "no more variables". When I increased the number to 34, again it works fine, got a scalar object that is in the next object group as well. But, when I increased it to 35, that is when I saw the "no more variables". The second entry in the object group is the next table. It is interesting, but unfortunately tells me nothing. - John --- On Fri 05/27, Dave Shield < [EMAIL PROTECTED] > wrote: From: Dave Shield [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Date: Fri, 27 May 2005 09:04:35 +0100 Subject: Re: array-user snmpbulkwalk worked for a table not entire mib On Thu, 2005-05-26 at 19:13, [EMAIL PROTECTED] wrote:>Could you possibly explain why an snmpbulkwalk command> would work on my MIB when the non-repeater value is set to 1> and fail when not set at all?Not really, no.I thought Robert was looking into that?I was just commenting on the higher-level issues.> As my original email specified, if a snmpbulkwalk is done on one of> my tables I get: No more variables left in this MIB View (It is past> the end of the MIB tree) If the -Cn1 is set then no such problem.What if you try with '-Cn2' ?Does it make any difference if there's an odd or even numberof rows in the table?It might also be worth trying with 'snmpbulkget' ratherthan 'snmpbulkwalk', and manually walking a singlecolumn of the table.DaveJoin Excite! - http://www.excite.comThe most personalized portal on the Web!
Re: array-user snmpbulkwalk worked for a table not entire mib
Hi Dave, Thanks. I did the repeater(repetition) value experimentation based on Roberts suggestion. Just want to be sure, but does setting the non-repeater value to 1 have a similar functional effect to the a command as the max-repetitions? i.e. Is this something that I cannot ask an SNMP manager to do as it is non-standard or maybe it does not provide the expected GetBulk optimization effect? - John --- On Thu 05/26, Dave Shield < [EMAIL PROTECTED] > wrote: From: Dave Shield [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Date: Thu, 26 May 2005 10:34:21 +0100 Subject: Re: array-user snmpbulkwalk worked for a table not entire mib On Tue, 2005-05-24 at 19:11, [EMAIL PROTECTED] wrote:> Also, changing the max-repeater to 1. Is changing these values> to make a bulkwalk work an acceptable practice?Changing the max-repetitions of a GetBulk to 1 is singularlypointless. You might as well use GetNext in the first place.DaveJoin Excite! - http://www.excite.comThe most personalized portal on the Web!
Re: array-user snmpbulkwalk worked for a table not entire mib
On Thu, 2005-05-26 at 15:48, [EMAIL PROTECTED] wrote: does setting the non-repeater value to 1 have a similar functional effect to the a command as the max-repetitions? No - the two fields have completely different purposes. A single GetBulk request is basically equivalent to one GetNext request (with non-repeater varbinds) followed by max-repetitions GetNext requests (each containing the remaining varbinds). So GetBulk( non=2, max=3) A B C D E is equivalent to: GetNext A B GetNext C D E GetNext C' D' E' GetNext C D E If max=1, then this becomes GetNext A B GetNext C D E which is exactly equivalent to GetNext A B C D E It's the max-repetitions field that really distinguishes GetBulk from GetNext requests. Hence setting this to 1 is pointless. Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
Hi Dave, Thanks again. Could you possibly explain why an snmpbulkwalk command would work on my MIB when the non-repeater value is set to 1 and fail when not set at all? As my original email specified, if a snmpbulkwalk is done on one of my tables I get: No more variables left in this MIB View (It is past the end of the MIB tree) If the -Cn1 is set then no such problem. The real problem is trying to walk multiple tables in one snmpbulkwalk, as it can't go from one to another if it receives the "No more" after the first. - John --- On Thu 05/26, Dave Shield < [EMAIL PROTECTED] > wrote: From: Dave Shield [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Date: Thu, 26 May 2005 16:11:47 +0100 Subject: Re: array-user snmpbulkwalk worked for a table not entire mib On Thu, 2005-05-26 at 15:48, [EMAIL PROTECTED] wrote:> does setting the > non-repeater value to 1 have a similar functional effect to the a > command as the max-repetitions?No - the two fields have completely different purposes.A single GetBulk request is basically equivalent to oneGetNext request (with "non-repeater" varbinds) followedby "max-repetitions" GetNext requests (each containingthe remaining varbinds).So GetBulk( non=2, max=3) A B C D Eis equivalent to: GetNext A B GetNext C D E GetNext C' D' E' GetNext C" D" E"If max=1, then this becomes GetNext A B GetNext C D Ewhich is exactly equivalent to GetNext A B C D EIt's the max-repetitions field that really distinguishesGetBulk from GetNext requests. Hence setting this to 1is pointless.DaveJoin Excite! - http://www.excite.comThe most personalized portal on the Web!
Re: array-user snmpbulkwalk worked for a table not entire mib
When setting the non-repeater value to 1 and up, it seemed to avoid the problem. Also, changing the max-repeater to 1. Is changing these values to make a bulkwalk work an acceptable practice? If it is acceptible, any reason why this makes sense would be much appreciated. Thanks again. - John RS Can you experiment with different repeater values, and see if that RS changes things? I implemented a simple table with array-user to RS test, but was unable to reproduce the problem. That was as a RS sub-agent, though. Ill try embedding in the agent... --- On Mon 05/23, Robert Story [EMAIL PROTECTED] wrote: From: Robert Story [mailto: [EMAIL PROTECTED] To: net-snmp-users@lists.sourceforge.net Cc: [EMAIL PROTECTED] Date: Mon, 23 May 2005 16:27:50 -0400 Subject: Re: array-user snmpbulkwalk worked for a table not entire mib On Mon, 23 May 2005 15:49:27 -0400 Robert wrote:brRS On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote:brRS JCI have run into an issue when running snmpbulkwalk on my MIBbrRS JC implemented using array-user in 5.2.1.brRS brRS Was the array-user code generated with 5.2.1, or an earlier version (iebrRS you've upgraded to 5.2.1 after previously generating the code)?brbrI also forgot to ask if your mib is compiled into the agent, or is an AgentXbrsub-agent.brbr-- brNOTE: messages sent directly to me, instead of the lists, will be deletedbr unless they are requests for paid consulting services.brbrRobert Story; NET-SNMP JunkiebrSupport: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp brArchive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-usersbrbrYou are lost in a twisty maze of little standards, all different. br ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! --- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402alloc_id=16135op=click ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
Thanks for the response. The code was generated with mib2c.array-user.conf,v 5.24 which does appear in the 5.2.1 rc2 I downloaded in January. I usually dynamically load the mib, but have recently compiled it into the agent and it appears to function in the same manner. - John --- On Mon 05/23, Robert Story snmp.com] To: [EMAIL PROTECTED]input class=txtDsp type=text size=8 name=word11 value=.net Cc: input class=txtDsp type=text size=8 name=word12 value=.com Date: Mon, 23 May 2005 16:27:50 -0400 Subject: Re: array-user MIBbulkwalk on my mibbrRS JC implemented using array-user in 5.2.1.brRS brRS Was the array-user code generated with 5.2.1, or an earlier version (iebrRS you've upgraded to 5.2.1 after previously generating the code)?brbrI also forgot to ask if your AgentX is compiled into the agent, or is an SNMPbrsub-agent.brbr-- brNOTE: messages sent directly to me, instead of the lists, will be deletedbr unless they are requests for paid consulting services.brbrRobert Story; NET- ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
On Mon, 23 May 2005 18:41:03 -0400 (EDT) [EMAIL PROTECTED] wrote: JC Thanks for the response. The code was generated with JC mib2c.array-user.conf,v 5.24 which does appear in the 5.2.1 rc2 I JC downloaded in January. I usually dynamically load the mib, but have JC recently compiled it into the agent and it appears to function in the same JC manner. Can you experiment with different repeater values, and see if that changes things? I implemented a simple table with array-user to test, but was unable to reproduce the problem. That was as a sub-agent, though. I'll try embedding in the agent... -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users You are lost in a twisty maze of little standards, all different. --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote: JC I have run into an issue when running snmpbulkwalk on my MIB JC implemented using array-user in 5.2.1. I can successfully bulkwalk the JC information in a single table in the MIB, however, when bulkwalking the JC entire MIB I receive: JC JC snmpbulkwalk -v 2c -c public myhost MY-MIB::myObjects JC MY-MIB::additionalInfo.4 = STRING: none JC MY-MIB::additionalInfo.4 = No more variables left in this MIB View (It is JC past the end of the MIB tree) JC JC The issue with that, is that there are several tables following this JC table in the MIB. Was the array-user code generated with 5.2.1, or an earlier version (ie you've upgraded to 5.2.1 after previously generating the code)? -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users You are lost in a twisty maze of little standards, all different. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: array-user snmpbulkwalk worked for a table not entire mib
On Mon, 23 May 2005 15:49:27 -0400 Robert wrote: RS On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote: RS JC I have run into an issue when running snmpbulkwalk on my MIB RS JC implemented using array-user in 5.2.1. RS RS Was the array-user code generated with 5.2.1, or an earlier version (ie RS you've upgraded to 5.2.1 after previously generating the code)? I also forgot to ask if your mib is compiled into the agent, or is an AgentX sub-agent. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users You are lost in a twisty maze of little standards, all different. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users