language : python 2.7
module : netmiko
method: send_command
device: IOS cisco_3750
protocol : telnet
problem description : while sending any command with more then four strings there is an I/O error
error:
example device.send_command(show aaa user all)
Traceback (most recent call last):
File "C:\Users\Lenovo-L460\Desktop\yo.py", line 11, in <module>
output=lala.send_command("show aaa user all")
File "C:\Python27\lib\site-packages\netmiko\base_connection.py", line 1051, in send_command
search_pattern))
IOError: Search pattern never detected in send_command_expect: testingnew\#
Kindly notice testingnew is the host name for the device in enable mode script is working fine with sending two strings example device.send_command(show ?) is working fine