Hello, my snmp application is created as a Dynamically Loadable Object. And i create my tables with the mib2c tool. I get my data from an internal running deamon which provides the specific data structures. The data call occurs within the function 'module_get_next_data_point' below. The function which provides the data from the deamon called 'get_modul_param_data'.
How can i reduce the traffic to my internal data on bulk requests, because on huge data structures its takes a long time if value max_rep=10 on bulk messages. netsnmp_variable_list * moduleTable_get_next_data_point(void **my_loop_context, void **my_data_context, netsnmp_variable_list *put_index_data, netsnmp_iterator_info *mydata) { struct moduleTable_entry *entry = (struct moduleTable_entry *)*my_loop_context; netsnmp_variable_list *idx = put_index_data; if ( entry ) { snmp_log(LOG_DEBUG, "moduleTable_get_next_data_point\n"); enum mod_pba_error error = error = get_modul_param_data( &entry->mod_param, entry->moduleID & 0xFF, entry->moduleID >> 8, UNIX_DOMAIN_SOCKET_PATH_SNMP); snmp_set_var_typed_integer( idx, ASN_INTEGER, entry->moduleID ); idx = idx->next_variable; *my_data_context = (void *)entry; *my_loop_context = (void *)entry->next; return put_index_data; } else { return NULL; } } Norman -------- Original-Nachricht -------- > Datum: Tue, 15 Feb 2011 16:09:20 +0000 > Von: Dave Shield <d.t.shi...@liverpool.ac.uk> > An: normanrae...@gmx.de > CC: net-snmp-users@lists.sourceforge.net > Betreff: Re: GETBULK message change repetition > On 15 February 2011 15:55, <normanrae...@gmx.de> wrote: > > Can i change the max_rep value from the GETBULK message > > Yes - see the 'snmpbulkwalk(1)' and 'snmpbulkget(1)' man pages. > > (though if you reduce this to one, it rather defeats the > point of using GETBULK rather than GETNEXT!) > > > > within the snmpd.conf file? > > No. > The max repetitions count is a feature of the client application. > You can't control this using agent configuration settings. > > Dave -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ------------------------------------------------------------------------------ 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 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