08-23-2023 08:09 AM - edited 08-23-2023 08:09 AM
The command microcode reload cellular x x modem-provision bootflash:fw_image expects 2 confirm questions
Reload microcode? [confirm]
Log status of firmware download in router flash?[confirm]
I believe we can pass a single return action but can you please let me know how can I pass return to both these questions via an EEM applet?
event manager applet testUpgrade
event none
event 1.1 cli command "micocode reload cellular x x modem-provision bootflash:fw_image" pattern "confirm"
event 1.2 cli command ''
Solved! Go to Solution.
08-24-2023 08:30 AM
Ended up adding another pattern to the confirmation.
event manager applet testUpgrade
event none maxrun 500000
action 1.1 cli command "enable"
action 1.2 cli command "microcode reload cellular x x modem-provision bootflash:fw_image" pattern "confirm"
action 1.3 cli command "" pattern "confirm"
action 1.4 cli command ""
08-23-2023 08:15 AM
may be try with Y and next one also Y
event 1.2 cli command 'Y'
08-24-2023 08:30 AM
Ended up adding another pattern to the confirmation.
event manager applet testUpgrade
event none maxrun 500000
action 1.1 cli command "enable"
action 1.2 cli command "microcode reload cellular x x modem-provision bootflash:fw_image" pattern "confirm"
action 1.3 cli command "" pattern "confirm"
action 1.4 cli command ""
08-24-2023 09:01 AM
Glad all good and working, thank you for the solution sharing with community
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