For the complete documentation index, see llms.txt. This page is also available as Markdown.

Events

The Events section runs an action at four moments of a session: before it opens, after it opens, before it closes and after it closes. It also powers on the host with Wake-on-LAN, sends port knocks and types a macro after the session opens. For an overview, see Events.

Available for session entries. In the entry properties, select Connection – Events. By default, the section is hidden in the simplified view of the properties; select Show all properties to display it.

With batch edit, select Override to replace these settings on every selected entry. Whether events can run in a vault depends on the Session events setting of the vault, in Security settings.

The section has four tabs: Before opening, After opening, Before closing and After closing. Each tab has an event, configured with the settings of the Event group.

Event

The list at the top of each event defines the action:

  • None: no action. This is the default value.

  • Execute script: runs a script file.

  • Execute command-line: runs a command line.

  • Automation and scripting: runs a macro, script or tool entry of the vault, selected in the field next to the list.

  • Execute PowerShell: runs a PowerShell script typed in the entry. See Execute a PowerShell script before opening a connection.

  • Copy username to clipboard, Copy password to clipboard, Copy username and password to clipboard, Copy OTP to clipboard: copy the credentials or the one-time password of the entry. Offered in the After opening tab only.

  • Copy to clipboard (custom): copies the text entered.

  • Prompt message: shows a message to the user.

SETTING
DESCRIPTION

Script, Command-line

The script file to run, or the command line to run. Shown with Execute script and Execute command-line.

Wait for exit

Waits until the action ends before continuing. Not shown with None, Prompt message and Copy to clipboard (custom), nor with Automation and scripting when the selected entry cannot be waited for. Entries that can be waited for include AutoHotkey, AutoIt, command line and PowerShell entries.

Use default working directory

Runs the script or command line in the default working directory. Shown with Execute script and Execute command-line.

Run as administrator

Runs the script or command line with elevated privileges. Shown with Execute script and Execute command-line.

Pre-execution pause, Wait timeout, Post-execution pause

Seconds to wait before running the script or command line, maximum time to wait for it, and seconds to wait after it ends (0 to 300 each). Shown with Execute script and Execute command-line.

PowerShell script

The PowerShell script to run. The Edit button opens an editor. Shown with Execute PowerShell.

Timeout (sec)

Maximum time for the PowerShell script. Before opening tab only.

Message

The message shown to the user. Shown with Prompt message.

Mode

What the message asks of the user before the session opens. Before opening tab only:

  • Default: uses the application setting, shown in parentheses.

  • Passcode: the user must enter the passcode set in Passcode to continue.

  • Variable: the user enters a value that the session can use as a variable. Select Protect variable field to mask the value.

Copy to clipboard

The text to copy. Shown with Copy to clipboard (custom).

Before opening

The Miscellaneous and Port knocks groups follow the event.

SETTING
DESCRIPTION

Power-on mode

Powers on the host before connecting: None or Wake on LAN. Wake on LAN requires the MAC address of the host in the entry, and a host that supports it.

Wait timeout

Seconds to wait for the host to answer after each wake request (1 to 300). Enabled with Wake on LAN.

Retry count

Number of wake requests to send (0 to 300). Enabled with Wake on LAN.

Protocol

Protocol of the port knocks: Default, IPv4 or IPv6.

Interval

Milliseconds between two port knocks (0 to 180000).

Verbose level

Level of detail of the port knocking logs.

Port knocks list

The ports to knock, in order, each with its Protocol type and Port. Manage them with New, Edit, Delete, Move up and Move down.

After opening

The After opening - Macro group follows the event. It types a macro in the session after it opens.

SETTING
DESCRIPTION

Macro type

The list at the start of the group: Default (a typing macro entered in the entry) or Link (a macro, script or tool entry of the vault, selected in the Link field).

Execute automatically

Types the macro automatically when the session opens.

Initial wait

Seconds to wait after the session opens before typing the macro (0 to 300).

Typing macro

The keys to type. The Edit button opens an editor and the Help button lists the syntax. See Event auto typing macro. Shown with Default.

Consider line breaks as {ENTER}

Sends the Enter key for each line break of the macro. Shown with Default.

Macro password

A password that the macro can type. Shown with Default.

Delay time {Delay}

Milliseconds that the {DELAY} instruction waits (300 to 60000). Shown with Default.

Command

Milliseconds to wait between two commands of the macro (10 to 60000). Shown with Default.

Before closing

SETTING
DESCRIPTION

Confirm on disconnect

Asks the user to confirm before closing the session: Default (the application setting, shown in parentheses), Yes or No.

The event follows this setting.

After closing

The Port knocks group follows the event, with the same settings as in the Before opening tab, except that the interval is set in seconds in Interval (secs).

Last updated

Was this helpful?