Scroll to navigation

SYSREPOCFG(1) General Commands Manual SYSREPOCFG(1)

NAME

sysrepocfg - sysrepo configuration manipulation tool

SYNOPSIS

sysrepocfg OPERATION [OPTIONS]

DESCRIPTION

sysrepocfg is a command-line tool for manipulation of YANG data configuration stored in sysrepo. It can modify it in several ways and also send YANG RPCs and notifications.

OPERATION

Print usage help.
Print only information about sysrepo version.
Import the configuration from a file or STDIN.
Export configuration to a file or STDOUT.
Edit configuration data by merging (applying) configuration (edit) data from STDIN or file or by editing the current datastore content using a text editor.
Send a RPC/action read from STDIN, file, or using a text editor. Output is printed to STDOUT.
Send a notification read from STDIN, file, or using a text editor.
Perform a copy-config from a file or a datastore.

-S, --set XPATH Set the value of a node on the XPath. It is read from STDIN unless '--value' parameter is used.

-G, --get XPATH Get the value of a node on the XPath. It is written to STDOUT unless '--value' parameter is used.

When both a PATH and EDITOR/SOURCE-DATASTORE can be specified, it is always first checked that the file exists. If not, then it is interpreted as the other parameter.

OPTIONS

Datastore to be operated on. Accepted by import, export, edit, copy-from op. DATASTORE is:
running (default)
startup
candidate
operational
factory-default
Module to be operated on, otherwise it is operated on full datastore. Accepted by import, export, edit, copy-from op.
XPath to select. Accepted by export op.
Data format to be used, by default based on file extension or xml if not applicable. Accepted by all op. DATASTORE is:
xml (default)
json
lyb
Lock the specified datastore for the whole operation. Accepted by edit op.
Silently ignore any unknown data. Accepted by import, edit, rpc, notification, copy-from op.
Parse invalid nodes in the edit into opaque nodes. Accepted by edit op.
Limit the depth of returned subtrees, 0 (unlimited) by default. Accepted by export op.
Set the timeout for the operation, otherwise the default one is used. Accepted by all op.
Print the default values, which are trimmed by default. Accepted by export, edit, rpc op. WD-MODE is:
trim (default)
report-all
report-all-tagged
explicit
implicit-tagged
Node value to read or the file to write the value into. Accepted by set/get op.
Change verbosity to a level. Accepted by all op. LEVEL can be a string or a number:
none/0
error/1 (default)
warning/2
info/3
debug/4

SEE ALSO

https://www.sysrepo.org (sysrepo home page)

https://github.com/sysrepo/sysrepo (sysrepo Git repository)

AUTHORS

Michal Vasko <mvasko@cesnet.cz>

COPYRIGHT

Copyright © 2018-2023 CESNET, a.l.e.

2023-09-18 sysrepo