Tagged: Python

Understanding RESTCONF

Basic Concepts of RESTCONF Derived from Netconf Model definition in YANG The request/response data is XML or JSON Using HTTPS methods(GET / PATCH / POST / DELETE / PUT) RESTCONF URI format: /<api-entry>/<resource-type>/<yang-module:resource> Yang...

Paramiko and Netmiko examples

Paramiko example: Netmiko example: Common error´╝Ü If the Python file name is paramiko.py or netmiko.py, the following error will occur. Changing the file name can solve this problem.

Install Ansible on Ubuntu

The installation environment is Ubuntu 19.10. Upgrade packages Install Ansible Verification ansible.cfg: This is the ansible configuration file.hosts: The hosts file includes the device information( IP address, etc.). Documentation Installing Ansible on Ubuntu https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-ubuntu

Embedded Event Manager simple example

EEM can be used for monitoring, or triggered by specified conditions (change configuration, etc.). The following is Cisco official document. Embedded Event Manager (EEM) is a distributed and customized approach to event detection and...

Configure guestshell on Cisco CSR 1000V

1. Enable IOx 2. Confirm IOx status We can see IOx service (IOxman): Not Ready. This may take a few minutes. 3. Configure port If the port is not configured correctly, the following error...

How to automate WLC using Python (CLI)

Updated on May 21, 2020: If you are looking for C9800 wireless controller automation, please refer to my following article, I hope this helps you.Monitoring IOS-XE device with Netconf API + Grafana + InfluxDB...

Python Packages Offline Installation

I have some virtual machines for testing, but these machines are offline and cannot connect to the Internet. I was having trouble installing the Python module. I can use whl file to install the...