from getpass import getpass
import time
from netmiko import ConnectHandler

password = getpass()

pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}

ssh_connection = ConnectHandler(**pynet_rtr2)
time.sleep(2)

ssh_connection.config_mode()
output = ssh_connection.find_prompt()

print "The current state of the prompt is %s" % output




# Use Netmiko to enter into configuration mode on pynet-rtr2. Also use Netmiko to verify your state (i.e. that you are currently in configuration mode).
from getpass import getpass
import time
from netmiko import ConnectHandler

password = getpass()

pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}

ssh_connection = ConnectHandler(**pynet_rtr2)
time.sleep(2)

ssh_connection.config_mode()
output = ssh_connection.find_prompt()

print "The current state of the prompt is %s" % output




Use PExpect to change the logging buffer size (logging buffered <size>) on pynet-rtr2. Verify this change by examining the output of 'show run'.
Use PExpect to change the logging buffer size (logging buffered <size>) on pynet-rtr2. Verify this change by examining the output of 'show run'.
