.status

Bareos

Report status.

Synopsis

.status dir [current | last | header | scheduled | running | terminated]
.status storage=<storage> [header | waitreservation | devices | volumes | spooling | running | terminated]
.status client=<client> [header | terminated | running]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Returns one section of the status display of the Director, a Storage Daemon or a client, for example only the header or only the running jobs. The WebUI and monitoring scripts use it so they need not parse the full output of status, and in API mode 2 .status dir returns structured JSON. For storage= and client= the Director connects to the daemon.

A target must follow: dir, storage=<name> or client=<name>; without one the reply is “1900 Bad .status command, missing arguments.” Unknown targets and a missing or unknown section under dir give “1900 Bad .status command, wrong argument.”

Subcommands

.status dir

Director.

Aliases: director

Shows one section of the Director status: header (version, start time and job counters), scheduled, running or terminated jobs. current and last only reply with the short answer “1000 OK .status”. A section is required.

In API mode 2 the sections are JSON: result.header with director, version, release_date, os, binary_info, daemon_started, jobs_run, jobs_running and config_warnings, and result.scheduled, result.running and result.terminated as arrays.

.status dir [current | last | header | scheduled | running | terminated]
ArgumentTypeValues / sourceDefaultFlagsDescription
currentkeywordone of: partPart of the status.
lastkeywordone of: partPart of the status.
headerkeywordone of: partPart of the status.
scheduledkeywordone of: partPart of the status.
runningkeywordone of: partPart of the status.
terminatedkeywordone of: partPart of the status.

Version, start time and job counters of the Director:

.status dir header

The jobs scheduled for the coming days:

.status dir scheduled

.status storage

Storage Daemon.

Shows the status of a Storage Daemon, which the Director contacts for this. Without a section the full status output is printed; header, waitreservation, devices, volumes, spooling, running and terminated select one part. In API mode 2 there is no JSON for this target and the result is empty.

.status storage=<storage> [header | waitreservation | devices | volumes | spooling | running | terminated]
ArgumentTypeValues / sourceDefaultFlagsDescription
storage=resourcefrom .storagesStorage name.
headerkeywordone of: partPart of the status.
waitreservationkeywordone of: partPart of the status.
deviceskeywordone of: partPart of the status.
volumeskeywordone of: partPart of the status.
spoolingkeywordone of: partPart of the status.
runningkeywordone of: partPart of the status.
terminatedkeywordone of: partPart of the status.

The header of the storage daemon behind File:

.status storage=File header

The full status of the storage daemon:

.status storage=File

.status client

File Daemon.

Shows the status of a File Daemon, which the Director contacts for this; header, running or terminated select the section. In API mode 2 there is no JSON for this target and the result is empty. If the client cannot be reached, the same connection messages as with status appear.

.status client=<client> [header | terminated | running]
ArgumentTypeValues / sourceDefaultFlagsDescription
client=resourcefrom .clientsClient name.
headerkeywordone of: partPart of the status.
terminatedkeywordone of: partPart of the status.
runningkeywordone of: partPart of the status.

Version and start time of the client bareos-fd:

.status client=bareos-fd header

The jobs the client finished last:

.status client=bareos-fd terminated

Examples

The jobs currently running on the Director:

.status dir running

The devices of the storage File:

.status storage=File devices

See also

Command reference