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.
<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<hostname>
</hostname>
<version>
</version>
</native>
- 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)
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
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
If you need to manually build the script on the host.
git clone https://github.com/robertcsapo/cisco-dnac-healthcheck-netconf
cd cisco-dnac-healthcheck-netconf
docker build -t robertcsapo/cisco-dnac-healthcheck-netconf .
Cisco Products & Services:
- Cisco DNA Center
- Cisco IOS-XE
Tools & Frameworks:
- Python 3
- ncclient
- Robert Csapo [email protected]
This project is licensed to you under the terms of the Cisco Sample Code License.