Something changed with SNMP ?

Dietmar Admin Schaefer dietmar@REDACTED
Mon Oct 18 06:47:32 CEST 2004









-module(test).

-export([start/0]).


-include("src/cmmc_foc.hrl").
-include("fourd-mib-db.hrl").
-include("src/FOURD-MIB.hrl").
-incude_lib("snmp/include/SNMPv2-MIB.hrl").
-include_lib("mnemosyne/include/mnemosyne.hrl").

I tested OTP_R10B with my SNMP-Application - and got a few problems.

After a while I tested

start() ->
         ok=application:start(snmp),
         ok=snmp:load_mibs(snmp_master_agent, ["FOURD-MIB"]),
       {ok,Pid} = snmp_mgr:start_link([{agent, {127,0,0,1}},
       {agent_udp,?SNMP_PORT},{mibs,["FOURD-MIB"]}]),
  %%     snmp:debug(snmp_master_agent,true),
        Pid.                                                 %% gibt die 
PID des SNMP-Agenten zurueck
 
What I get with OTP-10B is:

 test:start().             
** exited: {{badmatch,{error,"invalid return value from 
snmp_app:start(normal,[]) -> 
{'EXIT',{{badmatch,\n                                          
{error,\n                                              
{{missing_mandatory_option,\n                                                   
db_dir},\n                                               
{child,\n                                                   
undefined,\n                                                   
snmpa_supervisor,\n                                                   
{snmpa_supervisor,\n                                                       
start_link,\n                                                       
[normal,\n                                                        
[{agent_type,master}]]},\n                                                   
permanent,\n                                                   
2000,\n                                                   
supervisor,\n                                                   
[snmpa_supervisor,\n                                                    
supervisor]}}}},\n                                      
[{snmp_app,start,2},\n                                       
{application_master,start_it_old,4}]}}"}},
            [{test,start,0},
             {erl_eval,do_apply,5},
             {shell,exprs,6},
             {shell,eval_loop,3}]} **

(cmmc@REDACTED)16>



In OTP-9-2B :



PROGRESS REPORT==== 18-Oct-2004::06:44:22 ===
         application: snmp
          started_at: cmmc@REDACTED


Has something changed ?



regards



Dietmar




More information about the erlang-questions mailing list