Hi Dojo,
Does anyone know if it's possible to fetch the MAC Address, from the PC which is connecting to Cube, inside of an automation script?
We would like to be able to showcase specific information depending on the PC which is used to trigger an Automation Script. To show devices close to them.
Kind regards,
Hi Ive,
Many thanks for your comment. I can rework my design to get it triggered from a Visual, and then use the [fistMAC] or [thisMAC] placehoder.
Hi Stacey,
It is possible to do so. Only condition is that the script is launched in context of Visual Overview.
Reproduction steps:
1. Create a Visual Overview with 2 card/page variables.
These are filled in with creates placeholders "ThisMac" and "FirstMac"
Sources:
- Configuring the shape data field
- Placeholders for variables in shape data values
2. Adjust your automation script so it takes the session variables as input arguments from Visual Overview.
Example: "Script:MyScript||MyValue=[var:MyVar]|||NoConfirmation"
3. ?????
4. Profit
I do hope this will work and helps you further.
with Kind regards,
Hi Stacey,
As Laurens mentioned, I do not believe it is possible to do it directly from within the script but if the script is launched from a Visio, I think it should be possible to use the [firstmac] option.
This value would then be passed into the script via an input parameter.
Hi,
I don't think that this is possible.
An automation script is running on server side, while cube is on client side.
For the MAC address to be known, Cube would need access to the network card (which one when there are multiple?) and read that info out to then pass it when launching the automation script, which is not possible at this moment as far as I know.
Regards,
Hi Stacey,
As far as I know, it’s not possible to get the client’s MAC address in an automation script (unless it’s triggered from a visual overview).
However, you can extract the client hostname. Would that help for what you try to achieve?