This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |