Command Line Documentation

epicsarchiver

Command line tool for interacting with the archiver.

Usage

epicsarchiver [OPTIONS] COMMAND [ARGS]...

Options

--version

Show the version and exit.

-h, --hostname <hostname>

Archiver Appliance hostname or IP

Environment variables

EPICSARCHIVER_HOSTNAME

Provide a default for --hostname

export

Export PV data to stdout in a machine-readable format.

ARGUMENT pv PV name to export data for.

Example usage:

arch-retrieval --hostname archiver.example.com export --format json MY_PV
arch-retrieval --hostname archiver.example.com export --format pb MY_PV > out.pb
Raises:

UsageError: When a polars-backed format is requested without the [polars] extra.

Usage

epicsarchiver export [OPTIONS] PV

Options

--debug

Turn on debug logging

Default:

False

-s, --start <start>

Start time of query [default: 30 seconds ago]

-e, --end <end>

End time of query, [default: now]

-p, --processor-name <processor_name>

PreProcessor to use.

Options:

FIRSTSAMPLE | LASTSAMPLE | FIRSTFILL | LASTFILL | MEAN | MIN | MAX | COUNT | NCOUNT | NTH | MEDIAN | STD | JITTER | IGNOREFLYERS | FLYERS | VARIANCE | POPVARIANCE | KURTOSIS | SKEWNESS | LINEAR | LOESS | OPTIMIZED | OPTIMLASTSAMPLE | CAPLOTBINNING | DEADBAND | ERRORBAR

-b, --bin-size <bin_size>

Bin size (mostly in seconds) for preprocessor.

--format <output_format>

Output format, written to stdout.

Default:

'JSON'

Options:

JSON | CSV | ARROW | PARQUET | PB

Arguments

PV

Required argument

get

Print out data from an archiver cluster as a table.

ARGUMENT pvs What pvs to get data of.

Example usage:

arch-retrieval --hostname archiver-01.example.com get PV_NAME1 PV_NAME2

Usage

epicsarchiver get [OPTIONS] PVS...

Options

--debug

Turn on debug logging

Default:

False

-s, --start <start>

Start time of query [default: 30 seconds ago]

-e, --end <end>

End time of query, [default: now]

-p, --processor-name <processor_name>

PreProcessor to use

Options:

FIRSTSAMPLE | LASTSAMPLE | FIRSTFILL | LASTFILL | MEAN | MIN | MAX | COUNT | NCOUNT | NTH | MEDIAN | STD | JITTER | IGNOREFLYERS | FLYERS | VARIANCE | POPVARIANCE | KURTOSIS | SKEWNESS | LINEAR | LOESS | OPTIMIZED | OPTIMLASTSAMPLE | CAPLOTBINNING | DEADBAND | ERRORBAR

-b, --bin-size <bin_size>

Bin size (mostly in seconds) for preprocessor.

Arguments

PVS

Required argument(s)

read-pb

Display events from a local PB file.

ARGUMENT file Path to the .pb file to read.

Example usage:

arch-retrieval read-pb MY_PV_2026.pb

Usage

epicsarchiver read-pb [OPTIONS] FILE

Options

--debug

Turn on debug logging

Arguments

FILE

Required argument