[erlang-questions] net_adm:ping/1

49 views
Skip to first unread message

eigenfunction

unread,
Apr 30, 2012, 8:27:09 AM4/30/12
to erlang-q...@erlang.org
Hi everybody,
i habe been trying to rpc another node on the same machine, but that
node did not respond. I then tried this:

(test2@mycomputer) > erl_epmd:names(localhost).
{ok,[{test1,45555},{test2,49788}]}

(test2@mycomputer) > net_adm:ping(test1@mycomputer).
pang.

(test2@mycomputer) > net_adm:ping(test1@localhost).
pang.


Any Idea why it is not working?
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Robert Raschke

unread,
Apr 30, 2012, 9:41:50 AM4/30/12
to eigenfunction, erlang-q...@erlang.org

eigenfunction

unread,
Apr 30, 2012, 9:53:09 AM4/30/12
to erlang-q...@erlang.org
Yes they are.

On 30 Apr., 15:41, Robert Raschke <rtrli...@googlemail.com> wrote:
> Are the nodes using the same cookie?
> (Seehttp://www.erlang.org/doc/getting_started/conc_prog.html#id67210)
>
>
>
>
>
>
>
> On Mon, Apr 30, 2012 at 1:27 PM, eigenfunction <emeka_1...@yahoo.com> wrote:
> > Hi everybody,
> > i habe been trying to rpc another node on the same machine, but that
> > node did not respond. I then tried this:
>
> > (test2@mycomputer) > erl_epmd:names(localhost).
> >  {ok,[{test1,45555},{test2,49788}]}
>
> > (test2@mycomputer) > net_adm:ping(test1@mycomputer).
> > pang.
>
> > (test2@mycomputer) > net_adm:ping(test1@localhost).
> > pang.
>
> > Any Idea why it is not working?
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions

Bohuslav Svancara

unread,
Apr 30, 2012, 10:04:15 AM4/30/12
to erlang-q...@erlang.org
A)
erl -name n...@127.0.0.1 -setcookie 123456

B) 
erl -name n...@127.0.0.1 -setcookie 123456

C) 
(n...@127.0.0.1)1> net_adm:ping('n...@127.0.0.1').
pong

(n...@127.0.0.1)2> nodes().

D) 
(n...@127.0.0.1)1> nodes().

No problem :-)

Sincerely,
Bob


2012/4/30 eigenfunction <emeka...@yahoo.com>

Boris Mühmer

unread,
Apr 30, 2012, 10:34:35 AM4/30/12
to eigenfunction, erlang-q...@erlang.org
Which OS do You use?

If You're running the "avahi" daemon on Ubuntu You may run into
different problems. May old solution was to remove the avahi-daemon,
but recently I started to tweak the avahi configuration instead (I
only had to change the value for "domain-name" in
"/etc/avahi/avahi-daemon.conf").


- boris

eigenfunction

unread,
Apr 30, 2012, 12:01:16 PM4/30/12
to erlang-q...@erlang.org
I am using Suse. Now the funny thing is that,
back home and using the same script, everything is working fine.
I will try your solution.
Thanks.

On Apr 30, 4:34 pm, Boris Mühmer <boris.mueh...@googlemail.com> wrote:
> Which OS do You use?
>
> If You're running the "avahi" daemon on Ubuntu You may run into
> different problems. May old solution was to remove the avahi-daemon,
> but recently I started to tweak the avahi configuration instead (I
> only had to change the value for "domain-name" in
> "/etc/avahi/avahi-daemon.conf").
>
>   - boris
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions
Reply all
Reply to author
Forward
0 new messages