yumapro  23.10T-6
YumaPro SDK
Loading...
Searching...
No Matches

AgentX interface for Server interface to net-snmp agent for SNMP support. More...

Collaboration diagram for AgentX:

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_tagt_ypsnmp_get_agentx_scb (void)
 Get the AgentX specific session control block. More...
 

Detailed Description

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.

Function Documentation

◆ agt_ypsnmp_agentx_check_io()

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

◆ agt_ypsnmp_agentx_cleanup()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ agt_ypsnmp_agentx_connected()

boolean agt_ypsnmp_agentx_connected ( void  )

Check if the AgentX agent succ connected to the master agent.

Only present if WITH_SNMP=1.

Returns
TRUE if AgentX was succ connected to master:
FALSE otherwise, which may indicate that the master agent is not up and running or the AgentX agent could not connect to master.
Here is the caller graph for this function:

◆ agt_ypsnmp_agentx_handle_response()

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

Parameters
opSNMP op code
sessionThe net-snmp session
reqidThe request id of this pdu ( 0 for TRAP)
pduThe snmp pdu information
magicopaque handler
Returns
Returns 1 if successful, 0 if error

◆ agt_ypsnmp_agentx_init()

status_t agt_ypsnmp_agentx_init ( void  )

Initialize the agt_ypsnmp AgentX module.

Phase 2 initialization

Only present if WITH_SNMP=1

Returns
status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ agt_ypsnmp_agentx_synch_input()

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.

Parameters
opSNMP op code
sessionThe net-snmp session
reqidThe request id of this pdu ( 0 for TRAP)
pduThe snmp pdu information
magicopaque handler
Returns
Returns 1 if successful, 0 if error

◆ agt_ypsnmp_get_agentx_scb()

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

Returns
AgentX Session Control Block to hold RCB and other statistics
NULL, if there is no any open sessions with master agent
Here is the call graph for this function:
Here is the caller graph for this function: