Something changed with SNMP ?

Micael Karlberg <>
Mon Oct 18 19:25:10 CEST 2004


Hi,

Yes, quite a few things has changed in 4.0. The biggest is the
addition of a "real" manager. The old manager (snmp_mgr) has
been moved into the test directory.
It is simplest to just look at the documentation (including
release notes).

/BMK

On Monday, October 18, 2004, at 06:47 AM, Dietmar Admin Schaefer wrote:

>
>
> -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}]} **
>
> ()16>
>
>
>
> In OTP-9-2B :
>
>
>
> PROGRESS REPORT==== 18-Oct-2004::06:44:22 ===
>         application: snmp
>          started_at: 
>
>
> Has something changed ?
>
>
>
> regards
>
>
>
> Dietmar
>



More information about the erlang-questions mailing list