Skip to content

Instantly share code, notes, and snippets.

@macro
Forked from pnc/observer.md
Created November 3, 2015 18:05
Show Gist options
  • Save macro/e3564946904cb83c1785 to your computer and use it in GitHub Desktop.
Save macro/e3564946904cb83c1785 to your computer and use it in GitHub Desktop.

Revisions

  1. @pnc pnc revised this gist Nov 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion observer.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ On your machine, start a hidden Erlang node running the `observer` app:

    $ erl -name [email protected] -setcookie if-server-has-one -hidden -run observer

    __N.B.:__ If the server is using `-sname`, you need to use `-sname` as well, because Erlang™.
    __N.B.:__ If the server is using `-sname`, you need to use `-sname` as well, because Erlang™. You'll also need to change your system's hostname to match the target host, for the same reason.

    In _observer_, go to _Nodes_ - _Connect Node_ and type `[email protected]`.

  2. @pnc pnc revised this gist Oct 14, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions observer.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Using OTP's observer (appmon replacement) remotely

    $ ssh remote-host "epmd -names"
    epmd: up and running on port 4369 with data:
    name some_node at port 58769
  3. @pnc pnc created this gist Oct 14, 2014.
    19 changes: 19 additions & 0 deletions observer.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    $ ssh remote-host "epmd -names"
    epmd: up and running on port 4369 with data:
    name some_node at port 58769
    Note the `running on port` for `epmd` itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

    $ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host

    On your machine, start a hidden Erlang node running the `observer` app:

    $ erl -name [email protected] -setcookie if-server-has-one -hidden -run observer

    __N.B.:__ If the server is using `-sname`, you need to use `-sname` as well, because Erlang™.

    In _observer_, go to _Nodes_ - _Connect Node_ and type `[email protected]`.

    You can also get a remote shell:

    $ erl -name [email protected] -setcookie if-server-has-one -remsh [email protected]