I need some advices/help on setup. I need to monitor the ping latency value on a destination/host.
In fact, I need to ping a destination IP, based on the latency result, if the latency of the ping(or round trip maybe) is more than lets say 15ms, I would need to shutdown a specific port, and vice-versa, if the ping come back under 12ms no shut the specific port.
My question, is it possible to use the IP SLA option to monitor the icmp latency value on a specific host/destination, and based the on result as I said, take a specific interface shut or no shut ? and running forever.
I guess I would need to use the IP SLA feature with the addition of an "event manager applet" for the interface action, also maybe track feature ?
Do you think it's possible ? Is there others options I could use to acheive my goal here ?
Device would be cisco 3600 or ASR920.
Thanks for help,
Solved! Go to Solution.
the below should work:
ip sla 1
ip sla schedule 1 life forever start-time now
event manager applet RTT
event timer watchdog time 30
action 1.0 cli command "enable"
action 1.1 cli command "show ip sla statistics 1 | include RTT"
action 1.2 regexp "Latest RTT:.([0-9]+)" "$_cli_result"
action 1.3 if $_regexp_result ge "15"
action 1.4 cli command "conf t"
action 1.5 cli command "interface GigabitEthernet0/0"
action 1.6 cli command "shut"
action 1.7 cli command "end"
action 1.8 elseif $_regexp_result le "12"
action 1.9 cli command "conf t"
action 2.0 cli command "interface GigabitEthernet0/0"
action 2.1 cli command "no shut"
action 2.2 cli command "end"
action 2.3 end