If the switch has not been upgraded yet, it issues 'dir flash:' to check to see if the new.Issues 'show ver' command and checks output to determine if the switch has already been upgraded.Checks output to see if it contains 3750 or 3850.Uses 'USER' and 'PASSWORD' variables at the top to login to switch.Each thread connects to a switch using Netmiko library.For each hostname in the list, start a new thread, passing hostname to it.Swis = orionsdk.SwisClient("", "username", "password")ĭevices = swis.query('SELECT IPAddress, DNS, SysName, Vendor, MachineType, Description, Status FROM Orion.Nodes') Read all hostnames from switch_list.txt, save as a list (Or even better you could grab all the IPs directly from Solarwinds Orion with this command:.It is also multi-threaded, so it connects to all the switches simultaneously. It uses Netmiko Python library for handling SSH sessions, and PrettyTables for displaying output. This script was written to prep ~70 Cisco 37XX and 38XX switches for a firmware upgrade. ![]() ![]() ![]() Netmiko Cisco Switch FTP Firmware Downloader Netmiko-Cisco-Switch-FTP-Firmware-Downloader
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |