A simple CLI tool to interact with devices using NETCONF protocol.
go install github.com/sackh/netconf-cli@latest
go get -u github.com/sackh/netconf-cli
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.
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.