cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
506
Views
1
Helpful
3
Replies

Reply to multiple confirm messages using EEM

vinand
Cisco Employee
Cisco Employee

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 ''

 

 

1 Accepted Solution

Accepted Solutions

vinand
Cisco Employee
Cisco Employee

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 ""

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

may be try with Y and next one also Y

event 1.2 cli command 'Y'

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

vinand
Cisco Employee
Cisco Employee

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 ""

Glad all good and working, thank you for the solution sharing with community

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card