Usage: sysrepod [-h] [-v] [-d] [-l <level>]
Options:
• -h Prints usage help.
• -v Prints version.
• -d Debug mode - daemon will run in the foreground and print logs to stderr instead of syslog.
• -l <level> Sets verbosity level of logging:
0 = all logging turned off
1 = log only error messages
2 = (default) log error and warning messages
3 = log error, warning and informational messages
4 = log everything, including development debug messages
6.4.5 Sysrepocfg
sysrepocfg is a command-line tool for editing, importing and exporting configuration stored in Sysrepo datastore. It allows the
user to edit startup or running configuration of specified module in preferred text editor and to propagate the perfomed changes
into the datastore transparently for all subscribed applications. Moreover, the user can export the current configuration into a file
or get it printed to the standard output and, similarly, an already prepared configuration can be imported from a file or read from
the standard input.
In the background, sysrepocfg uses Sysrepo client library for any data manipulation rather than directly accessing configuration
data files, thus effectively inheriting all main features of Sysrepo, such as YANG-based data validation, full transaction and
concurrency support, and, perhaps most importantly, subscribed applications are notified about the changes made using
\fBsysrepocfg\fP and can immediately take the new configuration into account.
6.4.6 Sysrepoctl
The sysrepoctl provides fuctions to manage modules. It can be configured using the options and commands described below.
operation-operations
• --help: Prints the generic description and a list of commands. The detailed description and list of arguments for the specific
command are displayed by using
--help
argument of the command.
• --install: Installs specified schema into sysrepo (--yang or --yin must be specified).
• --uninstall: Uninstalls specified schema from sysrepo (--module must be specified).
• --list: Lists YANG modules installed in sysrepo (note that Conformance Installed implies also Implemented).
• --change : Changes specified module in sysrepo (--module must be specified).
• --feature-enable: Enables a feature within a module in sysrepo (feature name is the argument, --module must be
specified).
• --feature-disable: Disables a feature within a module in sysrepo (feature name is the argument, --module must be
specified).
Other-options
• --yang : Path to the file with schema in YANG format (--install operation).
• --yin : Path to the file with schema in YIN format (--install operation).
• --module : Name of the module to be operated on (--change, --feature-enable, --feature-disable operations, --uninstall -
several modules can be delimited with ',').
• --permissions : Access permissions of the module's data in chmod format (--install, --change operations).
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
81 / 199