Skip to content

About

utilities for working with opsi

Topics

Resources

Stars

6 stars

Watchers

4 watching

Forks

Repository files navigation

opsi-utils

Utilities for working with opsi.

opsi-wakeup-clients

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.

Behavior changes from the old script

  • The old default update of the opsi-auto-update product's rebootflag property is no longer performed. The wrapper warns about this unless --no-auto-update is specified; that flag is otherwise accepted and silently ignored.
  • --event (-E) and --reboot (-X) are rejected. Use opsi-cli client-action trigger-event or opsi-cli client-action reboot directly.
  • --ping-timeout, --connect-timeout, --event-timeout, and --reboot-timeout are accepted for compatibility but silently ignored.
  • Supplying both --depot-id and --host-group-id is 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.

About

utilities for working with opsi

Topics

Resources

Stars

6 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages