Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Overview

Overview

Code Block
languagetext
$ configdb -h
usage: configdb [-h] [--url URL] [--root ROOT] {cat,rm,cp,mv,history,rollback,ls} ...

configuration database CLI

positional arguments:
  {cat,rm,cp,mv,history,rollback,ls}
    cat                 print a configuration
    rm                  remove a configuration
    cp                  copy a configuration (EXAMPLE: configdb cp --create --write tmo/BEAM/timing_0 newhutch/BEAM/timing_0)
    mv                  rename a configuration (EXAMPLE: configdb mv --write tst/BEAM/timing_45 timing_46)
    history             get history of a configuration
    rollback            rollback configuration to a specific key
    ls                  list directory contents

optional arguments:
  -h, --help            show this help message and exit
  --url URL             configuration database connection
  --root ROOT           configuration database root (default: configDB)

Copy timing_0 Configuration from TMO to RIX

...

Code Block
languagetext
titleconfigdb CLI
$ configdb --url https://pswww.slac.stanford.edu/ws-auth/configdb/ws ls tmo
BEAM
ALIGN
$ configdb --url https://pswww.slac.stanford.edu/ws-auth/configdb/ws cp --user tmoopr --password **** --create --write tmo/BEAM/tmo_atmopal_0 tmo/MRCO/tmo_atmopal_0
$
$ configdb --url https://pswww.slac.stanford.edu/ws-auth/configdb/ws ls tmo
BEAM
ALIGN
MRCO
$ configdb --url https://pswww.slac.stanford.edu/ws-auth/devconfigdbconfigdb/ws ls tmo/MRCO
tmo_atmopal_0
$

...