Re: EEM Script

From: Joe Sanchez <marco207p_at_gmail.com>
Date: Fri, 25 May 2012 10:37:35 -0500

Vishal,

There are lots of ways to do this, but I would suggest looking at these
links first.
https://supportforums.cisco.com/community/netpro/private/pilot/eem

http://www.cisco.com/en/US/partner/docs/ios/netmgmt/configuration/guide/nm_eem_overview.html#wp1070759

http://www.cisco.com/en/US/partner/docs/ios/netmgmt/configuration/guide/nm_eem_policy_cli.html

You have a lot of examples already of the things you can do, you have lots
of detectors you can use to trigger the EEM to do a CLI to clear xlate.
Good luck

JS
On Thu, May 24, 2012 at 3:12 AM, 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

Blogs and organic groups at http://www.ccie.net
Received on Fri May 25 2012 - 10:37:35 ART

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