04-14-2022 01:31 AM
I have 2 ISPs connected with load balancing configuration, I automate the load share using IP SLA tracks which trigger EEM to run CLI the following CLI commands:
event manager applet ISP_1_DOWN !no event manager applet ISP_1_DOWN event track 1 state down action 1.0 cli command "enable" action 2.0 cli command "config t" action 3.0 cli command "no ip route 0.0.0.0 0.0.0.0 dialer 1" action 4.0 cli command "exit" action 5.0 cli command "" action 6.0 cli command "end" action 7.0 syslog msg "ISP 1 is DOWN!" exit event manager applet ISP_1_UP !no event manager applet ISP_1_UP event track 1 state up action 1.0 cli command "enable" action 2.0 cli command "conf t" action 3.0 cli command "ip route 0.0.0.0 0.0.0.0 dialer 1" action 4.0 cli command "exit" action 5.0 cli command "" action 6.0 cli command "end" action 7.0 syslog msg "ISP 1 is UP!" exit
I am getting the following error repeatedly:
Unable to establish CLI session: 'Embedded Event Manager' detected the 'fatal' condition 'no tty lines available, minimum of 2 required by EEM'
What is the problem?
04-14-2022 04:52 AM
Hello,
try it:
event manager applet ISP_1_UP authorization bypass
event manager applet ISP_1_DOWN authorization bypass
04-14-2022 06:40 AM
action 5.0 cli command ""
what is this line ? why empty here ? remove that line and test it (also clear vty lines)
Looks for me script not ending from VTY lines
show line
show line summary
04-14-2022 07:43 AM
follow
04-14-2022 11:00 AM
EEM runs like any other user and consumes a tty line just like a normal user. EEM will not use the last tty line and that is what the message means. There must be at least 2 tty lines available in order for EEM to run.
04-14-2022 09:10 PM
@Dan Frey Hi Daniel, What is a tty line?
I googled and read about it. But unsure how my commands do not have or have tty lines.
04-15-2022 01:40 AM
Hello,
I think creating more VTY lines could help:
ISR4451#conf t
ISR4451(config)#line vty 0 100
04-15-2022 12:48 PM
I have provided the command to look for TTY lines :
Looks to me script does not end from VTY lines
show line
show line summary
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide