yumapro
24.10-1
YumaPro SDK
|
AgentX interface for Server interface to net-snmp agent for SNMP support. More...
Functions | |
status_t | agt_ypsnmp_agentx_init (void) |
Initialize the agt_ypsnmp AgentX module. More... | |
void | agt_ypsnmp_agentx_cleanup (void) |
Cleanup the agt_ypsnmp AgetnX module. More... | |
void | agt_ypsnmp_agentx_check_io (void) |
Check if any SNMP messages to process. More... | |
int | agt_ypsnmp_agentx_handle_response (int op, netsnmp_session *session, int reqid, netsnmp_pdu *pdu, void *magic) |
Handle the AgentX response. More... | |
int | agt_ypsnmp_agentx_synch_input (int op, netsnmp_session *session, int reqid, netsnmp_pdu *pdu, void *magic) |
Synch input. More... | |
boolean | agt_ypsnmp_agentx_connected (void) |
Check if the AgentX agent succ connected to the master agent. More... | |
ses_cb_t * | agt_ypsnmp_get_agentx_scb (void) |
Get the AgentX specific session control block. More... | |
AgentX interface for Server interface to net-snmp agent for SNMP support.
Requires WITH_SNMP=1 in build and –with-snmp=true CLI parameter at runtime.
void agt_ypsnmp_agentx_check_io | ( | void | ) |
Check if any SNMP messages to process.
Adapted from net-snmp agent Only present if WITH_SNMP=1
void agt_ypsnmp_agentx_cleanup | ( | void | ) |
Cleanup the agt_ypsnmp AgetnX module.
Releases any memory allocated and stops listening on the network. Only present if WITH_SNMP=1
boolean agt_ypsnmp_agentx_connected | ( | void | ) |
Check if the AgentX agent succ connected to the master agent.
Only present if WITH_SNMP=1.
int agt_ypsnmp_agentx_handle_response | ( | int | op, |
netsnmp_session * | session, | ||
int | reqid, | ||
netsnmp_pdu * | pdu, | ||
void * | magic | ||
) |
Handle the AgentX response.
AgentX handling utility routines Only present if WITH_SNMP=1
op | SNMP op code |
session | The net-snmp session |
reqid | The request id of this pdu ( 0 for TRAP) |
pdu | The snmp pdu information |
magic | opaque handler |
status_t agt_ypsnmp_agentx_init | ( | void | ) |
Initialize the agt_ypsnmp AgentX module.
Phase 2 initialization
Only present if WITH_SNMP=1
int agt_ypsnmp_agentx_synch_input | ( | int | op, |
netsnmp_session * | session, | ||
int | reqid, | ||
netsnmp_pdu * | pdu, | ||
void * | magic | ||
) |
Synch input.
AgentX handling utility routines. Only present if WITH_SNMP=1.
op | SNMP op code |
session | The net-snmp session |
reqid | The request id of this pdu ( 0 for TRAP) |
pdu | The snmp pdu information |
magic | opaque handler |
ses_cb_t * agt_ypsnmp_get_agentx_scb | ( | void | ) |
Get the AgentX specific session control block.
AgentX and master agents both have this block. The SCB is saved internally as a stitic pointer.
Only present if WITH_SNMP=1