Skip to content

Commit

Permalink
Add receptorctl traceroute documentation (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored May 20, 2024
1 parent 6cb0a16 commit b2f85b4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/receptorctl/receptorctl_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ The Receptor client, ``receptorctl``, provides a command line interface for inte

receptorctl_ping
receptorctl_status
receptorctl_traceroute
receptorctl_work_list
2 changes: 1 addition & 1 deletion docs/source/receptorctl/receptorctl_ping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Command syntax: ``receptorctl --socket=<socket_path> [--count <count>] [--delay
u_str LISTEN 0 4096 /tmp/local.sock 38130170 * 0 users:(("receptor",pid=3226769,fd=7))
``ps -fp $(pidof receptor)``
``lsof -p <<pid>``
``lsof -p <pid>``

``count`` specifies the number of pings to send. The value must be a positive integer. The default is ``4``.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/receptorctl/receptorctl_status.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Command syntax: ``receptorctl --socket=<socket_path> status [--json]``
u_str LISTEN 0 4096 /tmp/local.sock 38130170 * 0 users:(("receptor",pid=3226769,fd=7))
``ps -fp $(pidof receptor)``
``lsof -p <<pid>``
``lsof -p <pid>``

``--json`` option returns the output in JSON format.
The default output format is human-readable.
Expand Down
24 changes: 24 additions & 0 deletions docs/source/receptorctl/receptorctl_traceroute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
----------
traceroute
----------

.. contents::
:local:

``receptorctl traceroute`` Displays the network route that packets follow to Receptor nodes.

Command syntax: ``receptorctl --socket=<socket_path> traceroute <remote_node>``

``socket_path`` is the control socket address for the Receptor connection.
The default is ``unix:`` for a Unix socket.
Use ``tcp://`` for a TCP socket.
The corresponding environment variable is ``RECEPTORCTL_SOCKET``.

.. code-block:: text
ss --listening --processes --unix 'src = unix:<socket_path>'
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
u_str LISTEN 0 4096 /tmp/local.sock 38130170 * 0 users:(("receptor",pid=3226769,fd=7))
``ps -fp $(pidof receptor)``
``lsof -p <pid>``
2 changes: 1 addition & 1 deletion docs/source/receptorctl/receptorctl_work_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Command syntax: ``receptorctl --socket=<socket_path> work list``
u_str LISTEN 0 4096 /tmp/local.sock 38130170 * 0 users:(("receptor",pid=3226769,fd=7))
``ps -fp $(pidof receptor)``
``lsof -p <<pid>``
``lsof -p <pid>``

The output is divided into work unit sections listed below.
Field values might be listed separately.
Expand Down

0 comments on commit b2f85b4

Please sign in to comment.