Home > CISCO, EEM Scripts > Cisco EEM Applet – interface rxload | apply ACL when threshold reached

Cisco EEM Applet – interface rxload | apply ACL when threshold reached

September 7th, 2013

INTERFACE EVENTS:
Two EEM applets measure rxload on an interface at 30-second intervals.  When a threshold is reached an ACL is applied to only permit important traffic thereby reducing the load.

1) When the Rx load is above 50% the access-list is applied.
2) When the Rx load goes below 25, the access-list is removed.
event manager applet Interface_Load_UP
event tag 1 interface name FastEthernet1/0 parameter rxload entry-op gt entry-val 50 entry-type value poll-interval 30
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “int fa1/0”
action 1.3 cli command “ip access-group CRITICAL_TRAFFIC in ”
action 1.4 cli command “end”

event manager applet Interface_Load_Down
event tag 1 interface name FastEthernet1/0 parameter rxload entry-op lt entry-val 25 entry-type value poll-interval 30
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “int fa1/0”
action 1.3 cli command “no ip access-group CRITICAL_TRAFFIC in ”
action 1.4 cli command “end”

Categories: CISCO, EEM Scripts Tags:
Comments are closed.