{"id":1821,"date":"2013-09-07T10:06:12","date_gmt":"2013-09-07T09:06:12","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=1821"},"modified":"2013-09-07T10:07:35","modified_gmt":"2013-09-07T09:07:35","slug":"cisco-eem-applet-monitor-interface-rxload-and-apply-acl-when-threshold-reached","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=1821","title":{"rendered":"Cisco EEM Applet &#8211; interface rxload | apply ACL when threshold reached"},"content":{"rendered":"<p>INTERFACE EVENTS:<br \/>\nTwo EEM applets measure rxload on an interface at 30-second intervals.\u00a0 When a threshold is reached an ACL is applied to only permit important traffic thereby reducing the load.<\/p>\n<p>1) When the Rx load is above 50% the access-list is applied.<br \/>\n2) When the Rx load goes below 25, the access-list is removed.<!--more--><br \/>\nevent manager applet Interface_Load_UP<br \/>\nevent tag 1 interface name FastEthernet1\/0 parameter rxload entry-op gt entry-val 50 entry-type value poll-interval 30<br \/>\naction 1.0 cli command &#8220;enable&#8221;<br \/>\naction 1.1 cli command &#8220;conf t&#8221;<br \/>\naction 1.2 cli command &#8220;int fa1\/0&#8221;<br \/>\naction 1.3 cli command &#8220;ip access-group CRITICAL_TRAFFIC in &#8221;<br \/>\naction 1.4 cli command &#8220;end&#8221;<\/p>\n<p>event manager applet Interface_Load_Down<br \/>\nevent tag 1 interface name FastEthernet1\/0 parameter rxload entry-op lt entry-val 25 entry-type value poll-interval 30<br \/>\naction 1.0 cli command &#8220;enable&#8221;<br \/>\naction 1.1 cli command &#8220;conf t&#8221;<br \/>\naction 1.2 cli command &#8220;int fa1\/0&#8221;<br \/>\naction 1.3 cli command &#8220;no ip access-group CRITICAL_TRAFFIC in &#8221;<br \/>\naction 1.4 cli command &#8220;end&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>INTERFACE EVENTS: Two EEM applets measure rxload on an interface at 30-second intervals.\u00a0 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.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83,67],"tags":[],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1821"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1821"}],"version-history":[{"count":4,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1821\/revisions"}],"predecessor-version":[{"id":1824,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1821\/revisions\/1824"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1821"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}