You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-15 12:06:37

supertramp4
Member
Registered: 2022-06-13
Posts: 28

GLPI Inventory - Collect hard disk "SMART" data

Hi, Is it possible for GLPI Inventory to report the hard disk status for each device a computer holds using WMI  in the tasks -> computer information, and is an example format available to show the formatting of the following fields :

Name:
Monikor:
Class:
Properties:

Thanks

Offline

#2 2022-06-15 13:13:19

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI Inventory - Collect hard disk "SMART" data

Hi supertramp4,

do you still have a "wmic" command example or even a PS or VBS script to catch the "SMART" data of disks via WMI ?


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-06-15 14:34:33

supertramp4
Member
Registered: 2022-06-13
Posts: 28

Re: GLPI Inventory - Collect hard disk "SMART" data

Hi gbougard,
from an elevated command prompt, running "wmic diskdrive get DeviceID,status" will report the Status ( i think of either "OK", "bad","unknown,", "caution", but im not 100% on these

you might want to just run "wmic diskdrive" to get the list of available elements to match what GLPI is already able to report

C:\Windows\system32>wmic diskdrive get DeviceID,status
DeviceID            Status
\\.\PHYSICALDRIVE1  OK
\\.\PHYSICALDRIVE0  OK
\\.\PHYSICALDRIVE3  OK
\\.\PHYSICALDRIVE2  OK

Offline

Board footer

Powered by FluxBB