ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.58k stars 1.3k forks source link

Netmiko 3.4.0 interactively change password on f5_tmsh_ssh #2623

Open jalbai opened 2 years ago

jalbai commented 2 years ago

Hi

I tried to make a script to interactively change the password on f5 from tmsh

the cli commands will look like this

[user@bigip:Active:Changes Pending] ~ # tmsh user@(bigip)(cfg-sync Changes Pending)(Active)(/Common)(tmos)# modify auth password root changing password for root new password: #nothing will appear when the new password is inserted confirm password: #nothing will appear when the password is confirmed user@(bigip)(cfg-sync Changes Pending)(Active)(/Common)(tmos)#

No matter what I have tried

send_command send_command_expect send_command_timing write_channel

is not working and I think this is related with the fact that password is hidden as nothing is shown when the password is introduced.

Is there any way to tell netmiko not to search for a pattern when a hidden password is introduced?

Thanks

ktbyers commented 2 years ago

You didn't post any code?

Are you setting cmd_verify=False as an argument to send_command?