Page History
...
Code Block |
---|
configdb cp --user rixopr --password <usual> --write tmo/BEAM/tmo_atmopal_0 rix/BEAM/atmopal_0 |
Storing (and Updating) Database Records with <det>_config_store.py
Detector records can be defined and then stored in the database using the <det>_config_store.py
scripts. For a minimal model see the hrencoder_config_store.py
which has just a couple additional entries beyond the defaults (which should be stored for every detector).
...
Code Block |
---|
python <det>_config_store.py --name <unique_detector_name> [--segm 0] --inst <hutch> --user <usropr> --password <usual> [--prod] --alias BEAM |
...
- User and hutch (
--inst
) as defined in the cnf file for the specific configuration and include as--user <usr>
. This is used for HTTP authentication. E.g.,tmoopr
,tstopr
- Password is the standard password used for HTTP authentication.
- Include
--prod
if using the production database. This will need to match the entry in yourcnf
file as well, defined ascdb
.https://pswww.slac.stanford.edu/ws-auth/configdb/ws
is the production database. - Do not include the segment number in the detector name. If you are updating an entry for a segment other than 0, pass
–sgem $SEGM
in addition to–name $DETNAME
python <det>_config_store.py --help is available
and will display all arguments.
There are similar scripts that can be used to update entries. E.g.:
hsd_config_update.py
Making Schema Updates in configdb
...
Overview
Content Tools