Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Problem in my EEM : no tty lines available

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.

4 REPLIES
Cisco Employee

EEM requires two free VTY

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.

New Member

HelloI have this problem too

Hello

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

Cisco Employee

I explained why this happens

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?

New Member

when I executed the command

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 "

416
Views
0
Helpful
4
Replies
CreatePlease login to create content