GitLab service scheduled maintenance on Monday, August 18th 2025 as of 07h00 Geneva time for a period of 3 hours. Further information under OTG0157026.
-[Appendix 2: The crestImport and crestExport Utilities](#appendix-2-the-crestimport-and-crestexport-utilities)
-[Appendix 2: The Utilities](#appendix-2-the-crestimport-and-crestexport-utilities)
---
---
...
@@ -48,7 +48,7 @@ crestCmd get commands
...
@@ -48,7 +48,7 @@ crestCmd get commands
You can create an object in three ways:
You can create an object in three ways:
-**Using command line parameters**:
-**Using command line parameters**:
```bash
```bash
crestCmd test createTag -n test_MvG5-ddescription-ttime
crestCmd create tag -n test_MvG8f-d"test"-t"time"-o"test"
```
```
-**Using JSON from a file**:
-**Using JSON from a file**:
```bash
```bash
...
@@ -112,37 +112,126 @@ Use `crestCmd get commands` to list available commands.
...
@@ -112,37 +112,126 @@ Use `crestCmd get commands` to list available commands.
1.**Get List Methods**
1.**Get List Methods**
-`crestCmd get tagList [OPTIONS]`
-`crestCmd get tagList [OPTIONS]`
-`crestCmd get globalTagList [OPTIONS]`
-`crestCmd get globalTagList [OPTIONS]`
-`crestCmd get globalTagMap [OPTIONS]`
-`crestCmd get iovList [OPTIONS]`
2.**Get Methods**
2.**Get Methods**
-`crestCmd get tag [OPTIONS]`
-`crestCmd get tag [OPTIONS]`
-`crestCmd get tagMetaInfo [OPTIONS]`
-`crestCmd get globalTag [OPTIONS]`
-`crestCmd get globalTag [OPTIONS]`
-`crestCmd get payload [OPTIONS]`
-`crestCmd get payloadMetaInfo [OPTIONS]`
-`crestCmd get payloadTagInfo [OPTIONS]`
-`crestCmd get tagSize [OPTIONS]`
3.**Create Methods**
3.**Create Methods**
-`crestCmd create tag [OPTIONS]`
-`crestCmd create tag [OPTIONS]`
-`crestCmd create tagMetaInfo [OPTIONS]`
-`crestCmd create globalTag [OPTIONS]`
-`crestCmd create globalTag [OPTIONS]`
-`crestCmd create globalTagMap [OPTIONS]`
-`crestCmd create iovAndPayload [OPTIONS]`
4.**Remove Methods**
4.**Remove Methods**
-`crestCmd remove tag [OPTIONS]`
-`crestCmd remove tag [OPTIONS]`
-`crestCmd remove globalTag [OPTIONS]`
-`crestCmd remove globalTag [OPTIONS]`
-`crestCmd remove tagFromGlobalTagMap [OPTIONS]`
5.**Software version methods**
-`crestCmd version server`
-`crestCmd version client`
---
---
## Appendix 2. The crestImport and crestExport Utilities
Below we use `CREST_SERVER` as an environment variable with the server URL, like `http://crest-04.cern.ch:80` for example.
## Appendix 2. Utilities
You should carefully select the server you are going to use.
### a) crestExport
The crest-cmd package has several utilities.
Fetches data for a specific tag from the CREST server:
To get a short help for the each utility you can use the flag -h or --help. For example:
```bash
./copyGlobalTag -h
```
### 1) crestExport
crestExport is an utility to make a dump of a tag and the tag data (i.e. the tag meta info, IOVs and payloads) from the CREST server to the file storage.
The tag test_MvG8g will be stored from the directory /tmp/crest_data_03 to the CREST server http://crest-03.cern.ch:8090/api-v5.0.
### 3) crestCopy
crestCopy is an utility to copy a tag with the data (i.e. the tag meta info, IOVs and payloads) from the CREST server to the same CREST server with a new name.
You can choose the time interval of IOVs which will be copied.
A log will be created in the current directory with the name deleted-test_MvG9b.txt.
### 7) insertTag
insertTag is an utility to insert a tag in a several global tags using a global tag map (file deleted-test_MvG9f.txt) saved as a log by the deleteTag utility.
The tag name is test_MvG9f, it will be read from the log.