Python and Network Engineer

Maybe you were asking yourself why the network engineer would need computer programming for doing network engineering. Well, the world is constantly changing and networking field is not an exception. Times when network engineer logs into device by device and does some changes are slowly vanishing. As our world in becoming more and more automated, it is not surprise that the network infrastructure will become automated as well. Think of all time-consuming tasks an engineer must work out. Changing SNMP community string on dozens of network devices must be pain. This is one of examples where Python (or other programming…

Python: Getting JSON data from remote NX-OS device

In this quick guide I am going to show you how to reach remote Cisco Nexus 9k (sandbox) and get some JSON data using Python. JSON stands for JavaScript Object Notation and it is basically a syntax for storing and exchanging data. Python has a built-in package called json, which can be used to work with JSON data. You can import JSON modul to Python script as follow: For our script we will also need Netmiko module. It is Python implementation of the SSHv2 protocol providing both client and server functionality. As this is not built-in module, you need to…