Closed assadniang closed 1 year ago
Netmiko 3.x expects the device to echo the command by default:
So when you send the password:
if 'connecting (yes/no)?' in output:
output += net_connect.send_command('yes', expect_string = r'd:')
output += net_connect.send_command('abc123', expect_string = r'ubmc>')
elif 'Password:' in output:
net_connect.send_command('abc123', expect_string = r'ubmc>')
These don't get echoed so they fail.
Easy fix is to add the argument cmd_verify=False
to the relevant send_command() calls.
Great, it worked
Thank you!
@assadniang I happen to have one of those old ATT-V150 devices and have been unable to figure out the default uBMC is_admin account password to make it useful (https://github.com/silicom-ltd/uBMC/issues/2#issuecomment-1240887825). Is that something you could share with me, please?
Platform is Vyatta
Here is the manual ssh:
My script used to work well with 2.4.2, after the upgrade to 3.0 all my expect_string fail with pattern not found:
Here is part of the script that fails, it runs a ssh command, then input the password, after the password input, the expected prompt is "ubmc>", it says that it cannot find the prompt and fails
This was working fine in 2.4.2, but fails in 3.0
Output:
Log: