Git Product home page Git Product logo

cisco-dnac-healthcheck-netconf's Introduction

Cisco DNA Center Healthcheck Device Netconf

Cisco DNA Center Healthcheck over Netconf-Yang from Console

This script verifies connectivity between Cisco DNA Center and the Network Device.

If Discovery fails on Netconf-yang (on Cisco DNA Center UI) for Network Device, then this script could verify that netconf-yang (port 830) is reachable from the maglev console (Cisco DNA Center). If it's not reachable, then there will be error logs with details from the ncclient module in python (timeout, credentials, port, etc.)

This script is used as an advanced troubleshooting tool, for the experienced Cisco DNA Center administrator.

Demo

Demo

YANG model used in this script

<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
  <hostname>
  </hostname>
  <version>
  </version>
</native>

Requirements

  • Cisco DNA Center Console access (ssh maglev@ -p 2222)
  • Internet Connectivity on Cisco DNA Center (Cloud Enabled)
    • Cisco DNA Center downloads this container image from Public Docker Registry (docker.io)

Usage

Login to Cisco DNA Center

  • ssh maglev@<dnac-ip-address> -p 2222

Run script

  • docker run -it --rm robertcsapo/cisco-dnac-healthcheck-netconf && docker rmi robertcsapo/cisco-dnac-healthcheck-netconf

Enter Cisco Device hostname (then hit ENTER)

  • host: device.example.tld
  • username: demo
  • password: Netconf2020

Automation

Run script with host flag

  • docker run -it --rm robertcsapo/cisco-dnac-healthcheck-netconf -host device.example.tld -username demo -password Netconf2020 && docker rmi robertcsapo/cisco-dnac-healthcheck-netconf

Installation

If you need to manually build the script on the host.

git clone https://github.com/robertcsapo/cisco-dnac-healthcheck-netconf

Build

  • cd cisco-dnac-healthcheck-netconf
  • docker build -t robertcsapo/cisco-dnac-healthcheck-netconf .

Technologies & Frameworks Used

Cisco Products & Services:

  • Cisco DNA Center
  • Cisco IOS-XE

Tools & Frameworks:

  • Python 3
  • ncclient

Authors & Maintainers

License

This project is licensed to you under the terms of the Cisco Sample Code License.

cisco-dnac-healthcheck-netconf's People

Contributors

robertcsapo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jorschul

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.