Page 1 of 1

[RESOLVED] Post Uptime

Published: November 10, 2023 - 12:49 PM
by Marceld
Hello,

I'm creating this topic for two minor everyday production issues:

- Is it possible to integrate an uptime section into the general section for workstations? Perhaps a column in the inventory console?
This would be particularly useful as it would significantly reduce the need to deduce when PCs were last restarted.

- It's not possible to block the installation of certain applications selected by default:

For example, I have a list of packages that install on all PCs in the domain (including TightVNC Server), but for the admin OU, I want TightVNC Viewer. Consequently, the admin PCs are always getting errors related to this.

Thank you in advance.
Have a good day.

Re: Post Uptime

Published: November 10, 2023 - 1:19 PM
by sfonteneau
Marceld wrote: Nov 10, 2023 - 12:49 PM - Is it possible to integrate an uptime section into the general section of workstations? Perhaps a column in the inventory console?
In the hardware inventory you have "last_boot_uptime"

This corresponds to the date of the machine's last startup; you can drag the value into the columns to get it for all machines
Marceld wrote: Nov 10, 2023 - 12:49 PM - It's not possible to block the installation of certain applications selected by default:

For example, I have a list of packages that install on all PCs in the domain (including, for example, TightVNC Server), but for the admin OU, I want TightVNC Viewer. As a result, the admin PCs are always getting errors on this point.
This specific case is indeed not being handled intentionally to avoid falling into an overly complex mechanism.

You can use a metapackage if you wish:

Code: Select all

if 'adm' in hostname: 
    WAPT.install('Tight-VNC-server')
else:
    WAPT.install('tis-Tight-VNC-Viewer')

Re: Post Uptime

Published: November 13, 2023 - 10:46 AM
by Marceld
Hello,

thank you very much for this information. I didn't know you could create new columns this way.

Have a good day.