Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsnmp_scalar(3) [suse man page]

scalar(3)							     net-snmp								 scalar(3)

NAME
scalar - Process scalars easily. Functions netsnmp_mib_handler * netsnmp_get_scalar_handler (void) Creates a scalar handler calling netsnmp_create_handler with a handler name defaulted to 'scalar' and access method, netsnmp_scalar_helper_handler. int netsnmp_register_scalar (netsnmp_handler_registration *reginfo) This function registers a scalar helper handler. int netsnmp_register_read_only_scalar (netsnmp_handler_registration *reginfo) This function registers a read only scalar helper handler. int netsnmp_scalar_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) Detailed Description Process scalars easily. Function Documentation netsnmp_mib_handler* netsnmp_get_scalar_handler (void) Creates a scalar handler calling netsnmp_create_handler with a handler name defaulted to 'scalar' and access method, netsnmp_scalar_helper_handler. Returns: Returns a pointer to a netsnmp_mib_handler struct which contains the handler's name and the access method See also: netsnmp_get_scalar_handler netsnmp_register_scalar Definition at line 47 of file scalar.c. int netsnmp_register_read_only_scalar (netsnmp_handler_registration * reginfo) This function registers a read only scalar helper handler. This function is very similar to netsnmp_register_scalar the only addition is that the 'read_only' handler is injected into the handler chain prior to injecting the serialize handler and registering reginfo. Parameters: reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register a read only scalar helper handler. Returns: MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILURE and MIB_DUPLICATE_REGISTRATION. See also: netsnmp_register_scalar netsnmp_get_scalar_handler Definition at line 110 of file scalar.c. int netsnmp_register_scalar (netsnmp_handler_registration * reginfo) This function registers a scalar helper handler. The registered OID, reginfo->rootoid, space is extended for the instance subid using realloc() but the reginfo->rootoid_len length is not extended just yet. .This function subsequently injects the instance, scalar, and serialize helper handlers before actually registering reginfo. Each handler is injected/pushed to the top of the handler chain list and will be processed last in first out, LIFO. Parameters: reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register a scalar helper handler. Returns: MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILURE and MIB_DUPLICATE_REGISTRATION. See also: netsnmp_register_read_only_scalar netsnmp_get_scalar_handler Definition at line 75 of file scalar.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 scalar(3)

Check Out this Related Man Page

serialize(3)							     net-snmp							      serialize(3)

NAME
serialize - Calls sub handlers one request at a time. Functions netsnmp_mib_handler * netsnmp_get_serialize_handler (void) returns a serialize handler that can be injected into a given handler chain. int netsnmp_register_serialize (netsnmp_handler_registration *reginfo) functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you. int netsnmp_serialize_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) Implements the serial handler. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Detailed Description Calls sub handlers one request at a time. This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once. This is useful for handlers that don't want to iterate through the request lists themselves. Generally, this is probably less efficient so use with caution. The serialize handler might be useable to dynamically fix handlers with broken looping code, however. Function Documentation netsnmp_mib_handler* netsnmp_get_serialize_handler (void) returns a serialize handler that can be injected into a given handler chain. Definition at line 25 of file serialize.c. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Definition at line 87 of file serialize.c. int netsnmp_register_serialize (netsnmp_handler_registration * reginfo) functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you. Definition at line 34 of file serialize.c. int netsnmp_serialize_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Implements the serial handler. Definition at line 42 of file serialize.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 serialize(3)
Man Page