>>>>> On Fri, 05 Nov 2004 14:45:38 -0500, "Andres C" <[EMAIL PROTECTED]> said:
Andres> If I wanted to initialize the other MIB's the snmpd agent
Andres> does, do I have to call some function or is it done by
Andres> default? For example to access the system group or even other
Andres> MIB's I have developed.
Yes, you'd have to call multiple init routines. If you want to load
everything that the agent library implements, then call
init_mib_modules() which will load everything the normal agent would
(based on your configure call at least).
Andres> What exactly does this funtion do init_agent("example-demon"), it
Andres> initializes what library?
It initializes the agent half of the world... I can't list the
details at the moment since I don't have the time, but you could go
read the code.
Andres> Does init_snmp("example-demon") only worries for reading a
Andres> file named example-demon.conf, so if I change the parameter to
Andres> test, it would read a file named test.conf?
Correct.
Andres> example-demon.obj : error LNK2001: unresolved external symbol
Andres> _agent_check_and_process
Andres> example-demon.obj : error LNK2001: unresolved external symbol
Andres> _init_master_agent
Andres> example-demon.obj : error LNK2001: unresolved external symbol
_init_usmUser
Andres> example-demon.obj : error LNK2001: unresolved external symbol
Andres> _init_vacm_vars
Andres> example-demon.obj : error LNK2001: unresolved external symbol _init_test
Andres> example-demon.obj : error LNK2001: unresolved external symbol
_init_agent
You're missing libraries in your compilation. You need to link with
libnetsnmpagent and libnetsnmpmibs
--
Wes Hardaker
Sparta
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders