SYSREPOCFG(1)

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

πŸ’– NAME πŸ’–

sysrepocfg β€” the sysrepo configuration manipulation tool. That's the whole thing, that's the vibe, bestie. 🫢


✨ SYNOPSIS ✨

sysrepocfg OPERATION [OPTIONS]

🌸 DESCRIPTION 🌸

okay so sysrepocfg is a command-line tool for manipulation of YANG data configuration stored in sysrepo. It can modify it in several ways, and it can also send YANG RPCs and notifications. Iconic behavior honestly. πŸ’…


πŸ‘‘ OPERATION πŸ‘‘

Pick ONE of these, that's your main character move for the run. 🌈

  • -h, --help β€” Print usage help. A lil peek at how everything works. πŸ™ˆ
  • -V, --version β€” Print only information about sysrepo version. Just the version, nothing else, she's minimal like that. ✨
  • -I, --import[=PATH] β€” Import the configuration from a file or STDIN.
  • -X, --export[=PATH] β€” Export configuration to a file or STDOUT.
  • -E, --edit[=PATH/EDITOR] β€” Edit configuration data by merging (applying) configuration (edit) data from STDIN or file, or by editing the current datastore content using a text editor. Two ways to serve, pick your lane. πŸŽ€
  • -R, --rpc[=PATH/EDITOR] β€” Send a RPC/action read from STDIN, file, or using a text editor. Output is printed to STDOUT.
  • -N, --notification[=PATH/EDITOR] β€” Send a notification read from STDIN, file, or using a text editor. She's not asking, she's telling. πŸ””
  • -C, --copy-from PATH/SOURCE-DATASTORE β€” 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.
🫢 little heads-up: 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. No cap, that's just how she decides. πŸ’€

🌟 OPTIONS 🌟

  • -d, --datastore DATASTORE β€” Datastore to be operated on. Accepted by import, export, edit, copy-from op. DATASTORE is:
    • running (default)
    • startup
    • candidate
    • operational
    • factory-default
  • -m, --module MODULE β€” Module to be operated on, otherwise it is operated on full datastore. Accepted by import, export, edit, copy-from op. Lowkey nice to narrow it down. 🎯
  • -x, --xpath XPATH β€” XPath to select. Accepted by export op.
  • -f, --format FORMAT β€” Data format to be used, by default based on file extension, or xml if not applicable. Accepted by all op. And yes, the list header says DATASTORE is: here even though it's obviously talking about FORMAT β€” we don't make the rules, we just report them πŸ’€ DATASTORE is:
    • xml (default)
    • json
    • lyb
  • -l, --lock β€” Lock the specified datastore for the whole operation. Accepted by edit op. Nobody else touch it, she's busy. πŸ”’
  • -n, --not-strict β€” Silently ignore any unknown data. Accepted by import, edit, rpc, notification, copy-from op. She's choosing peace. πŸ¦‹
  • -o, --opaque β€” Parse invalid nodes in the edit into opaque nodes. Accepted by edit op.
  • -p, --depth DEPTH β€” Limit the depth of returned subtrees, 0 (unlimited) by default. Accepted by export op.
  • -t, --timeout SECONDS β€” Set the timeout for the operation, otherwise the default one is used. Accepted by all op.
  • -e, --defaults WD-MODE β€” 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
  • -u, --value VALUE/PATH β€” Node value to read, or the file to write the value into. Accepted by set/get op.
  • -v, --verbosity LEVEL β€” 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 🧚

go follow the links, they're the source, iykyk ⭐


πŸ’œ AUTHORS πŸ’œ

Michal Vasko <mvasko@cesnet.cz> β€” the icon, the moment, the legend πŸ‘‘


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

Copyright Β© 2018-2023 Deutsche Telekom AG.


and that's the whole page bestie, mwah πŸ’… this was sysrepo, dated 2023-09-18 β€” love that for us, periodt. 🌸

πŸ“¦ where this page comes from