1
2SYSREPOCFG(1)               General Commands Manual              SYSREPOCFG(1)
3
4
5

NAME

7       sysrepocfg - sysrepo configuration manipulation tool
8

SYNOPSIS

10       sysrepocfg OPERATION [OPTIONS]
11

DESCRIPTION

13       sysrepocfg is a command-line tool for manipulation of YANG data config‐
14       uration stored in sysrepo. It can modify it in several  ways  and  also
15       send YANG RPCs and notifications.
16

OPERATION

18       -h, --help
19              Print usage help.
20
21       -V, --version
22              Print only information about sysrepo version.
23
24       -I, --import[=PATH]
25              Import the configuration from a file or STDIN.
26
27       -X, --export[=PATH]
28              Export configuration to a file or STDOUT.
29
30       -E, --edit[=PATH/EDITOR]
31              Edit  configuration  data  by merging (applying) a configuration
32              (edit) file or by editing the current datastore content using  a
33              text editor.
34
35       -R, --rpc[=PATH/EDITOR]
36              Send  a  RPC/action  in a file or using a text editor. Output is
37              printed to STDOUT.
38
39       -N, --notification[=PATH/EDITOR]
40              Send a notification in a file or using a text editor.
41
42       -C, --copy-from PATH/SOURCE-DATASTORE
43              Perform a copy-config from a file or a datastore.
44
45       When both a PATH and EDITOR/SOURCE-DATASTORE can be  specified,  it  is
46       always  first  checked  that the file exists. If not, then it is inter‐
47       preted as the other parameter. If no PATH and no  EDITOR  is  set,  use
48       text editor in $VISUAL or $EDITOR environment variables.
49

OPTIONS

51       -d, --datastore DATASTORE
52              Datastore  to  be operated on. Accepted by import, export, edit,
53              copy-from op. DATASTORE is:
54running (default)
55startup
56candidate
57operational
58
59       -m, --module MODULE
60              Module to be operated on, otherwise it is operated on full data‐
61              store.   Accepted  by import, export, edit, copy-from, mandatory
62              for new-data op.
63
64       -x, --xpath XPATH
65              XPath to select. Accepted by export op.
66
67       -f, --format FORMAT
68              Data format to be used, by default based on  file  extension  or
69              xml if not applicable.  Accepted by all op.  DATASTORE is:
70xml (default)
71json
72lyb
73
74       -l, --lock
75              Lock  the  specified datastore for the whole operation. Accepted
76              by edit op.
77
78       -n, --not-strict
79              Silently ignore any unknown data. Accepted by import, edit, rpc,
80              notification, copy-from op.
81
82       -o, --opaque
83              Parse  invalid  nodes in the edit into opaque nodes. Accepted by
84              edit op.
85
86       -p, --depth DEPTH
87              Limit the depth of returned subtrees, 0 (unlimited) by  default.
88              Accepted by export op.
89
90       -t, --timeout SECONDS
91              Set  the timeout for the operation, otherwise the default one is
92              used.  Accepted by all op.
93
94       -e, --defaults WD-MODE
95              Print the default values, which are  trimmed  by  default.   Ac‐
96              cepted by export, edit, rpc op.  WD-MODE is:
97trim (default)
98report-all
99report-all-tagged
100explicit
101implicit-tagged
102
103       -v, --verbosity LEVEL
104              Change  verbosity to a level. Accepted by all op. LEVEL can be a
105              string or a number:
106none/0
107error/1 (default)
108warning/2
109info/3
110debug/4
111

SEE ALSO

113       https://sysrepo.org (sysrepo home page)
114
115       https://github.com/sysrepo/sysrepo (sysrepo Git repository)
116

AUTHORS

118       Michal Vasko <mvasko@cesnet.cz>
119
121       Copyright © 2018-2021 CESNET, a.l.e.
122
123       Copyright © 2018-2021 Deutsche Telekom AG.
124
125
126
127sysrepo                           2021-10-07                     SYSREPOCFG(1)
Impressum