SYSREPOCTL(1)

πŸ“¦
version 5.1.0 Β· 2 versions
, in fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– SYSREPOCTL πŸ’–

okay bestie, gather round, because this is sysrepoctl from section 1 of the General Commands Manual and she is that girl πŸ’…


✨ NAME ✨

sysrepoctl β€” the sysrepo YANG schema manipulation tool πŸŽ€


🌸 SYNOPSIS 🌸

sysrepoctl OPERATION [OPTIONS]

πŸ¦‹ DESCRIPTION πŸ¦‹

so sysrepoctl is a command-line tool for manipulating YANG schemas in sysrepo, no cap. she can list the schemas you've currently got installed, and she can add, remove, or modify them. that's the whole vibe. 🫢


πŸ‘‘ OPERATION πŸ‘‘

the main character choices, bestie:

  • -h, --help β€” prints usage help. the "help me help you" button πŸ’–
  • -V, --version β€” prints only info about the sysrepo version. that's it, that's the whole job ✨
  • -l, --list β€” lists the YANG modules in sysrepo πŸ“‹
  • -i, --install PATH β€” installs the schema you point at into sysrepo. it can be in either YANG or YIN format. you can specify this multiple times to install several modules. and listen: all the options will affect the module of the last operation, and they can be specified for each one. so yes, per-module options, go off 🌈
  • -u, --uninstall MODULE β€” uninstalls the specified module from sysrepo. can be specified multiple times to uninstall several modules at once. bye bestie πŸ‘‹
  • -c, --change MODULE β€” changes access rights, features, or replay support of the specified module. and there's a special :ALL module name you can use to change the access rights or replay support of all the modules at once. iconic honestly πŸ‘‘
  • -U, --update PATH β€” updates the specified schema in sysrepo. can be in either YANG or YIN format. can be specified multiple times to update several modules πŸ”„
  • -L, --plugin-list β€” lists the loaded sysrepo plugins πŸ”Œ
  • -P, --plugin-install PATH β€” installs a datastore or notification sysrepo plugin. the plugin is simply copied to the designated plugin directory, that's the whole move πŸ“¦

πŸ’… OPTIONS πŸ’…

the flags, the moment, the lore:

  • -s, --search-dirs DIR-PATH [:DIR-PATH...] β€” directories to search for include/import modules. the directory with already-installed modules is always searched, so don't worry about that one. accepted by install, update op πŸ”
  • -e, --enable-feature FEATURE β€” enables a specific feature, or use '*' for all the features. can be specified multiple times. accepted by install, change op βœ…
  • -d, --disable-feature FEATURE β€” disables a specific feature. can be specified multiple times. accepted by change op 🚫
  • -r, --replay STATE β€” changes replay support (that's the storing of notifications) for this module. accepted by change op. STATE can be:
    • on/1
    • off/0
  • -o, --owner USER β€” sets the filesystem owner of a module. accepted by change, install, update op πŸ§‘
  • -g, --group GROUP β€” sets the filesystem group of a module. accepted by change, install, update op πŸ‘₯
  • -p, --permissions PERMISSIONS β€” sets the filesystem permissions of a module (chmod format, iykyk). accepted by change, install, update op πŸ”
  • -D, --datastore MOD-DATASTORE β€” applies the operation to a module datastore. accepted by change op if permissions are being changed. MOD-DATASTORE can be:
    • startup
    • running
    • candidate
    • operational
    • notification
    • :ALL (default) ⭐
  • -m, --module-plugin MOD-DATASTORE:PLUGIN-NAME β€” sets a specific module datastore plugin for a module datastore. can be specified multiple times for different module datastores. if PLUGIN-NAME is an empty string, it is set to NULL, which disables the datastore (running datastore only, just so you know). unspecified datastores use the default datastore plugins. accepted by install op 🧩
  • -I, --init-data PATH β€” initial data in a file with XML or JSON extension to be set for a module. super useful when there are mandatory top-level nodes. accepted by install op 🌱
  • -f, --force β€” forces the specific operation if possible. accepted by uninstall op πŸ’ͺ
  • -v, --verbosity LEVEL β€” changes 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 πŸ”—


🫢 AUTHORS 🫢

Michal Vasko <mvasko@cesnet.cz> β€” thank you king πŸ’–


Copyright Β© 2018-2022 CESNET, a.l.e.

Copyright Β© 2018-2022 Deutsche Telekom AG.


and that's the whole page bestie, mwah πŸ’‹ this was sysrepo version dated 2023-10-10, aka SYSREPOCTL(1), and she ate, no crumbs left πŸŒˆβœ¨πŸ’…

πŸ“¦ where this page comes from