Page 1 of 1

[RESOLVED] External tools and variables

Published: March 3, 2025 - 4:27 PM
by Olivier Schmitt
Hello,

I would like to know if it's possible to use the {mac} variable in the local WAPT console configuration for arguments from external tools?
This would allow me to use the MAC address in the same way I can use {ip} for the machine's IP address.

Thank you in advance.

Re: External tools and variables

Published: March 3, 2025 - 5:22 PM
by htouvet
Actually, it's not {ip} but double mustaches {{ ip }}
Everything in the columns (between parentheses) can be used like this

The easiest way is to go to the "hardware inventory" tab, in the property tree, find the desired property and in the right-click context menu, choose "copy property path"
Clipboard_03-03-2025_02.jpg
Clipboard_03-03-2025_02.jpg (23.65 KB) Viewed 3892 times

Code: Select all

{{ host_networking.mac.0 }}
Then you can insert this into your external tools
Clipboard_03-03-2025_03.jpg
Clipboard_03-03-2025_03.jpg (13.4 KB) Viewed 3892 times

Re: External tools and variables

Published: March 5, 2025 - 11:27
by Olivier Schmitt
Thank you, it works perfectly!