tags:

views:

122

answers:

3

is there any way to return as a list all the node names of the nodes in an erlang cluster?

+3  A: 

net_adm:names() will return you the nodes that are connected to epmd on the current node.

Also see this SO question.

Zed
+5  A: 

nodes() should work.

ryeguy
A: 

You can also get the hidden nodes connected to a node via nodes(hidden).

Yogish Baliga