Discussion:
[erlang-questions] net_adm:ping/1 hostname
unknown
2011-06-03 04:24:33 UTC
Permalink
Hi,
I wanted to run a distributed system and I tried to do the below and got a error
1>net_adm:ping('tcpserver').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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110603/badb7ad2/attachment.html>
unknown
2011-06-03 05:22:19 UTC
Permalink
you can try..

(s)3> net_adm:ping('s').
pong


2011/6/3 maruthavanan s [via Erlang] <
ml-node+3569984-1483686616-67370>
Post by unknown
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]<http://user/SendEmail.jtp?type=node&node=3569984&i=0>
').
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://user/SendEmail.jtp?type=node&node=3569984&i=1>
http://erlang.org/mailman/listinfo/erlang-questions
------------------------------
If you reply to this email, your message will be added to the discussion
http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3569984.html
To start a new topic under Erlang Questions, email
ml-node+2086794-1604045721-67370
To unsubscribe from Erlang Questions, click here<http://erlang.2086793.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2086794&code=bGFuZ3hpYW56aGVAZ21haWwuY29tfDIwODY3OTR8MTA2ODExODQ5Ng==>.
-----
Never give up
--
View this message in context: http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3570036.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110602/36b33f67/attachment.html>
unknown
2011-06-03 05:29:10 UTC
Permalink
jason:~$ erl -name 'aa' -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)
(aa)1>

-------------------
jason:~$ erl -name 'b' -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)
(b)1> net_adm:ping('aa')
(b)1> .
pong
(b)2>
---------------
OK.There is not any problem.


2011/6/3 maruthavanan s [via Erlang] <
ml-node+3569984-1483686616-67370>
Post by unknown
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]<http://user/SendEmail.jtp?type=node&node=3569984&i=0>
').
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://user/SendEmail.jtp?type=node&node=3569984&i=1>
http://erlang.org/mailman/listinfo/erlang-questions
------------------------------
If you reply to this email, your message will be added to the discussion
http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3569984.html
To start a new topic under Erlang Questions, email
ml-node+2086794-1604045721-67370
To unsubscribe from Erlang Questions, click here<http://erlang.2086793.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2086794&code=bGFuZ3hpYW56aGVAZ21haWwuY29tfDIwODY3OTR8MTA2ODExODQ5Ng==>.
-----
Never give up
--
View this message in context: http://erlang.2086793.n4.nabble.com/net-adm-ping-1-hostname-tp3569984p3570042.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110602/a1cb7eb8/attachment.html>
unknown
2011-06-03 08:03:49 UTC
Permalink
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)1> net_adm:ping('tcpserver').
pang
(bla)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)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)
(bla)1> net_adm:ping('tcpserver').
pang
(bla)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
Post by unknown
Hi,
I wanted to run a distributed system and I tried to do the below and got a error
1>net_adm:ping('tcpserver').
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
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

ivan
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin

"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================
Continue reading on narkive:
Search results for '[erlang-questions] net_adm:ping/1 hostname' (Questions and Answers)
10
replies
What is AIX Box?
started 2006-05-08 15:58:44 UTC
hardware
Loading...