archiver-get examples

Here are some examples that show what the program can do.

Search for a PV with a regular expression

$ archiver-get find 'UE112ID7R:(|S)BasePmGap.*'
UE112ID7R:BasePmGap.A
UE112ID7R:BasePmGap.B
UE112ID7R:SBasePmGap.A
UE112ID7R:SBasePmGap.B
UE112ID7R:SBasePmGap.C
UE112ID7R:SBasePmGap.D
UE112ID7R:SBasePmGap.E
UE112ID7R:SBasePmGap.F

Check if PVs exist

$ archiver-get check UE112ID7R:Bas
ePmGap.A UE112ID7R:BasePmGap.B UE112ID7R:BasePmGap.C
UE112ID7R:BasePmGap.A: OK
UE112ID7R:BasePmGap.B: OK
UE112ID7R:BasePmGap.C: NOT FOUND

Get values for a given range in camonitor format

$ date
Fri Dec  4 07:32:51 PM CET 2026
$ archiver-get get UE112ID7R:BaseP
mGap.A UE112ID7R:BasePmGap.B  --range 3h
UE112ID7R:BasePmGap.A          2026-12-04 16:43:22.568116 81.240
UE112ID7R:BasePmGap.B          2026-12-04 16:43:22.568116 81.240
UE112ID7R:BasePmGap.A          2026-12-04 16:47:42.566839 81.240
UE112ID7R:BasePmGap.B          2026-12-04 16:47:42.566839 81.240
UE112ID7R:BasePmGap.A          2026-12-04 16:56:38.566436 81.240
UE112ID7R:BasePmGap.A          2026-12-04 17:09:12.569010 81.240
UE112ID7R:BasePmGap.A          2026-12-04 17:09:41.566729 81.240
UE112ID7R:BasePmGap.B          2026-12-04 17:09:41.566729 81.240
UE112ID7R:BasePmGap.A          2026-12-04 17:22:24.569427 81.240
UE112ID7R:BasePmGap.B          2026-12-04 17:22:24.569427 81.240
UE112ID7R:BasePmGap.A          2026-12-04 17:26:43.567943 81.240
UE112ID7R:BasePmGap.A          2026-12-04 17:47:59.570173 81.240
UE112ID7R:BasePmGap.B          2026-12-04 17:47:59.570173 81.240

Get metadata

Note: Property ‘dataStores’ is shortened here, it is actually a very long string.

$ archiver-get meta UE112ID7R:BasePmGap.A
UE112ID7R:BasePmGap.A:
  pvName                 : UE112ID7R:BasePmGap.A
  DBRType                : DBR_SCALAR_DOUBLE
  DESC                   : basepm.pyx
  DRVH                   : 1.0E300
  DRVL                   : -1.0E300
  EGU                    :
  HIGH                   : NaN
  HIHI                   : NaN
  HOPR                   : 0.0
  LOLO                   : NaN
  LOPR                   : 0.0
  LOW                    : NaN
  NELM                   : 1
  PREC                   : 0.0
  applianceIdentity      : archappl1
  archiveFields          : []
  chunkKey               : UE112ID7R/BasePmGap.A:
  computedBytesPerEvent  : 20
  computedEventRate      : 0.016666668
  computedStorageRate    : 0.33333334
  creationTime           : 2020-03-28T17:53:59.369Z
  dataStores             : ['pb://localhost?n..... ']
  elementCount           : 1
  extraFields            : {'NAME': 'UE112ID7R:BasePmGap.A'}
  hasReducedDataSet      : false
  hostName               : gwc1c-ca.ca.bessy.de
  lowerAlarmLimit        : NaN
  lowerCtrlLimit         : 24.0
  lowerDisplayLimit      : 24.0
  lowerWarningLimit      : NaN
  modificationTime       : 2026-11-16T11:00:43.601Z
  paused                 : false
  policyName             : Default
  precision              : 3.0
  samplingMethod         : MONITOR
  samplingPeriod         : 0.1
  scalar                 : true
  units                  :
  upperAlarmLimit        : NaN
  upperCtrlLimit         : 185.0
  upperDisplayLimit      : 185.0
  upperWarningLimit      : NaN
  useDBEProperties       : false
  usePVAccess            : false
  userSpecifiedEventRate : 0.0

Output in table format

$ archiver-get get U41IT3R:BaseStatISLbl UE51ID8R:BaseStatISLbl \
  UE46IT5R:BaseStatISLbl \
  --from 2026-12-04T12:53:00 \
  --to 2026-12-04T13:00:00 --table
time                       | U41IT3R:BaseStatISLbl | UE51ID8R:BaseStatISLbl | UE46IT5R:BaseStatISLbl
---------------------------+-----------------------+------------------------+-----------------------
2026-12-04 12:53:06.647125 |                       |                        | STOP
2026-12-04 12:53:26.740919 | RUN                   |                        |
2026-12-04 12:53:26.890919 | STOP                  |                        |
2026-12-04 12:53:29.486981 |                       | RUN                    |
2026-12-04 12:53:30.086981 |                       | STOP                   |
2026-12-04 12:53:34.436981 |                       | RUN                    |
2026-12-04 12:54:28.188497 | RUN                   |                        |
2026-12-04 12:54:28.338497 | STOP                  |                        |
2026-12-04 12:55:31.396089 | RUN                   |                        |
2026-12-04 12:55:31.596089 | STOP                  |                        |
2026-12-04 12:56:04.131948 |                       | STOP                   |
2026-12-04 12:56:22.772017 |                       |                        | RUN
2026-12-04 12:56:23.252017 |                       |                        | STOP
2026-12-04 12:56:32.793699 | RUN                   |                        |
2026-12-04 12:56:32.943699 | STOP                  |                        |
2026-12-04 12:57:34.241237 | RUN                   |                        |
2026-12-04 12:57:34.391237 | STOP                  |                        |
2026-12-04 12:58:27.634853 |                       | RUN                    |
2026-12-04 12:58:45.238845 | RUN                   |                        |
2026-12-04 12:58:46.288845 | STOP                  |                        |
2026-12-04 12:59:15.832340 |                       | STOP                   |
2026-12-04 12:59:45.035738 |                       |                        | RUN
2026-12-04 12:59:47.596409 | RUN                   |                        |
2026-12-04 12:59:47.846409 | STOP                  |                        |
2026-12-04 12:59:52.635738 |                       |                        | STOP

Output in table format with abbreviations

$ archiver-get get U41IT3R:BaseStatISLbl UE51ID8R:BaseStatISLbl \
  UE46IT5R:BaseStatISLbl \
  --from 2026-12-04T12:53:00 \
  --to 2026-12-04T13:00:00 --table \
  --map 'U41IT3R:BaseStatISLbl->U41,UE51ID8R:BaseStatISLbl->UE51,UE46IT5R:BaseStatISLbl->UE46'

time                       | U41  | UE51 | UE46
---------------------------+------+------+-----
2026-12-04 12:53:06.647125 |      |      | STOP
2026-12-04 12:53:26.740919 | RUN  |      |
2026-12-04 12:53:26.890919 | STOP |      |
2026-12-04 12:53:29.486981 |      | RUN  |
2026-12-04 12:53:30.086981 |      | STOP |
2026-12-04 12:53:34.436981 |      | RUN  |
2026-12-04 12:54:28.188497 | RUN  |      |
2026-12-04 12:54:28.338497 | STOP |      |
2026-12-04 12:55:31.396089 | RUN  |      |
2026-12-04 12:55:31.596089 | STOP |      |
2026-12-04 12:56:04.131948 |      | STOP |
2026-12-04 12:56:22.772017 |      |      | RUN
2026-12-04 12:56:23.252017 |      |      | STOP
2026-12-04 12:56:32.793699 | RUN  |      |
2026-12-04 12:56:32.943699 | STOP |      |
2026-12-04 12:57:34.241237 | RUN  |      |
2026-12-04 12:57:34.391237 | STOP |      |
2026-12-04 12:58:27.634853 |      | RUN  |
2026-12-04 12:58:45.238845 | RUN  |      |
2026-12-04 12:58:46.288845 | STOP |      |
2026-12-04 12:59:15.832340 |      | STOP |
2026-12-04 12:59:45.035738 |      |      | RUN
2026-12-04 12:59:47.596409 | RUN  |      |
2026-12-04 12:59:47.846409 | STOP |      |
2026-12-04 12:59:52.635738 |      |      | STOP

Output in table format with abbreviations with forward-fill

$ archiver-get get U41IT3R:BaseStatISLbl \
  UE51ID8R:BaseStatISLbl UE46IT5R:BaseStatISLbl \
  --from 2026-12-04T12:53:00 \
  --to 2026-12-04T13:00:00 --table  \
  --forward-fill \
  --map 'U41IT3R:BaseStatISLbl->U41,UE51ID8R:BaseStatISLbl->UE51,UE46IT5R:BaseStatISLbl->UE46'

time                       | U41  | UE51 | UE46
---------------------------+------+------+-----
2026-12-04 12:53:06.647125 | STOP | STOP | STOP
2026-12-04 12:53:26.740919 | RUN  | STOP | STOP
2026-12-04 12:53:26.890919 | STOP | STOP | STOP
2026-12-04 12:53:29.486981 | STOP | RUN  | STOP
2026-12-04 12:53:30.086981 | STOP | STOP | STOP
2026-12-04 12:53:34.436981 | STOP | RUN  | STOP
2026-12-04 12:54:28.188497 | RUN  | RUN  | STOP
2026-12-04 12:54:28.338497 | STOP | RUN  | STOP
2026-12-04 12:55:31.396089 | RUN  | RUN  | STOP
2026-12-04 12:55:31.596089 | STOP | RUN  | STOP
2026-12-04 12:56:04.131948 | STOP | STOP | STOP
2026-12-04 12:56:22.772017 | STOP | STOP | RUN
2026-12-04 12:56:23.252017 | STOP | STOP | STOP
2026-12-04 12:56:32.793699 | RUN  | STOP | STOP
2026-12-04 12:56:32.943699 | STOP | STOP | STOP
2026-12-04 12:57:34.241237 | RUN  | STOP | STOP
2026-12-04 12:57:34.391237 | STOP | STOP | STOP
2026-12-04 12:58:27.634853 | STOP | RUN  | STOP
2026-12-04 12:58:45.238845 | RUN  | RUN  | STOP
2026-12-04 12:58:46.288845 | STOP | RUN  | STOP
2026-12-04 12:59:15.832340 | STOP | STOP | STOP
2026-12-04 12:59:45.035738 | STOP | STOP | RUN
2026-12-04 12:59:47.596409 | RUN  | STOP | RUN
2026-12-04 12:59:47.846409 | STOP | STOP | RUN
2026-12-04 12:59:52.635738 | STOP | STOP | STOP