snmp_mgr_tests.erl and udp or gen_udp start() function

Martin Bjorklund mbj@REDACTED
Mon Apr 8 21:48:37 CEST 2002


Hi,


Philippe Strauss <philou@REDACTED> wrote:
> Hello,
> 
> I'm starting to learn Erlang, and I would like to have something
> interesting to cut my tooth against, and since I'm in SNMP managers
> right now, I try to run snmp_mgr_tests.erl

Where did you find that module?  It's obviously not up-to-date, but it
may work after some modifications...


> start() ->
>     udp:start(), <--- warning tells use gen_udp instead !!

The udp module is obsolete, and gen_udp does not have a start
function.  Just remove this call.


> 21:30:23.412972 195.202.200.121.5000 > 195.202.200.121.4000
                                                         ^^^^

The problem here is that the snmp_mgr module is using port 4000 by
default, for some historic reason.  Use the option {agent_port, 161}
to snmp_mgr:start().



/martin



More information about the erlang-questions mailing list