WAPT on a non-persistent Citrix server

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
Answer
jcdemarque
Messages: 24
Registration: February 21, 2023 - 3:12 PM

October 10, 2024 - 4:08 PM

Hello,

We deployed the WAPT agent on our Citrix "master" server running Windows Server 2019, which is then cloned and distributed across 12 Citrix VDA servers.

The WAPT packages update correctly using a computer startup script that runs `wapt-get update` and `upgrade`, but the WAPT agents all appear offline and don't show up correctly in the console, preventing any interaction from the console.

I tried using `wapt reset-uuid` and then `generate-uuid` in my computer startup script, but there still seem to be some issues with the VDA display.

What would be the best way to ensure the agent shows up online in the console with the correct server name at each server startup?

I've seen packages like `WAPT-Generate-Random-UUID-if-Needed` and `WAPT-RESET-UUID` that seem to do the same thing; have I missed one?

Thank you for your feedback, and have a good day.
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 11, 2024 - 09:33

Hello Jean-Charles,

Which version of WAPT?

Could you try doing it via the command line (without a script)?

The following command should create a random uuid stored in the waptdb.sqlite database.

Code: Select all

wapt-get generate-uuid
You can verify that the value has been changed correctly with the command (which will return the new random uuid)

Code: Select all

wapt-get getparam uuid 
You can also check the VM's UUID with the following command (to see if the clones are too "perfect"):

Code: Select all

wapt-get biosinfo
Or, more simply, to retrieve all the UUIDs that WAPT thinks it has (which may be incorrect if there is a bug)

Code: Select all

c:\Program Files (x86)\wapt>wapt-get get-params "*uuid*"
{
        "hardware_uuid": "b91ca9cc-1ec8-11b2-a85c-fb1f40f73e05",
        "random_uuid": "RND-59254400-E310-4218-8EBA-5E7C38AFD25A",
        "server_uuid": "7c54647e-1b54-11ea-bcbe-cae466b691e5",
        "uuid": "b91ca9cc-1ec8-11b2-a85c-fb1f40f73e05"
}

Exit code: 0
When you write your script, I imagine it's non-interactive. Could you try using the following command to prevent the registration that follows `generate-uuid` (the machine tries to re-register immediately afterward with its new uuid) from causing problems? The `wapt-server-user` argument is required but won't be used.

Code: Select all

wapt-get generate-uuid --not-interactive --wapt-server-user=admin
Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
jcdemarque
Messages: 24
Registration: February 21, 2023 - 3:12 PM

October 11, 2024 - 2:52 PM

Thank you for your reply.
The version is the latest, 2.5.5.15697, for both the server and agent. I also added the WAPT-UPGRADE package to the Citrix servers to be sure.

The command `wapt-get getparam uuid` returns a list of available options, but it's not recognized by wapt-get. I tried using the command `wapt-get get-params "uuid"` instead.

I do have different BIOSINFO values ​​between the VMs. The Citrix deployment uses a VMware clone and then individualizes the VMs.

The hardware_uuid and uuid values ​​are identical between the Citrix servers.

There doesn't appear to be a RandomUUID in my configurations.

Here is my amended startup script:
`wapt-get generate-uuid --not-interactive --wapt-server-user=admin > c:\temp\wapt.log`
`wapt-get register >> c:\temp\wapt.log`
`wapt-get update >> c:\temp\wapt.log`
`wapt-get upgrade >> c:\temp\wapt.log`

Would it be more useful to switch to the computer name rather than the BIOS UUID?

The UUID returned by the `biosinfo` command is different from the one stored in `wapt-get get-params "*uuid*"`.

Should I "clean up" the WAPT configuration before cloning the VMs? Have

a good day,
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 11, 2024 - 3:14 PM

Hello Jean-Charles,
jcdemarque wrote: Oct 11, 2024 - 2:52 PM
Would it be more useful to switch to the computer name rather than the BIOS UUID?
there is use_fqdn_as_uuid , cf [1] :-)

Sincerely,

Denis

[1] https://www.wapt.fr/en/doc/wapt-advance ... l-settings
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Answer