On Fri, 10 Jul 2015 05:27:56 +0000 Sofiya Parvin (Sofiya Parvin) wrote:
SSPP> Could you please help me. How snmptable command will internally
SSPP> calling get_first and get_next method. What is the exact code flow.

snmptable doesn't call get_first and get_next. Thos are part of the
handler/helper you are using in the agent. snmptable uses snmp GETNEXT
commands to walk a table.

SSPP> Because in one of our project we are using this snmptable command and
SSPP> we are writing our own sub agent to store the data snmptable. If I
SSPP> see the trace files whenever there is a snmptable command is
SSPP> triggered it is sequentially calling
SSPP> 
SSPP> getFirst , getNext.............;
SSPP> getfirst,getNext.............................;
SSPP> getfirst,getNext.............................;
SSPP> 
SSPP> we are not understanding what is the purpose of calling this

Is your table using the iterator helper? The iterator help is for unsorted
data, which means the help has to search through all the data, starting at
the beginning, to find the data needed to respond to a request.

SSPP> could u please help us why. Because this getFirst and getNext  are
SSPP> making performance issue when the table is Huge ...example some
SSPP> 10,000 entries.

Yes, the iterator helper is a poor choice for a large table. You should
look at some of the other helpers which will sort the data, make it much
faster to find a particular row for processing.

Robert


-- 
Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to