SYSREPOCFG(1)
π 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 byimport,export,edit,copy-fromop.DATASTOREis:running(default)startupcandidateoperationalfactory-default
-m,--module MODULEβ Module to be operated on, otherwise it is operated on full datastore. Accepted byimport,export,edit,copy-fromop. Lowkey nice to narrow it down. π―-x,--xpath XPATHβ XPath to select. Accepted byexportop.-f,--format FORMATβ Data format to be used, by default based on file extension, orxmlif not applicable. Accepted by all op. And yes, the list header saysDATASTORE is:here even though it's obviously talking about FORMAT β we don't make the rules, we just report them πDATASTOREis:xml(default)jsonlyb
-l,--lockβ Lock the specified datastore for the whole operation. Accepted byeditop. Nobody else touch it, she's busy. π-n,--not-strictβ Silently ignore any unknown data. Accepted byimport,edit,rpc,notification,copy-fromop. She's choosing peace. π¦-o,--opaqueβ Parse invalid nodes in the edit into opaque nodes. Accepted byeditop.-p,--depth DEPTHβ Limit the depth of returned subtrees,0(unlimited) by default. Accepted byexportop.-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 byexport,edit,rpcop.WD-MODEis:trim(default)report-allreport-all-taggedexplicitimplicit-tagged
-u,--value VALUE/PATHβ Node value to read, or the file to write the value into. Accepted byset/getop.-v,--verbosity LEVELβ Change verbosity to a level. Accepted by all op.LEVELcan be a string or a number:none/0error/1(default)warning/2info/3debug/4
π§ SEE ALSO π§
- https://www.sysrepo.org (sysrepo home page)
- https://github.com/sysrepo/sysrepo (sysrepo Git repository)
go follow the links, they're the source, iykyk β
π AUTHORS π
Michal Vasko <mvasko@cesnet.cz> β the icon, the moment, the legend π
π COPYRIGHT π
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
- fedora 43: sysrepo-tools 3.6.11-2.fc43 Β· BSD-3-Clause
- fedora 44: sysrepo-tools 3.7.11-2.fc44 Β· BSD-3-Clause
- ubuntu resolute: sysrepo 3.7.11-1 Β· BSD-3-clause~CopyrightHolder
- ubuntu stonking: sysrepo 5.1.0-1 Β· BSD-3-clause~CopyrightHolder
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms