# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.

from getpass import getpass
from netmiko import ConnectHandler


def main():

    password = <PASSWORD>pass()

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

    ssh_connection = ConnectHandler(**pynet_rtr2)
    ssh_connection.config_mode()
    logging_command = ['logging buffered 20031']
    ssh_connection.send_config_set(logging_command)

    output = ssh_connection.send_command('show run | inc logging buffered')
    outp = output.split()

    print "The new size of logging buffered is %s" % outp[2]

if __name__ == "__main__":
    main()





# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.

from getpass import getpass
from netmiko import ConnectHandler


def main():

    password = <PASSWORD>pass()

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

    ssh_connection = ConnectHandler(**pynet_rtr2)
    ssh_connection.config_mode()
    logging_command = ['logging buffered 20031']
    ssh_connection.send_config_set(logging_command)

    output = ssh_connection.send_command('show run | inc logging buffered')
    outp = output.split()

    print "The new size of logging buffered is %s" % outp[2]

if __name__ == "__main__":
    main()





# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.