Skip to content

Instantly share code, notes, and snippets.

@ztmr
Last active December 19, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ztmr/5874778 to your computer and use it in GitHub Desktop.
Save ztmr/5874778 to your computer and use it in GitHub Desktop.
Erlang network boot example
tmr@dev:~$ erl -sname boot
Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
(boot@dev)1>
(boot@dev)1>
(boot@dev)1> erlang:get_cookie().
'HAKAZNCDECSZGWFBJSGC'
(boot@dev)2>
(boot@dev)2>
(boot@dev)2> erl_boot_server:start (['10.4.9.6','10.4.6.12','127.0.0.1']).
{ok,<0.43.0>}
(boot@dev)3>
tmr@gersemi:~$ erl -sname slave -hosts 10.4.6.12 -id slave -setcookie HAKAZNCDECSZGWFBJSGC -loader inet
Erlang R15B (erts-5.9) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
(slave@gersemi)1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment