Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version 12.4
- !
- track 1 rtr 123 reachability
- !
- ip route 0.0.0.0 0.0.0.0 37.77.176.177 track 1
- ip route 0.0.0.0 0.0.0.0 31.24.0.193 254 name ADSL_Backup
- !
- ip sla 123
- icmp-echo 37.77.176.177 source-interface FastEthernet0/0
- timeout 6000
- frequency 10
- ip sla schedule 123 life forever start-time now
- !
- event manager applet IP-SLA-123-TIMEOUT
- event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.123 get-type exact entry-op eq entry-val 1 exit-op eq exit-val 2 poll-interval 5
- action 1.0 syslog priority critical msg "37.77.176.177 not reachable - primary line is down"
- action 1.1 mail server "31.24.0.196" to "[email protected]" from "[email protected]" subject "IP SLA 123 Timeout" body "Timeout on the primary line"
- event manager applet IP-SLA-123-OK
- event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.123 get-type exact entry-op eq entry-val 2 exit-op eq exit-val 1 poll-interval 5
- action 1.0 syslog priority critical msg "37.77.176.177 is reachable - primary line is back up"
- action 1.1 mail server "31.24.0.196" to "[email protected]" from "[email protected]" subject "IP SLA 123 Restored" body "Primary line restored"
- !
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement