Utilities for working with opsi.
opsi-wakeup-clients is a compatibility wrapper around opsi-cli client-action wakeup. It requires opsi-cli to be available on PATH.
Select clients with one of:
opsi-wakeup-clients --host-group-id workstation-group
opsi-wakeup-clients --depot-id depot.example.test
opsi-wakeup-clients --host-file clients.txt--host-file (-F) accepts one client ID per line; blank lines and lines beginning with # are ignored. IDs are passed to opsi-cli, which reports an error for unknown clients. An empty host file results in no command being run.
The wrapper translates --host-group-id (-H) to --client-groups and --depot-id (-D) to --clients-from-depots. opsi-cli includes clients from nested groups, unlike the old script, which selected only clients assigned directly to the specified group. Do not combine --depot-id and --host-group-id; the wrapper exits with an error. If a host file is also given, the depot selector takes precedence over the group selector, and the group selector takes precedence over the file.
--product-group-id (-P) and --shutdownwanted (-s) set the corresponding products to setup with opsi-cli client-action set-action-request before waking clients. --max-concurrent is passed to opsi-cli. --wol-timeout is passed as --wakeup-timeout: it waits for messagebus connection, not for the old script's opsiclientd HTTPS connection.
- The old default update of the
opsi-auto-updateproduct'srebootflagproperty is no longer performed. The wrapper warns about this unless--no-auto-updateis specified; that flag is otherwise accepted and silently ignored. --event(-E) and--reboot(-X) are rejected. Useopsi-cli client-action trigger-eventoropsi-cli client-action rebootdirectly.--ping-timeout,--connect-timeout,--event-timeout, and--reboot-timeoutare accepted for compatibility but silently ignored.- Supplying both
--depot-idand--host-group-idis an error. Use only one selector. - Host groups include nested subgroup clients, and unknown IDs in a host file cause an opsi-cli error rather than being skipped with a warning.
The legacy logging options are retained and translated to opsi-cli logging flags. For example, -vv increases console verbosity, while --log-file and --log-level configure file logging.