Page 1 of 1
[SOLVED] Variables in arguments for external tools
Published: Dec 1, 2022 - 4:47 PM
by bjulou
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.
For your information: WAPT Enterprise 2.2.3.12463
Re: Variables in arguments for external tools
Published: January 5, 2023 - 10:54 PM
by julien.guyonnet
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}}"
Re: Variables in arguments for external tools
Published: January 13, 2023 - 4:56 PM
by julien.guyonnet
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 }}
Re: Variables in arguments for external tools
Published: February 7, 2023 - 2:36 PM
by bjulou
Thanks so much, great idea, I'll try that
