Wayk Now command line parameters?

avatar

Hello,

I was wondering, whether the actual Wayk Now client has command line parameters which can be called to launch the application?
Example:

  • A parameter to start a Wayk Now session to an IP or ID, with additional optional parameters for authentication
  • A parameter to start Wayk Now and directly open the bookmarks page
  • If the application is already running, it should simply perform the specific task.


Kind regards,
Stephan Schwarz

Security Administrator - Leiden University Medical Center

All Comments (3)

avatar

Hi Stephan

Wayk Now does accept command line parameters as you suggest. Since the client is "single instance", invoking a new instance will direct the command to the already running instance.

The easiest way to open a connection is to simulate opening a Wayk link. The link is in the form "wayk://target-id-or-address" and should be passed as the first argument. For example:

wayknow.exe wayk://123456
wayknow.exe wayk://192.168.1.67

For more control, you can use the "auto" mode. Pass 'auto' and `target-id` to open a new connection. The parameters `target-user`, `target-pass` and `authentication-type` (srp, srd, or pfp) are used to specify authentication. e.g.

wayknow.exe -auto -target-id 223344 -target-user richard -target-pass Passw0rd! -authentication-type srd

The "auto" mode will not automatically accept certificate prompts, and in recent versions of Wayk Now, credentials must be provided.

It should be noted that the command line interface is basically undocumented, however it is fairly stable. If you discover issues or have questions please let us know by posting back here. There are a number of command line parameters so if you are trying to achieve a specific goal, you can let us know and we may be able to provide further advice.

We also have an experimental automation API that exposes a REST endpoint and allows much finer-grained control of the client. We will consider enabling that in a future release.

We had considered in the past exposing a parameter to allow launching a bookmark from the command line. I will add a work item for opening the bookmarks page, although that may be something we prefer to offer via the REST API. Please note that in Wayk Now 2020.1.4, there is a keyboard shortcut to open the bookmarks window (on Windows, it's [Ctrl]+[I] from the main window, [Ctrl]+[Alt]+[I] while inside a session).

I hope that helps but please don't hesitate to reply with further questions or feedback

Thanks and kind regards,

Richard Markievicz

avatar

Thank you Richard, this was exactly what I was looking for!

Kind regards,
Stephan Schwarz

Security Administrator - Leiden University Medical Center

avatar

Hi Stephan

Good news! Please don't hesitate to post back with further questions or feedback.

Thanks and kind regards,

Richard Markievicz