{"id":883,"date":"2015-05-18T07:07:56","date_gmt":"2015-05-18T06:07:56","guid":{"rendered":"http:\/\/www.balajibandi.com\/?p=883"},"modified":"2019-05-18T08:53:25","modified_gmt":"2019-05-18T07:53:25","slug":"ipsla-and-eem-scripts","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=883","title":{"rendered":"IPSLA and EEM Scripts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Example :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">IP SLA check 1.1.1.1 reachable via gi 0\/0, if no shutdown the port G0\/1<br>========================================================================<br><br><br>ip sla 11<br>  icmp-echo 1.1.1.1 source-interface GigabitEthernet0\/0<br> ip sla schedule 11 life forever start-time now<br> ip sla reaction-configuration 11 react timeout threshold-type immediate<br> ip sla enable reaction-alerts<br><br> track 11 ip sla 11 reachability<br>  delay down 8 up 10<br><br> event manager applet shut_int<br>  event ipsla operation-id 11 reaction-type timeout<br>  action 1.0 if $_ipsla_condition eq \"Occurred\"<br>  action 1.1  cli command \"enable\"<br>  action 1.2  cli command \"conf t\"<br>  action 1.3  cli command \"interface gi0\/1\"<br>  action 1.4  cli command \"shut\"<br>  action 1.5  syslog msg \"End of EEM\"<br>  action 1.6 end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Example : IP SLA check 1.1.1.1 reachable via gi 0\/0, if no shutdown the port G0\/1========================================================================ip sla 11 icmp-echo 1.1.1.1 source-interface GigabitEthernet0\/0 ip sla schedule 11 life forever start-time now ip sla reaction-configuration 11 react timeout threshold-type immediate ip sla enable reaction-alerts track 11 ip sla 11 reachability delay down 8 up 10 event manager [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-ccie-rns","category-cisco"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=883"}],"version-history":[{"count":1,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/883\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/883\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}