On 24/05/07, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > whether I need to write " master -X Agentx " in the > snmpd.conf file to make my agent to behave as Master agent.
No - the default behaviour of the Net-SNMP agent is to run as a master agent. The -X flag is used to make the agent run as a *sub*agent. > What are > all things do I need to configure in the snmpd.conf to behave as a > Master agent. master agentx > Do I need to write separate code for master agent. No. > 1. How will master agent will come to know about > subagents, I mean how many subagents are there under him. The master agent will be listening for connections on the AgentX socket (typically TCP port 705, or the named socket /var/agentx/master). Subagents will connect to this port, and register with the master agent. The master does *not* need to know in advance about which subagents there will be, or how many. > 2. How master agent will send request to particular > agent. When a subagent registers with the master agent, it indicates which portions of the OID tree it will be implementing. The master agent uses this information to decide where to direct incoming requests. Think of this like a manager, coordinating a group of volunteers. The manager doesn't do anything - they simply pass any request on to the appropriate person (or persons), and collate the results. And take the credit, of course.... > I think master agent should know ip address and oid of > the sugagents, otherwise it should register the ip address and oid of > the subagents, other wise how he will come to know about subagents. No - AgentX works the other way round. The *subagent* needs to know the location of the master agent, so it can register. The master agent doesn't need to know anything. (It's a manager, remember :-)) Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders