04-23-2015 11:33 AM
I need to track if an IP is up with ICMP, Source IP: 192.168.249.1 Dest IP: 192.168.249.2 on port FastEthernet fa0/19
I do not understand how the weights work here with the UP or Down Status can you please explain. I modified your commands a bit and this is what I got, can you let me know if I am on the right path or a better way to do it:
track 10 ip sla 10
 delay down 10
!
track 19 list threshold weight
 object 10 weight 70
 threshold weight down 30 up 70
authentication mac-move permit
ip sla 10
 icmp-echo 10.13.249.2 source-ip 10.13.249.1
 timeout 300
 frequency 5
ip sla schedule 10 life forever start-time now
ip sla enable reaction-alerts
 
event manager applet Remote_Site_Up
 event syslog pattern "TRACKING-5-STATE: 19 list threshold weight Down->Up"
 action 1.0 cli command "enable"
 action 2.0 cli command "config t"
 action 3.0 cli command "interface FastEthernet0/19"
 action 4.0 cli command "no shut"
 action 5.0 cli command "end"
event manager applet Remote_Site_Down
 event syslog pattern "TRACKING-5-STATE: 19 list threshold weight Up->Down"
 action 1.0 cli command "enable"
 action 2.0 cli command "config t"
 action 3.0 cli command "interface FastEthernet0/19"
 action 4.0 cli command "shut"
 action 5.0 cli command "end"
--------------------------
This is the status with the show track command:
Track 10
  IP SLA 10 state
  State is Up
    1 change, last change 00:29:35
  Delay down 10 secs
  Latest operation return code: OK
  Latest RTT (millisecs) 1
Track 19
  List threshold weight
  Threshold Weight is Up (70/70)
    2 changes, last change 00:29:34
    object 10 weight 70 Up (70/70)
  Threshold weight down 30 up 70
- See more at: https://supportforums.cisco.com/discussion/12302681/eem-event-track-not-supported-version-32#sthash.AfIUIdTa.dpuf
 
					
				
		
04-24-2015 07:40 AM
If all you are about is tracking the ICMP reachability (up or down), then just use track 10 in your applets. What you have will be fine. You will see a 10 second delay after ICMP fails before the tracked object will go down, and thus the down applet will trigger.
08-26-2015 05:02 PM
Hello,
We are trying to use these commands now, we do not have the "event track 1 state down" command on the EEM, what alternative would you recommend?
We only have the following options:
Switch(config-applet)#event ?
  application         Application specific event
  cli                 CLI event
  counter             Counter event
  identity            Identity event
  interface           Interface event
  ioswdsysmon         IOS WDSysMon event
  ipsla               IPSLA Event
  mat                 MAC address table event
  neighbor-discovery  Neighbor Discovery event
  none                Manually run policy event
  oir                 OIR event
  routing             Routing event
  rpc                 Remote Procedure Call event
  snmp                SNMP event
  snmp-notification   SNMP Notification Event
  snmp-object         SNMP object event
  syslog              Syslog event
  tag                 event tag identifier
  timer               Timer event
The following are the commands we are trying to use for SLA:
ip sla 10
icmp-echo 10.13.246.1
timeout 2000
threshold 2000
frequency 3
ip sla schedule 10 life forever start-time now
track 1 ip sla 10 reachability
delay down 9 up 9
| 
 
 Event manager applet Enlace_down event track 1 state down action 1.0 syslog msg "Problema enlace. Ping failed!" action 2.0 cli command "enable" | |||
| action 3.0 cli command "config t" | |||
| action 4.0 cli command "interface FastEthernet0/19" | |||
| action 5.0 cli command "shut" | |||
| action 6.0 cli command "end" | |||
 
					
				
		
08-26-2015 07:52 PM
Use syslog instead. You should see a syslog message when a tracked object transitions from Up to Down and vice versa. E.g., "TRACK.*Track 1.*Up->Down"
 
					
				
				
			
		
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide