ktbyers / nornir_netmiko

Netmiko Plugins for Nornir
Apache License 2.0
80 stars 24 forks source link

OSError: Search pattern never detected in send_command Cisco IOS #27

Closed wannabecyborg closed 2 years ago

wannabecyborg commented 2 years ago

Hello, saving configuration cisco_ios does not work in nornir-netmiko 0.1.2, but it works fine in nornir 2.4.0

Name: nornir Version: 3.2.0

Name: nornir-netmiko Version: 0.1.2

cmd = 'wr' r = nr.run( task=netmiko_send_command, command_string=cmd) print_result(r)

or

r = nr.run( task=netmiko_save_config) print_result(r)

netmiko_send_command****

^^^^ END netmiko_send_command ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ktbyers commented 2 years ago

@veytsberg Netmiko is saying the prompt FL3-R2-SW02# never came back after executing wr?

Is the device prompting for anything after executing wr (for example, after an OS upgrade where it prompts you that you want to do this save configuration).