08-13-2023 04:03 AM
I try to install a new nxos image on the C9500 switch using python.
I am thinking of using netmiko to connect to the device and issue "install all nxos bootflash:nxos.newversion.bin". Ideally, there should have no intervention for the installation, but during the process, there is a step asking if I want to continue, is there a way to automatically enter Y to let the process proceed?
Solved! Go to Solution.
08-13-2023 06:04 PM
Thank you for the advice.
I could not find the send_input method online, but while search for it, I found kirk's example for expect_string which help to resolve the issue.
Thank you for your advice
08-13-2023 06:32 AM
The send_input() method takes a string as a parameter, and it will send that string to the device. Example
net_connect.send_input('Y')
Hope this helps.
08-13-2023 06:04 PM
Thank you for the advice.
I could not find the send_input method online, but while search for it, I found kirk's example for expect_string which help to resolve the issue.
Thank you for your advice
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide