[RESOLVED] BIOS List

Share your SQL query ideas for reporting in the WAPT Enterprise console 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
User avatar
Mathieu
Messages: 91
Registration: August 18, 2016 - 10:24

October 10, 2019 - 4:58 PM

- WAPT 1.7.4.6143 Enterprise
- Debian 9.9

Hello,

We created a query to display BIOS versions by PC model,

but we're having a problem. I saw a computer with BIOS version A00. I checked on that computer, and the BIOS version is A23. No matter how many times I refresh the information, the BIOS version doesn't change in WAPT.

How does the hardware inventory scan work in WAPT? What is the scan frequency based on?

I checked in GLPI, and the BIOS is correctly reported as A23.

So, my query could be full of errors if the information is incorrect.

In my query, I'm using the SMBIOS property. Regarding

the modification on 11/10,
I saw the "Refresh computer inventory" button, so the information is correctly displayed.
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 12, 2019 - 11:33

Hello Mathieu

By default, the wmi inventory is actually done only once.

We don't do it every time because doing a WMI inventory is very computationally expensive for the agent.

So indeed, if there are changes on the machine and you want to update the inventory, you have to do a new register.

You can, if you want, create a package that performs an audit like this:

Code: Select all

def audit():
    WAPT.register_computer()
And you define how often you want to force the inventory update using audit_schedule in the control file
User avatar
Mathieu
Messages: 91
Registration: August 18, 2016 - 10:24

October 14, 2019 - 11:49

THANKS

It works perfectly.

For those who might be interested, it's not perfect, but it works

Code: Select all

select
count(distinct computer_name) as NbMachines,
productname as MODELE,
wmi->'Win32_BIOS'->>'SMBIOSBIOSVersion' as Bios_Version ,
string_agg(distinct lower(computer_name),' ') as Computer_name
from hosts
group by productname, wmi->'Win32_BIOS'->>'SMBIOSBIOSVersion'
          
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
Locked