On 10 April 2011 19:46, Zimmer Hu <[email protected]> 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 containing a single varbind. So in this case, the "requests" list contains just one entry. Remember, the basic iterator model is that the 'get_first/get-next' loop is run for *every* incoming SNMP PDU. It starts at the beginning of the table and loops through all of the rows until it finds the appropriate row for this request. The get_first/get_next loop does not match the step-by-step nature of "snmpwalk". It's concerned with the processing of a single PDU. So walking one column of the table (N rows) will result in N full passes of the get_first/get_next loop. [This may already be clear to you, but it's a fairly common misunderstanding] > Otherwise, the requests is one column after the other. Strictly speaking, for "snmpwalk", the requests will be for the same column, but one row after another. Only when you reach the last row of the table, then you'll move on to the next column (and back to the first row again). > 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 snmpwalk?) Dave ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
