ncli

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

ncli

Simple netconf command line client

Usage

ncli --help
Simple netconf command line client

Usage:
  ncli [command]

Available Commands:
  commit          Commit changes in candidate datastore
  completion      Generate the autocompletion script for the specified shell
  copy-config     Copy configuration from source to target datastore
  delete-config   Delete configuration from target datasource
  discard-changes Discard changes from candidate datastore
  edit-config     Send edit-config rpc to specified target datastore
  get             Send get rpc with specified filter or filter file
  get-config      Send get-config rpc with specified filter and source datasource
  get-schema      Get schema with specified identifier
  hello           Send hello request
  help            Help about any command
  kill-session    Kills session with the specified id
  rpc             Send rpc request
  validate        Validate changes in specified datastore

Flags:
  -h, --help                   help for ncli
      --host string            hostname or address of the device
      --lock string            wrap calls with lock/unlock - if applicable
      --logging-level string   set logging level - info,debug,critical
      --password string        password for authentication
      --port int               port of the device (default 830)
      --username string        username for authentication
  -v, --version                version for ncli

Use "ncli [command] --help" for more information about a command.
Examples
ncli --host clab-single-leaf1 --username admin --password admin@123 hello
ncli --host clab-single-leaf1 --username admin --password admin@123 get --path /netconf-state/capabilities
ncli --host clab-single-leaf1 --username admin --password admin@123 get-config --source running --path /
ncli --host clab-single-leaf1 --username admin --password admin@123 get-config --source running --path /configuration/system/host-name
ncli --host clab-single-leaf1 --username admin --password admin@123 rpc --rpc /get-route-information
ncli --host clab-single-leaf1 --username admin --password admin@123 edit-config --target candidate --path /configuration/system/host-name --value leaf1
ncli --host clab-single-leaf1 --username admin --password admin@123 discard-changes

ncli --host clab-single-leaf1 --username admin --password admin@123 edit-config --target candidate --path /configuration/system/host-name --value leaf1
ncli --host clab-single-leaf1 --username admin --password admin@123 commit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL