setdevice
Sets device parameter.
Synopsis
setdevice [storage=<storage>] [device=<device>] [autoselect=<yes|no>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Changes the Auto Select setting of a device in the Storage Daemon at run time. With autoselect=no the Storage Daemon no longer picks the device for jobs, for example during maintenance; with autoselect=yes it is available again. The state lasts until the Storage Daemon restarts; configuration and catalog are not touched.
storage=, device= and autoselect= are all required, in any order, and the keywords must be lower case; no other arguments are allowed. A console restricted to certain storages may only change their devices.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | Storage name. | ||
device= | string | Device name. | |||
autoselect= | bool | yes, no | Autoselect flag. |
Examples
Keep jobs away from Drive-1 during maintenance:
setdevice storage=Tape device=Drive-1 autoselect=no
Make the drive available again:
setdevice storage=Tape device=Drive-1 autoselect=yes