Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- from netmiko import ConnectHandler
- import time
- net_connect = ConnectHandler(device_type='cisco_ios', ip='10.10.10.227', username='pyclass', password='password')
- device = {
- 'device_type': 'cisco_ios',
- 'ip':'host',
- 'username':'user',
- 'password':'xxxx',
- }
- net_connect = ConnectHandler(**device)
- output = net_connect.send_command("show version")
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement