Using a remote shell

If the information provided by the observer isn't enough, with this setup you can also run a remote shell from the comfort of your local shell:

$ iex --name console@10.40.0.41 --cookie $COOKIE --remsh "elixir_drip@10.40.0.41"Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]Interactive Elixir (1.6.4) - press Ctrl+C to exit (type h() ENTER for help)iex(elixir_drip@10.40.0.41)> node():"elixir_drip@10.40.0.41"iex(elixir_drip@10.40.0.41)> Node.list[:"elixir_drip@10.40.2.143", :"elixir_drip@10.40.0.42", :"console@10.40.0.41"]

As you can see, the current node (given by the Kernel.node/0 function) is the remote one (elixir_drip@10.40.0.41), so whatever you run will ...

Get Mastering Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.