June 2018
Intermediate to advanced
398 pages
9h
English
We will start by defining our switches. We want to back up their configuration as a text file and provide the credentials and access details separated by commas. This will allow us to use the split() function inside the python script to get the data and use it inside the ConnectHandler function. Also, the file can be easily exported and imported from a Microsoft Excel sheet or from any database.
The file structure is:
<device_ipaddress>,<username>,<password>,<enable_password>,<vendor>

Now we will start building our Python script by importing the file inside it, using the with open clause. We use the readlines()
Read now
Unlock full access