netconf-cli

command module
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 1 Imported by: 0

README

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:

  • 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.

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
Implementation of reply subcommand.
Implementation of reply subcommand.

Jump to

Keyboard shortcuts

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