rfc: snmptrapd dependencies on agent libs

This is a discussion on rfc: snmptrapd dependencies on agent libs within the SNMP Coders forums, part of the Networking and Network Related category; -Coders, snmptrapd, although living in apps/, has a significant number of dependencies on the agent libraries. While the depencies on ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2005
Thomas Anders
 
Posts: n/a
Default rfc: snmptrapd dependencies on agent libs

-Coders,

snmptrapd, although living in apps/, has a significant number of
dependencies on the agent libraries. While the depencies on MIB modules
(e.g. snmpv3/usmUser and snmpv3/snmpEngine in 5.2+) can be solved by
suitable #ifdef USING... definitions, the following dependencies still
exist (5.2+):

- init_agent (from agent/snmp_vars.c)
- convert_v1pdu_to_v2 (agent/agent_trap.c)
- run_shell_command (agent/mibgroup/utilities/execute.c)
- init_perl (agent/snmp_perl.c) if --with-embedded-perl

This has particular drawbacks, e.g. that --disable-agent (documented to
just leave snmpd out of the build) doesn't work and fails at compile
time due the dependencies listed above. But even if you could live with
disabling snmptrapd also, you'll find out that there's no configure
switch to do so. The closest is --disable-applications which disables
everything in apps/, so you end up with no binaries at all.

What to do about it?
[ ] reorganize the libraries to take the above out of libnetsnmpagent
and put it somewhere else (either a new common lib for snmpd+snmptrapd
or one of the existing libs)
[ ] build libnetsnmpagent with just the above functions in case of
--disable-agent
[ ] have --disable-agent disable snmpd *and* snmptrapd
[ ] <your own suggestions>

Make your choice.

methinks that we should sort this out before 5.3. Feedback highly
appreciated.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0