hvrdefinitionexport
Usage
hvrdefinitionexport [-Rurl] -C [m [-a]] hub expjsonfilehvrdefinitionexport [-Rurl] -cchn... [-m [-a]] hub expjsonfilehvrdefinitionexport [-Rurl] -cchn -T hub expjsonfilehvrdefinitionexport [-Rurl] -cchn -ttbl... hub expjsonfilehvrdefinitionexport [-Rurl] -L [-a] hub expjsonfilehvrdefinitionexport [-Rurl] -lloc... [-a] hub expjsonfilehvrdefinitionexport [-Rurl] -hhub expjsonfilehvrdefinitionexport [-Rurl] -l [-u] hub expjsonfilehvrdefinitionexport [-Rurl] -iev_id_tstamp... [-u] hub expjsonfilehvrdefinitionexport [-Rurl] [-btstamp] | [-etstamp] [-u] hub expjsonfile
Description
Command hvrdefinitionexport exports channel, location, and table definitions from a hub into a JSON file.
Options
This section describes the options available for command hvrdefinitionexport.
| Parameter | Description |
|---|---|
-a | Include actions for exported locations. This requires options-l (export specific location loc only), -L or -m. |
-A | Export agent location properties only. This requires-l (export specific location loc only) or -L. |
-btstamp | Export events since time stamp _tstamp_. |
-cchn | Export specific channel -C. |
-C | Export all channels. This cannot be combined with option-c. |
-etstamp | Export events until timestamp _tstamp_. |
-h | Export all hub-level actions. |
-iev_id_tstamp | Export specific event ev_id_tstamp. |
-I | Export all events. |
-lloc | Export specific location -L. |
-L | Export all locations. This cannot be combined with-l(export specific location loc only). |
-m | Include locations which are members of the exported channels. This requires option-c or -C and cannot be combined with option -t or -T. |
-Rurl | Remote hub server. Access the hub server running on a remote machine, via the . This option is required for . When using this option, command should be run first, for authentication. |
-ttbl | Export specific table tbl only. This requires single -T. |
-T | Export only tables (not a channel). This requires single -t. |
-u | Export the undo operation of the original event. This requires options-b, -e, -i, or -I(export all events). |
| Handle data.
|
Examples
This section provides examples of using the hvrdefinitionexport command.
Example 1. Export all definitions in a hub
The following command exports all definitions in hub hvrhub:
hvrdefinitionexport hvrhub expjsonfile
content_copyExample 2. Export all channels including locations
The following command exports all channels including locations that are members of the exported channels and actions defined in the exported locations:
hvrdefinitionexport -C -m -a hvrhub expjsonfile
content_copyExample 3. Export specific channels with locations
The following command exports channels mychannel and demochannel including locations which are members of the exported channels and actions defined in the exported locations:
hvrdefinitionexport -c mychannel -c demochannel -m -a hvrhub expjsonfile
content_copyExample 4. Export tables
The following command exports all tables of channel mychannel:
hvrdefinitionexport -c mychannel -T hvrhub expjsonfile
content_copyExample 5. Export specific table
The following command exports table mytable of channel mychannel:
hvrdefinitionexport -c mychannel -t mytable hvrhub expjsonfile
content_copyExample 6. Export locations with actions
The following command exports all locations including actions:
hvrdefinitionexport -L -a hvrhub expjsonfile
content_copyExample 7. Export specific location
The following command exports location mylocation:
hvrdefinitionexport -l mylocation hvrhub expjsonfile
content_copyExample 8. Export agent properties
The following command exports agent properties of location mylocation:
hvrdefinitionexport -l mylocation -A hvrhub expjsonfile
content_copyExample 9. Export hub-level actions
The following command exports hub-level actions of hub hvrhub:
hvrdefinitionexport -h hvrhub expjsonfile
content_copyExample 10. Export definition changes
The following command exports all events:
hvrdefinitionexport -I hvrhub expjsonfile
content_copyExample 11. Export specific definition change
The following command exports a specific event with ID 2019-05-17T11:45:49+02:00:
hvrdefinitionexport -i 2019-05-17T11:45:49+02:00 hvrhub expjsonfile
content_copyExample 12. Export definition changes performed during specific time range
The following command exports the events for the time range between October 9, 2020 and October 29, 2020
hvrdefinitionexport -b 2020-10-09 -e 2020-10-29 hvrhub expjsonfile
content_copy
Comments
0 comments
Please sign in to leave a comment.