- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Network Programmability
-
NX-OS
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Connect with me https://bigevilbeard.github.io
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
