I built an EEM menu into my routers to expedite results. Currently -below- is my IPSec MENU. This EEM script is 4+ pages long and thus would like to modularize the menu into separate modules for ease of updates and any EEM troubleshooting.
In my attempt to modularize the menu, I created one applet named MENU and 7 sub-applets (choices 1-7) that will be called from the MENU applet using the "action # publish-event sub-system" option. The sub-applets use the "event application sub-menu" option. From the MENU, I choose option 1 which calls module 1. This does work except now all of the show command output that use to show in the terminal windows is now only showing in the router log.
1 - Show ISAKMP IKEv2 session status 2 - Show IPSec IKEv2 session status 3 - Show all configured IKEv1/IKEv2 peers 4 - Show all Crypto IKEv1 sessions 5 - Clear Crypto sessions using IKEv2 6 - Clear all Crypto IKEv1 & IKEv2 sessions 7 - Capture packets and automatically tftp
How can I get the show command output data to return to the terminal window?
Is there a better way to modularize this script using EEM and without resorting to another language?
Platform: CSR1000v IOS-XE 16.10 Gibraltar running in ESXi VMware 6.5 and VMware Workstation Pro 14