newbie SNMP question

karol karol.skocik@REDACTED
Fri Dec 16 13:58:08 CET 2005


Hi,
  I have just started doing some Erlang and SNMP, and I need a help. Why are the modules snmpa and snmpm not loaded by default? My config for agent is : 
[
 {snmp,
  [{agent,
    [{config, [{dir, "/home/md/maindata_snmp/agent/conf/"}]},
     {db_dir, "/home/md/maindata_snmp/agent/db/"}]}]}
].

and when I run it with : erl -sname agent -config agent, and I do m()., the only SNMP related modules are : 

snmp_app              /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_app.beam
snmp_app_sup          /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_app_sup.beam
snmp_community_mib    /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_community_mib.beam
snmp_conf             /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_conf.beam
snmp_framework_mib    /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_framework_mib.beam
snmp_generic          /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_generic.beam
snmp_misc             /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_misc.beam
snmp_note_store       /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_note_store.beam
snmp_notification_mi  /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_notification_mib.beam
snmp_standard_mib     /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_standard_mib.beam
snmp_target_mib       /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_target_mib.beam
snmp_user_based_sm_m  /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_user_based_sm_mib.beam
snmp_verbosity        /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_verbosity.beam
snmp_view_based_acm_  /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmp_view_based_acm_mib.beam
snmpa_agent           /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_agent.beam
snmpa_agent_sup       /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_agent_sup.beam
snmpa_general_db      /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_general_db.beam
snmpa_local_db        /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_local_db.beam
snmpa_mib             /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_mib.beam
snmpa_mib_data        /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_mib_data.beam
snmpa_mib_lib         /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_mib_lib.beam
snmpa_misc_sup        /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_misc_sup.beam
snmpa_mpd             /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_mpd.beam
snmpa_net_if          /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_net_if.beam
snmpa_supervisor      /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_supervisor.beam
snmpa_symbolic_store  /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_symbolic_store.beam
snmpa_vacm            /usr/lib/erlang/lib/snmp-4.1.4/ebin/snmpa_vacm.beam

but why are the core modules missing? I mean, there are examples where the guys start manager like this (I think that snmp_mgr was renamed to snmpm later - is it true?)

-import(snmp_mgr, [gn/1, g/1, s/1, expect/2, expect/4, expect/6]).

start() ->
    snmp_mgr:start([{agent,"dront.nada.kth.se"},{community,"all-rights"},
		    {mibs,["STANDARD-MIB.bin"]},trace]),
    simple_standard_test().

Thank you,
  Karol
_________________________________________________________
Sent using Mail2Forum (http://m2f.sourceforge.net)



More information about the erlang-questions mailing list