Make sure you have a static host route for the SLA's, in case the interface
stays up, or they will start following the default even though you are
sourcing them from the physical interface.
Ip route 64.x.x.x 255.255.255.255 fastethernet0/0 y.y.y.y
Ip route 10.x.x.x 255.255.255.255 fastethernet0/1 y.y.y.z
This should get you close:
event manager environment _email_server ip.address.mail.server
event manager environment _email_to user_at_example.com
event manager environment _email_from router_at_example.com
event manager applet track111down
event track 111 state down maxrun 90
action 10.0 info type routername
action 11.0 cli command "enable"
action 12.0 cli command "clear ip nat translation *" action 20.0 mail
server "$_email_server" to "$_email_to" from "$_email_from" subject
"hostname:$_info_routername FastEthernet0/0 DOWN" body "FastEthernet0/0 DOWN
$_cli_result"
action 21.0 syslog msg "track111down - FastEthernet0/0 DOWN"
event manager applet track111up
event track 111 state up maxrun 90
action 10.0 info type routername
action 20.0 mail server "$_email_server" to "$_email_to" from
"$_email_from" subject " hostname:$_info_routername FastEthernet UP" body
"FastEthernet0/0 UP"
action 21.0 syslog msg "track111up - FastEthernet0/0 UP"
David
-- http://dcp.dcptech.com -----Original Message----- From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of Vishal Rane Sent: Thursday, May 24, 2012 4:12 AM To: ccielab_at_groupstudy.com Subject: EEM Script 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.netReceived on Thu May 24 2012 - 08:59:08 ART
This archive was generated by hypermail 2.2.0 : Sun Jun 17 2012 - 09:04:20 ART