Hi All,

I am using the net-snmp 5.3.1 for my  snmp sub agent , the agent is external to 
the system,that is  the data supplied by lower layer.

I have an issue, 

when i called the getbulk from the snmp  Manager,
What i understand that the getBULK request converted into series of get 
Request(even for get-next also)

My question is when i make the getBulk request ,the lower api is called as many 
row times,how can i avoid that?
Cause , the lower api contains all row information. For example,the snmp table 
contains 100 row means, the lower layer api provides all 100 row information at 
one call.

Presently, the data supply api( InfoSupply(struct aaa) ) called per one row.

the sample code is


switch (reqinfo->mode) {
            /*
             * Read-support (also covers GetNext requests)
             */
        case MODE_GET:
                

                if( 0 == l_getcallsnmpcall )
                {
                         l_getcallsnmpcall =1;
                        /*This is actual lower layer call, we need this only 
one time call for all get request.*/
                        MSG_RTN= InfoSupply(struct aaa);        

                         if( l_iRtn == MSG_SUCCESS)
                         {
                                        printf("SNMP: GET called  SNMPTable\n");
                                        
                          }
                 }
....
.....

Is any one can tell me the solution for that.


with thanks and regards
senthil nathan
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to