Re: Agent+Sub-Agent

2021-09-17 Thread Feroz
how about to have a flag, that will be set to TRUE in handle_master_agentx_packet() and check the flag in handle_snmp_packet() *master_admin.c* case AGENTX_MSG_PING: asp->status = agentx_ping_response(session, pdu); +subagent_connected = TRUE; break; *snmp_agent.c*

Re: Agent+Sub-Agent

2021-09-17 Thread Magnus Fromreide
On Wed, Sep 08, 2021 at 02:17:14PM -0400, Bill Fenner wrote: > On Fri, Sep 3, 2021 at 3:43 AM Feroz wrote: > > > My question is, is there a way to block an agent from responding to > > queries ( by timeout), till time the sub-agent connects to the agent. > > > > No, the master agent always live