[SOLVED] Variables in arguments for external tools

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
bjulou
Messages: 2
Registration: December 1, 2022 - 4:32 PM

December 1, 2022 - 4:47 PM

Hello everyone,

I'm having some fun with the WAPT console and I'd like to interface WAPT and AnyDesk within the console.

I've created a package that allows me to retrieve the AnyDesk ID, and now I'd like to be able to pass it as an argument in the "External Tools" section. This way, I can initiate a remote connection request from WAPT to the client machine.

Do you have any ideas on how to do this?

Thanks. :D

For your information: WAPT Enterprise 2.2.3.12463
julien.guyonnet
Messages: 12
Registration: Apr 21, 2021 - 10:38

January 5, 2023 - 10:54 PM

Good morning,

I don't know where you store your Anydesk_ID, and therefore how to find it

I added 1 link to GLPI via external tools and as the GLPI_10 agent retrieves 'remote management' tools (Anydesk, TeamViewer, ...)
This way the GLPI page is already open to document the interventions.

Code: Select all

Name = GLPI computer
Exe     = cmd
Arg     = /c start "" "https://glpi.domain.local.com/front/computer.php?criteria%5B0%5D%5Blink%5D=AND&criteria%5B0%5D%5Bfield%5D=1&itemtype=Computer&criteria%5B0%5D%5Bsearchtype%5D=contains&criteria%5B0%5D%5Bvalue%5D={{computer_name}}"

Name = GLPI user
Exe     = cmd
Arg     = /c start "" "https://frvnimapp13.intra.askle.com/front/user.php?is_deleted=0&as_map=0&browse=0&itemtype=User&criteria%5B0%5D%5Blink%5D=AND&criteria%5B0%5D%5Bfield%5D=view&criteria%5B0%5D%5Bsearchtype%5D=contains&criteria%5B0%5D%5Bvalue%5D={{connected_users.0}}"
julien.guyonnet
Messages: 12
Registration: Apr 21, 2021 - 10:38

January 13, 2023 - 4:56 PM

An idea...

Create an environment variable on each machine using PowerShell

Code: Select all

[Environnement] :: SetEnvironmentVariable ('MonAnydeskID', '123465789', 'Machine')
Next, retrieve the information from external tools

Code: Select all

{{ host_info.environ.MonAnydeskID }}
bjulou
Messages: 2
Registration: December 1, 2022 - 4:32 PM

February 7, 2023 - 2:36 PM

Thanks so much, great idea, I'll try that :)
Locked