Re: queries to only one table

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 15 February 2011 09:32, Egor <[email protected]> wrote:
> when I use snmpwalk <params> myMibModule::FirstTable, it's returned values
> from FirstTable, but it makes another queries to SecondTable.

Just to clarify - does the command display anything from the SecondTable?
Or is the output as expected?


If the output is correct, but your concern is that the agent receives a final
request for the first entry in the SecondTable (which is then discarded),
then that is perfectly normal.   It's inherent in the way that walking an
SNMP table works.

To understand what, you need to remember that snmpwalk is simply a
wrapper round a sequence of GETNEXT requests, and that these will
move seamlessly from once column to the next, and from one table to
the next.   The GETNEXT request has no concept of the "context" of
the request - it's asked to get the next value that the agent knows about,
so that's what it does.

Remember also that the 'snmpwalk' command doesn't know what the
next result will be.   So it doesn't know when it's received the last value
in the table.   The only way that it knows when it reaches the end of
the table is by asked for "the next value", and gets an answer that it's
not interested in.   It discards that answer and stops.
   That's what you are probably seeing here.



Of course, if snmpwalk *is* displaying results from the second table,
then that's a more serious problem.   But simply sending "one extra"
request is perfectly normal.

Dave

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.