Skip to content

Script to grab the version number of multiple switches by leveraging multiprocessing.

Notifications You must be signed in to change notification settings

robschn/show_version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

show_version

Script to grab the version number of multiple switches by leveraging multiprocessing.

Install

Install required packages using the requirements.txt

pip install -r requirements.txt

Usage

  1. Open the my_devices.py and input the IPs of the switches you want to connect to.
device_ips = {
    "192.168.1.10",
    "192.168.1.8",
    "192.168.1.7",
    "192.168.1.3",
    "192.168.1.6"
}
  1. Run the script
python show_ver.py
  1. The script will ask for a username and password. These will be stored to be used on all the switches.
Enter standard username: cisco
Enter standard password: 
  1. The script will log into as many switches as it can and print the show version output.
TBD
  1. Done!

Misc

This script can easily be modified to pull any other command. You use just replace the sh_ver and parse_ver values. Please reference Netmiko and ntc-templates for more information.

About

Script to grab the version number of multiple switches by leveraging multiprocessing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages