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

Problem in my EEM : no tty lines available

Chaker BCHIR
Level 1
Level 1

Hello,

 

I tried to config an EEM wich detect a change in configuration and alerte it by log messages.

So, the config was :

archive
 log config
  logging enable
  logging size 500
  notify syslog contenttype plaintext
  hidekeys

 

event manager applet Cfg_Change 
event syslog pattern ".*%PARSER-5-CFGLOG*."
 action 1 cli command "enable"
 action 2 cli command "show archive log config all"
 action 3 syslog msg "Config has been changed"
 action 4 cli command "clear archive log config force"

 

 

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.

6 Replies 6

Joe Clarke
Cisco Employee
Cisco Employee

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.

Hello

I have this problem too but I don't  understand what I have to do.triste

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?

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 "

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.

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.