Category Archives: Scripting

Facebook Netops Nanog – FBAR


Posted in Scripting | Leave a comment

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.  

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 , , , , | 5 Comments


TCL in IOS. Continue reading

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