User Tools

Site Tools


Table of Contents


This Script can be used as a cronjob to make all clients do a hwaudit and swaudit on a regular basis. The script does only work with MySQL-Backend (probably also works when using free variant with only inventory in DB!)

Hint: In my variant I am using an event “request_graceful_reboot” which issues a popup requesting the user to reboot. This event has to be defined on every client. You could also remove that singe RPC-Call below.


./opsi-audit-cron.php [-d] [-t]

  • -d Enables Debug-Output for diagnostic
  • -t Enables Trace-Output (e.g. returned Data from RPC-Call) - Does not imply Debug!

For Cronjobs you should use some output redirection. For example like that:

./opsi-audit-cron.php » /var/log/opsi/opsi-audit-cron.log


userspace/opsi-audit-cron.txt · Last modified: 2021/08/23 08:37 (external edit)