cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3224
Views
25
Helpful
15
Replies

EEM Script issue blocking show run

Mark Malone
VIP Alumni
VIP Alumni

Hi

any TCL wizards out there may be able to help me with this script

We have huge menus running on our devices and I wanted to block the menu and alias syntax from the running config

I put this script together from bits on the forums and its working well , when you check sh run ... you don't see menu commands or alias

The issue is its not allowing the shortcut command anymore like sh run int g0/0/0 , instead it shows the whole sh run

I have tried a few things to alter it but getting no where

any help appreciated scripting's not my strong point thanks

This is what I have so far

event manager applet MenuBlock
 event cli pattern "show run" sync yes
 action 111 cli command "enable"
 action 112 cli command "show run | excl menu|alias"
 action 114 puts "$_cli_result"
 action 115 set _exit_status "0"

15 Replies 15

Great thanks Joe ill try that and bounce it off TAC too see what they say , appreciate that