[RESOLVED] Reporting script
Published: Dec 21, 2023 - 11:05 AM
Hello everyone,
Server: WAPT Enterprise 2.4.0.14080 on Debian
Consoles: Windows 10 & 11
Park: Windows
I have a script that allows for free space per computer.
I wanted to know if it was possible to have a result in % in this function and especially with the ranking of machines by OR.
Thank you
Server: WAPT Enterprise 2.4.0.14080 on Debian
Consoles: Windows 10 & 11
Park: Windows
I have a script that allows for free space per computer.
I wanted to know if it was possible to have a result in % in this function and especially with the ranking of machines by OR.
Code: Select all
select
round(((host_metrics->'local_drives'->'C'->'FreeSpace')::float / 1073741824)::numeric,2)::float as Free_Gb,
host_metrics->'last_logged_on_user' as User,
os_name,
os_version ,
host_info->'computer_fqdn' as fqdn
from hosts
order by computer_name