[erlang-questions] snmp deployment

eigenfunction emeka_1978@REDACTED
Sun Apr 1 19:53:09 CEST 2012


It turns out, i was not using reltool properly it seems. Packaging
under linux with sinan was working. So i went back on windows and
used the minimum config for reltool:

{sys, [
    {lib_dirs, ["c:/cygwin/home/snmptest/_build/snmptest/lib"]},
    {rel, "snmpest", "1.0.0",
     [kernel
      ,stdlib
      ,{snmptest,load}
      ,{wx,load}
      ,snmp
     ]},
    {boot_rel, "snmptest"}
%    ,{relocatable, true}
%    ,{profile, embedded}
%    ,{app_file, strip}
%	,{debug_info, strip}
%	,{incl_cond, exclude}
%	,{app, stdlib, [{mod_cond, derived}, {incl_cond, include}]}
%	,{app, kernel, [{incl_cond, include}]}
%	,{app, snmp, [{incl_cond, include}]}
%	,{app,mnesia,[{incl_cond, include}]}
%	,{app, wx, [ {incl_cond, include}]}
%	,{app, snmptest, [{vsn, "0.0.1"}, {incl_cond, include}]}
]}.

It seems i was removing some snmp dependencies, which i am not sure
what they actually are.
Since the target system is Windows embedded, i will have to deploy the
whole erlang system until i can find out a better way of stripping
unused packages.
Thanks.



On Apr 1, 6:27 pm, eigenfunction <emeka_1...@REDACTED> wrote:
> i would like to package a standalone application that depends on snmp.
> Packaging does not work as expected. Starting snmp return the
> following error:
>
> 3> application:start(snmp).
> {error,
>     {bad_return,
>         {{snmp_app,start,[normal,[]]},
>          {'EXIT',
>              {{badmatch,
>                   {error,
>                       {shutdown,
>                           {child,undefined,snmpm_supervisor,
>                               {snmpm_supervisor,start_link,
>                                   [normal,[{config,[{dir,...},
> {...}]}]]},
>                               transient,2000,supervisor,
>                               [snmpm_supervisor,supervisor]}}}},
>               [{snmp_app,start,2,[{file,"snmp_app.erl"},{line,40}]},
>                {application_master,start_it_old,4,
>                    [{file,"application_master.erl"},{line,
> 274}]}]}}}}}.
> Actually i am only interesting in the manager. I tried to start the
> system with: erl -config manager
> where manager:
> [
>   {snmp,
>         [{manager,
>             [{config, [{dir, "C:/snmp"},
>                 {db_dir, "C:/snmp/db/"}]}]}]}
> ].
>
> 4> snmp:start().
> {error,
>     {bad_return,
>         {{snmp_app,start,[normal,[]]},
>          {'EXIT',
>              {{badmatch,
>                   {error,
>                       {shutdown,
>                           {child,undefined,snmpm_supervisor,
>                               {snmpm_supervisor,start_link,
>                                   [normal,[{config,[{dir,...},
> {...}]}]]},
>                               transient,2000,supervisor,
>                               [snmpm_supervisor,supervisor]}}}},
>               [{snmp_app,start,2,[{file,"snmp_app.erl"},{line,40}]},
>                {application_master,start_it_old,4,
>                    [{file,"application_master.erl"},{line,274}]}]}}}}}
>
> No luck ;-(
>
> Any idea?
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list