Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsnmp_old_api(3snmp) [debian man page]

old_api(3snmp)							     net-snmp							    old_api(3snmp)

NAME
old_api - Calls mib module code written in the old style of code. Functions netsnmp_mib_handler * get_old_api_handler (void) returns a old_api handler that should be the final calling handler. int netsnmp_register_old_api (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t mibloclen, int priority, int range_subid, oid range_ubound, netsnmp_session *ss, const char *context, int timeout, int flags) Registers an old API set into the mib tree. int netsnmp_register_mib_table_row (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t mibloclen, int priority, int var_subid, netsnmp_session *ss, const char *context, int timeout, int flags) registers a row within a mib table int netsnmp_old_api_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) implements the old_api handler Detailed Description Calls mib module code written in the old style of code. This is a backwards compatilibity module that allows code written in the old API to be run under the new handler based architecture. Use it by calling netsnmp_register_old_api(). Function Documentation netsnmp_mib_handler* get_old_api_handler (void) returns a old_api handler that should be the final calling handler. Don't use this function. Use the netsnmp_register_old_api() function instead. Definition at line 37 of file old_api.c. int netsnmp_old_api_helper (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) implements the old_api handler Definition at line 226 of file old_api.c. int netsnmp_register_mib_table_row (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t mibloclen, int priority, int var_subid, netsnmp_session * ss, const char * context, int timeout, int flags) registers a row within a mib table Definition at line 107 of file old_api.c. int netsnmp_register_old_api (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t mibloclen, int priority, int range_subid, oid range_ubound, netsnmp_session * ss, const char * context, int timeout, int flags) Registers an old API set into the mib tree. Functionally this mimics the old register_mib_context() function (and in fact the new register_mib_context() function merely calls this new old_api one). netsnmp_handler_registration_free(reginfo); already freed Definition at line 48 of file old_api.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.4.3.pre1 23 May 2010 old_api(3snmp)

Check Out this Related Man Page

instance(3)							     net-snmp							       instance(3)

NAME
instance - Process individual MIB instances easily. Functions netsnmp_mib_handler * netsnmp_get_instance_handler (void) Creates an instance helper handler, calls netsnmp_create_handler, which then could be registered, using netsnmp_register_handler(). int netsnmp_register_instance (netsnmp_handler_registration *reginfo) This function registers an instance helper handler, which is a way of registering an exact OID such that GENEXT requests are handled entirely by the helper. int netsnmp_register_read_only_instance (netsnmp_handler_registration *reginfo) This function injects a 'read only' handler into the handler chain prior to serializing/registering the handler. int netsnmp_register_read_only_ulong_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_ulong_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_read_only_counter32_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_read_only_long_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_long_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_read_only_uint_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, unsigned int *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_uint_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, unsigned int *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_read_only_int_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler) int register_read_only_int_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler) int netsnmp_register_read_only_ulong_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_ulong_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_read_only_counter32_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_read_only_long_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_long_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_int_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_read_only_int_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int register_read_only_int_instance_context (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_num_file_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, const char *file_name, int asn_type, int mode, Netsnmp_Node_Handler *subhandler, const char *contextName) int netsnmp_register_int_instance (const char *name, const oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler) This function registers an int helper handler to a specified OID. int netsnmp_instance_ulong_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_counter32_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_long_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_int_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_num_file_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_uint_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) int netsnmp_instance_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) Detailed Description Process individual MIB instances easily. Function Documentation netsnmp_mib_handler* netsnmp_get_instance_handler (void) Creates an instance helper handler, calls netsnmp_create_handler, which then could be registered, using netsnmp_register_handler(). Returns: Returns a pointer to a netsnmp_mib_handler struct which contains the handler's name and the access method Definition at line 49 of file instance.c. int netsnmp_instance_counter32_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Deprecated This function is unused and scheduled for removal in Net-SNMP 5.6 Definition at line 571 of file instance.c. int netsnmp_instance_int_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Deprecated This function is unused and scheduled for removal in Net-SNMP 5.6 Definition at line 688 of file instance.c. int netsnmp_instance_long_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Deprecated This function is unused and scheduled for removal in Net-SNMP 5.6 Definition at line 610 of file instance.c. int netsnmp_instance_num_file_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) fall through Definition at line 770 of file instance.c. int netsnmp_instance_uint_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Deprecated This function is unused and scheduled for removal in Net-SNMP 5.6 Definition at line 904 of file instance.c. int netsnmp_instance_ulong_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Deprecated This function is unused and scheduled for removal in Net-SNMP 5.6 Definition at line 491 of file instance.c. int netsnmp_register_instance (netsnmp_handler_registration * reginfo) This function registers an instance helper handler, which is a way of registering an exact OID such that GENEXT requests are handled entirely by the helper. First need to inject it into the calling chain of the handler defined by the netsnmp_handler_registration struct, reginfo. The new handler is injected at the top of the list and will be the new handler to be called first. This function also injects a serialize handler before actually calling netsnmp_register_handle, registering reginfo. Parameters: reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register an instance helper handler. Returns: MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILED and MIB_DUPLICATE_REGISTRATION. Examples: delayed_instance.c. Definition at line 74 of file instance.c. int netsnmp_register_int_instance (const char * name, const oid * reg_oid, size_t reg_oid_len, int * it, Netsnmp_Node_Handler * subhandler) This function registers an int helper handler to a specified OID. Parameters: name the name used for registration pruposes. reg_oid the OID where you want to register your integer at reg_oid_len the length of the OID it the integer value to be registered during initialization subhandler a handler to do whatever you want to do, otherwise use NULL to use the default int handler. Returns: MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILED and MIB_DUPLICATE_REGISTRATION. Examples: scalar_int.c. Definition at line 474 of file instance.c. int netsnmp_register_read_only_instance (netsnmp_handler_registration * reginfo) This function injects a 'read only' handler into the handler chain prior to serializing/registering the handler. The only purpose of this 'read only' handler is to return an appropriate error for any requests passed to it in a SET mode. Inserting it into your handler chain will ensure you're never asked to perform a SET request so you can ignore those error conditions. Parameters: reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register a read only instance helper handler. Returns: MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILED and MIB_DUPLICATE_REGISTRATION. Definition at line 101 of file instance.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 instance(3)
Man Page