EEM Script

From: me you <anunda19_at_gmail.com>
Date: Thu, 24 May 2012 19:38:23 +0700

I don't think there is a way to tie an eem directly to a track but you
could tie it to the syslog and clear the nat translations. Something like

Event man app CLEARNAT
Event syslog patter "copy and past syslog"
Action 1.0 cli command en
Action 2.0 cli command "clear ip nat"
Action 3.0 Mail server to from subject blablabla
        You have to set the email server and variables first

Eems are always fun to play with but if you have 2connections you should
load balance until one goes down which is even more fun then eems

Drinking beer in a beach in Thailand. YEA
rob

On Thursday, May 24, 2012, masroor ali <masror.ali_at_gmail.com> wrote:
> try this link
>
>
http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6815/whitepaper_c11-492226.html
>
> On Thu, May 24, 2012 at 12:12 PM, Vishal Rane <vishal.rane_at_hotmail.co.in
>wrote:
>
>> Hello Experts
>>
>> Can someone help me with an EEM Script.
>>
>> Scenario :
>> Router terminated Two internet links. if Link1 is down then all traffic
is
>> send to Link2 with help of IP SLA.
>> All services works fine except Internet Browsing,
>> on doing a manual step < clear IP NAT TRANS * > all works
>>
>>
>> so looking for help in configuring the EEM script that
>> clear IP NAT TRANS * when found the Internet Link1 is downtriggers an
Email
>> Alert to an email address that link1 is down
>> Default all traffic is going via FA0/0Here is NAT and IP SLA config
>>
>> track 111 ip sla 11 reachability
>> track 222 ip sla 22 reachability
>>
>>
>> ip nat inside source route-map P1 interface FastEthernet0/0 overload
>> ip nat inside source route-map P2 interface FastEthernet0/1 overload
>>
>>
>> ip sla 11
>> icmp-echo 64.x.x.x source-interface FastEthernet0/0
>> threshold 500
>> ip sla schedule 11 life forever start-time now
>>
>>
>> ip sla 22
>> icmp-echo 10.x.x.x source-interface FastEthernet0/1
>> threshold 500
>> ip sla schedule 22 life forever start-time now
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Thanks & Regards,
> Masroor Ali
>
>
> 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 Thu May 24 2012 - 19:38:23 ART

This archive was generated by hypermail 2.2.0 : Sun Jun 17 2012 - 09:04:20 ART