1. Introduction to the System Management Agent
8. Long-Running Data Collection
10. Migration of Solstice Enterprise Agents to the System Management Agent
The following Net-SNMP API functions have been tested and are certified to work with the System Management Agent. Documentation from Net-SNMP is provided for all the functions in /usr/sfw/doc/sma_snmp/html.
netsnmp_mib_handler *netsnmp_create_handler( const char *name, Netsnmp_Node_Handler *handler_access_method);
netsnmp_handler_registration *netsnmp_create_handler_registration( const char *name, Netsnmp_Node_Handler *handler_access_method, oid * reg_oid, size_t reg_oid_len, int modes);
void send_enterprise_trap_vars(int trap, int specific, oid *enterprise, int enterprise_length, netsnmp_variable_list * vars);
void send_easy_trap(int, int);
void send_v2trap(netsnmp_variable_list *);
netsnmp_mib_handler *netsnmp_get_debug_handler(void);
void netsnmp_init_debug_helper(void);
int netsnmp_register_instance(netsnmp_handler_registration *reginfo);
int netsnmp_register_read_only_instance(netsnmp_handler_registration *reginfo);
netsnmp_mib_handler *netsnmp_get_instance_handler(void);
netsnmp_mib_handler *netsnmp_get_mode_end_call_handler( netsnmp_mode_handler_list *endlist);
netsnmp_mode_handler_list *netsnmp_mode_end_call_add_mode_callback( netsnmp_mode_handler_list *endlist, int mode, netsnmp_mib_handler *callbackh);
int netsnmp_register_scalar(netsnmp_handler_registration *reginfo);
int netsnmp_register_read_only_scalar(netsnmp_handler_registration *reginfo);
netsnmp_mib_handler *netsnmp_get_scalar_handler(void);
netsnmp_mib_handler *netsnmp_get_table_handler( netsnmp_table_registration_info
void netsnmp_table_helper_add_indexes(va_alist);
int netsnmp_register_table_iterator(netsnmp_handler_registration *reginfo, netsnmp_iterator_info *iinfo);
void * netsnmp_extract_iterator_context(netsnmp_request_info *);
int netsnmp_set_request_error(netsnmp_agent_request_info *reqinfo, netsnmp_request_info *request, int error_value);
int snmp_register_callback(int major, int minor, SNMPCallback * new_callback, void *arg);
int snmp_call_callbacks(int major, int minor, void *caller_arg);
int snmp_unregister_callback(int major, int minor, SNMPCallback * new_callback, void *arg, int matchargs);
void snmp_alarm_unregister(unsigned int clientreg);
void snmp_alarm_unregister_all(void);
unsigned int snmp_alarm_register(unsigned int when, unsigned int flags, SNMPAlarmCallback * thecallback, void *clientarg);
unsigned int snmp_alarm_register_hr(struct timeval t, unsigned int flags, SNMPAlarmCallback * cb, void *cd);
int snmp_log(int priority, const char *format, ...);
int snmp_vlog(int priority, const char *format, va_list ap);
int netsnmp_ds_set_boolean(int storeid, int which, int value)
int agent_check_and_process(int block)
void snmp_shutdown(const char *type)
void init_snmp(const char *type)
int init_agent(const char *app)
void * netsnmp_request_get_list_data(netsnmp_request_info *request, const char *name)
void netsnmp_request_add_list_data(netsnmp_request_info *request, netsnmp_data_list *node)
netsnmp_table_request_info * netsnmp_extract_table_info(netsnmp_request_info *request)
int netsnmp_register_int_instance (const char *name, oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler)
int unregister_mib_context (oid *name, size_t len, int priority, int range_subid, oid range_ubound, const char *context)
int snmp_set_var_typed_value (netsnmp_variable_list *newvar, u_char type, const u_char *val_str, size_t val_len)
config_line * register_config_handler (const char *type_param, const char *token, void(*parser)(const char *, char *), void(*releaser)(void), const char *help)
void unregister_config_handler (const char *type_param, const char *token)
char * read_config_read_data (int type, char *readfrom, void *dataptr, size_t *len)
char * read_config_store_data (int type, char *storeto, void *dataptr, size_t *len)
netsnmp_delegated_cache * netsnmp_create_delegated_cache( netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests, void *localinfo);
int snmp_set_var_value (netsnmp_variable_list *var, const u_char *valstr, size_tsize)
void netsnmp_table_set_multi_add_default_row(netsnmp_table_data_set *, ...); void netsnmp_table_set_multi_add_default_row(va_alist);
netsnmp_table_data_set *netsnmp_create_table_data_set(const char *); netsnmp_table_set_add_indexes;
int netsnmp_register_table_data_set(netsnmp_handler_registration *, netsnmp_table_data_set *, netsnmp_table_registration_info *);
void send_trap_vars(int trap, int specific, netsnmp_variable_list *vars);