June 2018
Intermediate to advanced
398 pages
9h
English
Now it's time to utilize netmiko and see its power for SSHing to network devices and executing commands. By default, netmiko handles many operations in the background during session establishment, such as adding unknown SSH key hosts, setting the terminal type, width, and height, and accessing enable mode when required, then disabling paging by running a vendor-specific command. You will need to define the devices first in dictionary format and provide five mandatory keys:
R1 = { 'device_type': 'cisco_ios', 'ip': '10.10.88.110', 'username': 'admin', 'password': 'access123', 'secret': 'access123',}
The first parameter is device_type, and it is used to define the platform vendor in order to execute the correct commands. ...
Read now
Unlock full access