Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.06 KB

NETCONF CLI

A simple CLI tool to interact with devices using NETCONF protocol.

Installation

go install github.com/sackh/netconf-cli@latest
go get -u github.com/sackh/netconf-cli

Usage

For netconf-cli tool config file is mandatory. Config file must be in dotenv format.

Example config file must have below key value pairs:

host=a.b.c.d
username=<username>
password=<password>

Value of the host should be the ip address of the device and username and password of the device.

Commands

Currently below commands are supported:

  • Get Capabilities
netconf-cli get capabilities --config <netconf-cli.env>
  • Get Candidate Config
netconf-cli get config --candidate --config <netconf-cli.env>
  • Get Running Config
netconf-cli get config --running --config <netconf-cli.env>
  • Get Reply
netconf-cli get reply -r <rpc-request-xml-file> --config <netconf-cli.env>

⚠️ This CLI tool is currently in the experimental stage and APIs and commands might change in future.