Re: EEM does'nt disconnect from vty line session and the line

From: Nick Matthews <matthn_at_gmail.com>
Date: Tue, 25 Jun 2013 22:28:07 -0400

Sounds like a bug - it shouldn't do this.

See this answer from EEM FAQ:
*Q.* Suppose my Tcl script gets in a loop; will it consume all the
resources and bring down my router?
 *A.* EEM supports enforcing a threshold on the maximum time policy
execution can take, and the default value is 30 seconds. Unless you
explicitly remove the control or extend the maximum run-time limit, the
system will terminate any policy execution in 30 seconds. In addition, with
EEM 4.0, you can limit the maximum amount of system resources EEM policies
can consume, block new policy execution when the system is already busy
with existing functionalities, as well as, set policy priorities.

http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6550/prod_qas0900aecd803b1169_ps6815_Products_Q_and_A_Item.html

-nick

On Tue, Jun 25, 2013 at 11:59 AM, Josepha HODE <josephahode_at_gmail.com>wrote:

> Dear all,
>
> Dear,
>
>
>
> i use eem to shutdown or no shutdown a bgp session with one supplier and i
> remark that the vty session which eem doing remain idle all time and
> saturates vty line that fact, at a given moment, eem no longer works.
>
>
>
> event manager applet SET-UP-S1-BGP
>
> event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2 get-type exact entry-op eq
> entry-val 2 exit-op eq exit-val 1 poll-interval 5
>
> action 1.1 cli command "enable"
>
> action 1.2 cli command "conf t"
>
> action 1.3 cli command "router bgp xxxxx"
>
> action 1.4 cli command "no neighbor supplier1 shutdown"
>
> action 1.5 cli command "end"
>
> action 1.6 cli command "exit"
>
>
>
>
>
> event manager applet SET-DOWN-S1-BGP
>
> event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2 get-type exact entry-op eq
> entry-val 1 exit-op eq exit-val 2 poll-interval 5
>
> action 1.1 cli command "enable"
>
> action 1.2 cli command "conf t"
>
> action 1.3 cli command "router bgp xxxxxx"
>
> action 1.4 cli command "neighbor supplier1 shutdown"
>
> action 1.5 cli command "end"
>
> action 1.6 cli command "exit"
>
>
>
> The show users for ewample show:
>
>
>
> RT-SUPPLIER1#sh users
>
> Line User Host(s) Idle Location
>
> 322 vty 0 idle 1d05h EEM:SET-UP-S1-BGP
>
> 323 vty 1 idle 1d05h EEM:SET-UP-S1-BGP
>
> 324 vty 2 idle 1d05h EEM:SET-UP-S1-BGP
>
> 325 vty 3 idle 1d03h EEM:SET-UP-S1-BGP
>
> 326 vty 4 idle 1d02h EEM:SET-DOWN-S1-BGP
>
> 327 vty 5 idle 1d02h EEM:SET-UP-S1-BGP
>
> 328 vty 6 idle 1d01h EEM:SET-DOWN-S1-BGP
>
> 329 vty 7 idle 1d01h EEM:SET-UP-S1-BGP
>
>
>
> How can i configure the eem or force it to disconnect after running. Or use
> another thing which will close automatically all idle line session.
>
>
>
> Thanks.
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Tue Jun 25 2013 - 22:28:07 ART

This archive was generated by hypermail 2.2.0 : Mon Jul 01 2013 - 06:58:42 ART