I would assume I would need to start both agents now by first starting the 
master agent via the "snmpd" command and then by starting the subagent via the 
"mysubagent" command ..... correct?

I will read the link you provided .... thanks


Dave Shield <[EMAIL PROTECTED]> wrote: AgentX subgents are not "needed", but 
they can be "useful"

On 25/05/07, Need Help  wrote:
> I believe it is possible to have multiple agents running at one time, where
> one is the "master" and the others are AgentX subagents.   I am not quite
> sure why people use multiple agents, so perhaps someone can give me an
> example as to when multiple agents would be nice to use.

Two scenarios:

  a)  You have a vendor-supplied master SNMP agent (but no source)
       and want to add a new MIB module.   AgentX allows you to implement
       this module in a separate AgentX subagent, and register with the
       master agent, without having to change the master agent at all.

 b)  You have a MIB module that is specific to a particular piece of software
      (e.g. a web server MIB).  AgentX allows you to implement this module
      within the software itself (where you might have easy access to
      internal data), and register with the master agent, without needing
      to include all of the other SNMP-related stuff within the application.



> Now, if I wanted to use multiple agents, then I understand I would need to
> place the "master agentx" line into the "snmpd.conf" file to indicate the
> "snmpd" agent is the "master" agent when it starts

The "snmpd" agent is the master agent automatically.
The purpose of the "master agentx" directive is really to activate
the AgentX functionality, and start listening for subagent connections.


>, however, I am not too sure how one would define and start AgentX subagents.

  a)   Compile your MIB module into the main agent framework,
         and then start "snmpd" using the command-line option '-X'

  b)   Compile your MIB module using
              net-snmp-config --compile-subagent mysubagent myModule.c
       (See http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent)

  c)   Compile your MfD MIB module using the MfD makefile



Dave


       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
-------------------------------------------------------------------------
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

Reply via email to