Category Archives: Scripting

Generating device configuration using Ansible and Jinja2

Following 3 links pretty much cover everything we need, to generate network device configurations from a ┬átemplate and variable file. https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template.html https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template-p2.html https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template-p3.html   Advertisements

Posted in Scripting | Leave a comment

Python Script that SSH to a switch and execute commands for ‘x’ times

Below is a sample python code that can login to a switch via SSH and gather few command outputs and display it on console. SSH sessions are repeated for ‘x’ number of times. Paramiko SSH module is used in this … Continue reading

Posted in Scripting | Tagged , , , , | 2 Comments

TCL

TCL in IOS. Continue reading

Posted in IOS, Scripting | Tagged , , | Leave a comment