I am trying to configure an event manager which will show the status of all of our DMVPN tunnels that are UP without being prompted with a pause(--More--).
This is the conig I am using for the EEM:
event manager applet DMVPN-Poll
event none
action 1.0 cli command "enable"
action 2.0 cli command "terminal length 0"
action 3.0 cli command "sho dmvpn | include UP | IKE"
action 4.0 puts "$_cli_result"
Whenever I run the job the terminal length does not get set to 0 but I do get the output of the show command... including the --More--.
Does anyone know how to configure EEM to disable the pause and set the terminal length to 0?
Thanks!
could be a IOS bug. I could swear I've done this before somewhere.
also here's an EEM article where the author executes your terminal length 0 perfectly.
http://mccltd.net/blog/?p=1803
Thanks Wintermute! I read that link along with a few others that were doing something similar so I would think this should work as well. I have tested it on a asr1001(15.2(4)S5) and a 891(15.2(4)M6) and it does not work on either router. I then tried to get fancy and include a very simple tcl script in the EEM.
**Created in notepad and saved as .tcl to the flash of both routers a file that has "terminal length 0" as its contents.
Then from the cli I enter "tclsh flash:/terminal_length.tcl" which runs the script and successfully changes the terminal length to 0. If I reset the terminal length to what it was before, 73, and then run the following EEM the terminal length still does not get set to 0:
event manager applet DMVPN-Poll
event none
action 1.0 cli command "enable"
action 2.0 cli command "tclsh flash:/terminal_length.tcl"
action 3.0 cli command "sho dmvpn | include UP | IKE"
action 4.0 puts "$_cli_result"
I'm starting to think that the terminal length cannot be configured from EEM... or maybe instead of displaying the output of the show command back to the cli I should save the output to a .txt file.