04-13-2014 12:19 PM
Hello,
I tried to config an EEM wich detect a change in configuration and alerte it by log messages.
So, the config was :
archive
event manager applet Cfg_Change
|
When I tried this EEM, I shut an interface in my router, the msg logs are bellow :
R1(config)#int fastEthernet 0/0 R1(config-if)# *Apr 13 18:50:14.883: %PARSER-5-CFGLOG_LOGGEDCMD: User:console logged command:interface FastEthernet0/0 *Apr 13 18:50:14.915: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable *Apr 13 18:50:14.955: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable *Apr 13 18:50:14.991: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable R1(config-if)#sh R1(config-if)# *Apr 13 18:50:15.011: %HA_EM-3-FMPD_CLI_CONNECT: Unable to establish CLI session: no tty lines available, minimum of 2 required by EEM *Apr 13 18:50:15.011: %HA_EM-3-FMPD_ERROR: Error executing applet Config-Change statement 1 R1(config-if)# *Apr 13 18:50:15.059: %HA_EM-6-LOG: Config-Change: Config has been changed *Apr 13 18:50:15.087: %HA_EM-6-LOG: Config-Change: Config has been changed *Apr 13 18:50:15.135: %HA_EM-6-LOG: Config-Change: Config has been changed *Apr 13 18:50:16.011: %PARSER-5-CFGLOG_LOGGEDCMD: User:console logged command:shutdown *Apr 13 18:50:16.135: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable *Apr 13 18:50:16.171: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable *Apr 13 18:50:16.203: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable *Apr 13 18:50:16.223: %HA_EM-3-FMPD_CLI_CONNECT: Unable to establish CLI session: no tty lines available, minimum of 2 required by EEM *Apr 13 18:50:16.223: %HA_EM-3-FMPD_ERROR: Error executing applet Config-Change statement 1 R1(config-if)# *Apr 13 18:50:16.263: %HA_EM-6-LOG: Config-Change: Config has been changed *Apr 13 18:50:16.303: %HA_EM-6-LOG: Config-Change: Config has been changed *Apr 13 18:50:16.335: %HA_EM-6-LOG: Config-Change: Config has been changed R1(config-if)# *Apr 13 18:50:17.999: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down *Apr 13 18:50:18.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down |
So, my question is : what does mean : Unable to establish CLI session: no tty lines available, minimum of 2 required by EEM ??
And why when I executed the command "sh archive log config all", I don't find anything ??
Thanks.
04-13-2014 09:49 PM
EEM requires two free VTY lines when policies need to execute CLI commands. One is for EEM, and the other is left so that humans don't get locked out.
When you match on such a common syslog pattern, you can have up to (by default) five EEM policies run at once. If you don't have enough free VTY lines for them, then some will throw this message.
You can either allocate more VTY lines or reduce the number of EEM applet threads so less than five policies run in parallel.
04-15-2014 03:11 AM
Hello
I have this problem too but I don't understand what I have to do.
04-15-2014 06:51 AM
I explained why this happens as well as two ways to workaround the problem. What part of my previous post are you having trouble with?
04-15-2014 08:41 AM
when I executed the command "sh archive log config all", I don't find anything
and I get an error " %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user logged command:!exec: enable "
05-16-2018 08:32 AM
Any chance you could explain how you allocate more VTY lines to the EEM processes?
I'm running into the same issue at the OP. For the setup i have i need 3 EEM applets running at the same time. The 4400 router is the only one that's caused this problem. All other network devices don't seem to have a problem with it.
05-17-2018 02:03 AM
You cannot allocate more VTYs to EEM. EEM can use all of the available VTYs. So you need to create more VTYs. My 1941 supports up to 1370 VTYs, so if I do "line vty 0 1370" I see plenty of VTYs. You'll need to see how many your ISR can do.
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