Connecting to the Switch using Python

Starting to figure it out how python syntax is working and how we can use internal libraries to connect to switches.

Let’s take the telnetlib

Here is a short example of connecting to switch and changing it’s hostname.


Example of script was taken from telnetlib 

Great free content to learn the Python and Networking automation



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s