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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
-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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|