cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1264
Views
0
Helpful
0
Replies

Error while registering an EEM Tcl Script

I have two questions:

1) If I try to register script (in attachment) I receive an error. Why?

R5#dir flash: | inc find
276 -rw- 585 Jan 17 2017 22:39:58 +00:00 find.tcl
R5(config)#event manager directory user policy flash:
R5(config)#event manager policy find.tcl
EEM Register event failed: Error empty reg spec, policy does not start with EEM registration commands.

EEM configuration: failed to retrieve intermediate registration result for policy find.tcl

When I use tclsh all works fine:

R5#tclsh find.tcl interface 192.168
interface GigabitEthernet0/0
ip address 192.168.88.252 255.255.255.0
duplex auto
speed auto
media-type rj45

2) from here

https://supportforums.cisco.com/discussion/13142221/need-tcl-script-run-show-command-piped-incexcredir-options

Joe Clarke has wrote:"These days I do not recommend using tclsh for any production use if you don't have to"

What problem we will have with similar scripts (like in attachment) if we try to use it on regular basis with tclsh, not eem?

0 Replies 0