Hi Dave:

   Thanks! 
   My change is not sub-agent. It seems like the "dynamically loadable module" 
is the approach I should apply. I will read the tutorial of DLM and give it a 
try.
Thanks again,
Jim
   

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Shield
Sent: Monday, April 11, 2005 5:35 PM
To: Jim Su
Cc: Net-Snmp-Users
Subject: Re: Is an executable snmpd agent existed?

On Mon, 2005-04-11 at 09:04, Jim Su wrote:
> The snmpd is a shell script.

No - the snmpd program will be a binary file.
There may be a shell script of the same name that acts
as a wrapper round it, to handle locating the appropriate
libraries before they have been installed.
  But that's definitely a temporary hack, and the agent
itself will be a binary.


>  Is there a executable snmpd file which is made with my_module,
>  customized system_mib.c, etc. so I only need to copy that
>  executable file to the target machine?

No - the agent doesn't work that way.
Your module code is actually compiled into one of the libraries,
not the agent binary itself.  You could try copying that library
(libnetsnmpmibs.so or similar) - that probably ought to work, as
long as the versions match, and the configuration options are
compatible.


But this feels a bit of a risky process.  I'd be inclined to use
a different approach.   Why not bundle your new/changed modules
as either an AgentX subagent, or a dynamically loadable module?
That way you could distribute a clearly distinct software package
which would add your new functionality to the existing agent,
regardless of any version or configuration differences.

That feels a much safer and flexible way to proceed.

Dave



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
HW夸)b粗h?+y羕N??v??y?'z汻jwbv楝?,│n?煡?!3諢?傳諲j溣[津??(赭?'!死嘈l飩瓜X砧瘱J^?^J眱須?)??嗓?l〥gr?i?

Reply via email to