WAPT Test - Basic Features Questions

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
ADT
Messages: 6
Registration: Oct 19, 2018 - 03:39

October 19, 2018 - 03:56

Good morning,

We are currently testing the product in our park.
We exclusively used the online documentation for the deployment and use of the tool. After two days, we encountered some roadblocks, questions, and needs:

1- I can't find any documentation that details the statuses in the console:
  • RUNNING: When enrolling a new agent, the status is OK. Then, I want to push a package to them. After clicking "Start Installations," the remote console displays a popup indicating "1 error." The status consistently changes to RUNNING, with no trace of what is currently being executed in the running tasks
  • TO-UPGRADE: I regularly see a package name in my "to-upgrade" list that matches the machine's UUID. What does this correspond to?
2- We tested the deployment of a higher version of Adobe (WAPT package created):
  • It worked on 1 device
  • On another machine of the same type, I get confirmation that the same package installation was successful, but the old one is still present (even after rebooting). This is confirmed by the WAPT software inventory and also directly on the machine: do you think this is a bug?
3- How can we remove software (which is visible in the inventory) that was not deployed by WAPT? I tried the code indicated here: viewtopic.php?t=835 but I get an error "WAPT" is not defined.
This is clearly a feature we would need to use extensively at the beginning of a production deployment.

Thank you for any help you can provide :)
ADT
Messages: 6
Registration: Oct 19, 2018 - 03:39

October 19, 2018 - 10:53 PM

Question 3 is solved with the following code:

Code: Select all

def install():
if installed_software('putty')
    for uninstall in installed_software:
        run(WAPT.uninstall_cmd(uninstall['key'])
However, is there a "cleaner" solution because this one is based on the keyword "putty", so it would potentially remove software that contains the same keyword?
ADT
Messages: 6
Registration: Oct 19, 2018 - 03:39

October 20, 2018 - 2:50 AM

To try and answer my questions 1 and 2.

I enabled debug information to understand why neither Checking for Updates nor Adding Packages was working on all my clients, switching them to RUNNING or TO-UPGRADE mode.

I noticed the following error:

Code: Select all

DEBUG:root:ERROR for c:\private\privatekey.pem: Unable de load key c:\private\privatekey.pem
Whereas just below:

Code: Select all

DEBUG:root:SUCCESS key c:\private\privatekey.pem match certificate c:\private\privatekey.crt
When using Tools Preferences, the associated key verification is: OK.

So I'm stuck again.
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 25, 2018 - 7:15 PM

Hello ADT,
ADT wrote: Oct 19, 2018 - 10:53 PM Question 3 is solved with the following code:

Code: Select all

def install():
if installed_software('putty')
    for uninstall in installed_software:
        run(WAPT.uninstall_cmd(uninstall['key'])
However, is there a "cleaner" solution because this one is based on the keyword "putty", so it would potentially remove software that contains the same keyword?
You can retrieve the uninstallation key from the WAPT console in the "software inventory" tab when you select a machine. Copy the key in place of "uninstall['key']".

The PuTTY example is interesting. Uninstalling PuTTY isn't always silent, as it displays a popup asking if you want to remove the known_hosts entries from the registry before proceeding. For this software, it's preferable to install the WAPT package and then uninstall PuTTY. The WAPT uninstaller handles this detail.

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
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 25, 2018 - 7:30 PM

Good evening ADT,
ADT wrote: Oct 19, 2018 - 03:56 We are currently testing the product in our park.
We exclusively used the online documentation for the deployment and use of the tool. After two days, we encountered some roadblocks, questions, and needs:

1- I can't find any documentation that details the statuses in the console:
  • RUNNING: When enrolling a new agent, the status is OK. Then, I want to push a package to them. After clicking "Start Installations," the remote console displays a popup indicating "1 error." The status consistently changes to RUNNING, with no trace of what is currently being executed in the running tasks
  • TO-UPGRADE: I regularly see a package name in my "to-upgrade" list that matches the machine's UUID. What does this correspond to?
WAPT's operating model is agent-centric. The statuses displayed in the console are the last statuses returned by the workstations. In this case, it must have sent the status "RUNNING" when it received the instruction to update. It should have subsequently sent an OK, WARNING, or ERROR status. More details are needed to understand the specific scenario. It might be beneficial for the server to force the status to UNKNOWN if the workstation hasn't returned a status update after a certain period (for example, a laptop that has been disconnected from the network).

ADT wrote: Oct 19, 2018 - 03:56 2- We tested the deployment of a higher version of Adobe (WAPT package created):
  • It worked on 1 device
  • On another machine of the same type, I get confirmation that the same package installation was successful, but the old one is still present (even after rebooting). This is confirmed by the WAPT software inventory and also directly on the machine: do you think this is a bug?
The package returns an OK status if the Python script executes successfully from start to finish. If a problem is encountered, a `raise` operation can be performed on the package, which will throw an error. In version 1.5, the WAPT agent checks that the uninstallation key is present in the registry; otherwise, it throws an error.

Package creation is a rather empirical science. There's so much diversity in installer behavior that you need a programming language (Python), libraries (setuphelpers, etc.), and an efficient package development environment (PyScripter) to be truly effective. That's what makes WAPT! different and powerful

Sincerely,

Denis

PS: It's best to open a separate topic for each question in the forum; it makes it easier to follow!
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
Locked