Reference

prompt

Initiate an interactive session with the Runtime API.

Description Jump to heading

Using prompt, you can begin an interactive session wherein you can enter commands without needing to reconnect to the API each time.

Examples Jump to heading

  1. Connect to the Runtime API socket:

    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
  2. Start an interactive session:

    nix
    prompt
    nix
    prompt

Then you can send other Runtime API commands.

Available since

  • HAProxy 2.8
  • HAProxy Enterprise 2.8r1

As of version 2.8r1, you can provide an additional argument timed to the prompt command which will show the process’ uptime on the prompt.

nix
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
prompt timed
nix
prompt timed

The prompt will then show with the process’ uptime.

output
text
[0:00:15:55]>
output
text
[0:00:15:55]>

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?