[erlang-questions] snmp deployment

eigenfunction <>
Sun Apr 1 18:27:48 CEST 2012


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?



More information about the erlang-questions mailing list