Wapt console does not return the correct property for the BIOS

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
lfkl
Messages: 23
Registration: Apr 11, 2019 - 05:51

December 6, 2022 - 9:23 AM

Good morning,

We use the following BIOS deployment package:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    print(f"installing {control.package}")
    run_notfatal(f'"{glob.glob("*.exe")[0]}" /p=monpasswordbios/s /r')  # le /r est nécessaire seulement pour restaurer un bios plus ancien
Created by Olivier Laplanche and Pierre Cosson. Thanks to them, it works very well!

The problem is as follows: After a successful installation, the WAPT console still returns the value of the old BIOS.
Therefore, it's impossible to know if our BIOS is up to date on the machines.
We use the property:
dmi/BIOS_Information/Version

All other BIOS-related properties also revert to the previous version.
However, on the machines in question, when you go into the BIOS, it is indeed the more recent version installed by the Wapt package that is on the machine...

No matter how many times we refresh the console or restart the machine, nothing works.

How can I make the console return the version actually installed on the machine?

Thank you for your help.

Wapt Enterprise Server: 2.2.3.12463
Debian 11
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 6, 2022 - 11:11

by making a

Code: Select all

wapt-get register 
Is that bringing up the correct information?

If so, in the package one would need to be made

Code: Select all

WAPT.register_computer()
Indeed, we don't force an inventory reload every time to avoid overloading the machine
lfkl
Messages: 23
Registration: Apr 11, 2019 - 05:51

December 7, 2022 - 1:00 AM

Hello Simon,

Thank you, that was it.
wapt-get register
It successfully updates the correct BIOS version on the console.

However, I question the usefulness of inserting
WAPT.register_computer()
in the package in question because if the package runs correctly when stopped, the BIOS update only starts on the next startup of the machine, so the BIOS inventory that will be brought back remains the old one, right?

After that, I can always manually use the "refresh workstation inventory" function from the console, which leads me to the following question:
Apart from this command, how frequently are inventory updates made to the console and/or what triggers such an update?
Locked