NETCONF CLI
A simple CLI tool to interact with devices using NETCONF protocol.
Installation
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:
netconf-cli get capabilities --config <netconf-cli.env>
netconf-cli get config --candidate --config <netconf-cli.env>
netconf-cli get config --running --config <netconf-cli.env>
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.