Quantcast

net_adm:ping/1 hostname

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

net_adm:ping/1 hostname

maruthavanan s
Hi,

I wanted to run a distributed system and I tried to do the below and got a error

1>net_adm:ping('tcpserver@192.168.10.125').
pang

=ERROR REPORT==== 3-Jun-2011::09:48:45 ===
** System NOT running to use fully qualified hostnames **
** Hostname 192.168.10.125 is illegal **

Do I need to use only hostname and I can't  use ip addresses? I would like to know why because few of the networks which I came through did not have a DNS among LAN? One way I could find to solve this is add the ip against hostname in system file and proceed. (but this mostly requires admin /root privileges). Are there any other workarounds?

Thanks,
Marutha

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: net_adm:ping/1 hostname

jasonlxw
you can try..

([hidden email])3> net_adm:ping('[hidden email]'). 
pong


2011/6/3 maruthavanan s [via Erlang] <[hidden email]>
Hi,

I wanted to run a distributed system and I tried to do the below and got a error

1>net_adm:ping('[hidden email]').
pang

=ERROR REPORT==== 3-Jun-2011::09:48:45 ===
** System NOT running to use fully qualified hostnames **
** Hostname 192.168.10.125 is illegal **

Do I need to use only hostname and I can't  use ip addresses? I would like to know why because few of the networks which I came through did not have a DNS among LAN? One way I could find to solve this is add the ip against hostname in system file and proceed. (but this mostly requires admin /root privileges). Are there any other workarounds?

Thanks,
Marutha

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions



If you reply to this email, your message will be added to the discussion below:
http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3569984.html
To start a new topic under Erlang Questions, email [hidden email]
To unsubscribe from Erlang Questions, click here.

Never give up
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: net_adm:ping/1 hostname

jasonlxw
In reply to this post by maruthavanan s
jason@client-3:~$ erl -name  '[hidden email]' -setcookie 123
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)

-------------------
jason@client-3:~$ erl -name  '[hidden email]' -setcookie 123
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)
([hidden email])1> net_adm:ping('[hidden email]')
pong
---------------
OK.There is not any problem.


2011/6/3 maruthavanan s [via Erlang] <[hidden email]>
Hi,

I wanted to run a distributed system and I tried to do the below and got a error

1>net_adm:ping('[hidden email]').
pang

=ERROR REPORT==== 3-Jun-2011::09:48:45 ===
** System NOT running to use fully qualified hostnames **
** Hostname 192.168.10.125 is illegal **

Do I need to use only hostname and I can't  use ip addresses? I would like to know why because few of the networks which I came through did not have a DNS among LAN? One way I could find to solve this is add the ip against hostname in system file and proceed. (but this mostly requires admin /root privileges). Are there any other workarounds?

Thanks,
Marutha

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions



If you reply to this email, your message will be added to the discussion below:
http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3569984.html
To start a new topic under Erlang Questions, email [hidden email]
To unsubscribe from Erlang Questions, click here.

Never give up
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: net_adm:ping/1 hostname

Ivan Uemlianin
In reply to this post by maruthavanan s
Dear Marutha

How are you starting the shell?

If I start with an sname I get the same error as you:

     $ erl -sname bla
     Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2]
[async-threads:0] [kernel-poll:false]

     Eshell V5.7.2  (abort with ^G)
     (bla@localhost)1> net_adm:ping('tcpserver@192.168.10.125').
     pang
     (bla@localhost)2>
     =ERROR REPORT==== 3-Jun-2011::08:58:03 ===
     ** System NOT running to use fully qualified hostnames **
     ** Hostname 192.168.10.125 is illegal **

     (bla@localhost)2>

To use fully qualified hostnames you should start the shell with -name
instead of -sname:

     $ erl -name bla
     Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2]
[async-threads:0] [kernel-poll:false]

     Eshell V5.7.2  (abort with ^G)
     ([hidden email])1> net_adm:ping('tcpserver@192.168.10.125').
     pang
     ([hidden email])2>

You can use IP addresses or names in the remote node term.

To get "pong" instead of "pang" you need to make sure the nodes are
allowed to connect.  See the documentation, or I recently blogged about
it here:

     http://llaisdy.wordpress.com/2011/05/17/connecting-erlang-nodes/

Best wishes

Ivan


On 03/06/2011 05:24, Maruthavanan Subbarayan wrote:

> Hi,
>
> I wanted to run a distributed system and I tried to do the below and got
> a error
>
> 1>net_adm:ping('tcpserver@192.168.10.125').
> pang
>
> =ERROR REPORT==== 3-Jun-2011::09:48:45 ===
> ** System NOT running to use fully qualified hostnames **
> ** Hostname 192.168.10.125 is illegal **
>
> Do I need to use only hostname and I can't use ip addresses? I would
> like to know why because few of the networks which I came through did
> not have a DNS among LAN? One way I could find to solve this is add the
> ip against hostname in system file and proceed. (but this mostly
> requires admin /root privileges). Are there any other workarounds?
>
> Thanks,
> Marutha
>
>
>
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions


--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

                     [hidden email]
                      www.llaisdy.com
                          llaisdy.wordpress.com
                      www.linkedin.com/in/ivanuemlianin

     "Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
                      (Schiller, Beethoven)
============================================================
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Loading...