[erlang-questions] receiving pang from net_adm:ping/1 even though net_adm:names/0 shows the other node

Dennis Byrne dennisbyrne@REDACTED
Sun Apr 19 19:03:57 CEST 2009


I tried that as well but went with the simpler example to the list.
Here's what -name does ...

>From Console A ...

$ erl -name foo -setcookie c

>From Console B ...

$ erl -name bar -setcookie c
(bar@REDACTED)1> net_adm:names().
{error,nxdomain}
(bar@REDACTED)2> net_adm:ping(bar@REDACTED).
pong
(bar@REDACTED)3> net_adm:ping(foo@REDACTED).
pang

>From Console C ...

$ /usr/local/lib/erlang/erts-5.6.4/bin/epmd -names
epmd: up and running on port 4369 with data:
name bar at port 51557
name foo at port 51555

Same problem, but notice that net_adm:names/0 no longer works correctly.

Dennis Byrne

On Sun, Apr 19, 2009 at 11:54 AM, Per Melin <per.melin@REDACTED> wrote:
> On Sun, Apr 19, 2009 at 4:46 PM, Dennis Byrne <dennisbyrne@REDACTED> wrote:
>> >From console A ...
>>
>> $ erl -sname foo -setcookie c
>> (foo@REDACTED)1>
>>
>> >From console B ...
>>
>> $ erl -name bar -setcookie c
>> (bar@REDACTED)1>
>
> What if you don't start one node with -sname and the other with -name?
>



-- 
Dennis Byrne



More information about the erlang-questions mailing list