close

 

ip sla 11
icmp-echo X.X.X.X source-interface Serial0/1/1 //PING的方式偵測
threshold 5000
timeout 2000
frequency 2
ip sla schedule 11 life forever start-time now //啟動指令,沒下此指令,不會啟動IP SLA機制

track 1 rtr 11 reachability  //搭配Track來確認狀態
delay up 10 //偵測到UP,延遲10秒後,才通知

event manager session cli username EEM  //搭配EEM,可以達到設備自動下達指令或發送Syslog的功能
event manager applet TRACK_down
event track 1 state down
action 1.0 cli command "enable"
action 2.0 cli command "send log ###change Se0/1/1 Down ###"
action 3.0 cli command "conf t"
action 4.0 cli command "int se 0/1/1"
action 5.0 cli command "ip ospf cost 64"
action 6.0 cli command "end"

event manager applet TRACK_up
event track 1 state up
action 1.0 cli command "enable"
action 2.0 cli command "send log ###change Se0/1/1 UP ###"
action 3.0 cli command "conf t"
action 4.0 cli command "int se 0/1/1"
action 5.0 cli command "ip ospf cost 1"
action 6.0 cli command "end"

 


 

arrow
arrow
    文章標籤
    ip sla EEM Track
    全站熱搜

    鵝 發表在 痞客邦 留言(0) 人氣()