Skip to content

Instantly share code, notes, and snippets.

View abrand67's full-sized avatar

Allan Brand abrand67

View GitHub Profile
from getpass import getpass
from netmiko import ConnectHandler
# Prompt for device credentials
uname = input('Username: ')
pword = getpass()
command = "show version"
# collect devices that will be configured
from getpass import getpass
from netmiko import ConnectHandler
# Prompt for device credentials
uname = input('Username: ')
pword = getpass()
# collect devices that will be configured
hosts = [] # create list object
with open('hosts.txt', 'r') as hFile: