[erlang-questions] snmp deployment

Vance Shipley vances@REDACTED
Sun Apr 1 19:47:26 CEST 2012


That is the error you get when the path to the config directory isn't found.

Try just using the file module(*) to check the path:

	1> file:consult("C:/snmp/manager.config").


Also you did name the system configuration file "manager.config" right?
Whne you say `erl -config manager` it adds the .config suffix to the
argument to the config parameter.

-- 
	-Vance

(*)  http://www.erlang.org/doc/man/file.html

On Sun, Apr 01, 2012 at 09:27:48AM -0700, eigenfunction wrote:
}  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