cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
818
Views
0
Helpful
1
Replies

ip sla logging not working

we've implemented ip sla on a WS-C3750G-48TS , but in show logging we're not able to see logs

#sh run | s sla
ip sla 1
 icmp-echo 1.2.3.4
 frequency 10
ip sla schedule 1 life forever start-time now
ip sla logging traps
snmp-server enable traps ipsla

#do sho histo                  
  ip sla restart 1
  end
  no
  snmp-server enable traps ipsla
  exit
  do sho hiso
  do sho histo
  exit
  no ip route 1.2.3.4 255.255.255.255 192.168.180.2
  exit
  do sho histo
  exit
  logging console informational
  do sho histo

but after deleting the route we only see failure in show ip sla statistics

#sho ip sla stat
IPSLAs Latest Operation Statistics

IPSLA operation id: 1
        Latest RTT: NoConnection/Busy/Timeout
Latest operation start time: 10:57:19 EET Wed Aug 31 2016
Latest operation return code: Timeout
Number of successes: 126
Number of failures: 32
Operation time to live: Forever

and nothing in the "show logging" output ..

we've also tried "logging console critical" ...

1 Reply 1

Mark Malone
VIP Alumni
VIP Alumni

Hi

I have not tested this but reading up on it , its not as simple as that you may require some form of eem for it to work with ip sla to get the log

see procdure in doc to get it working..................

The IP Service Level Agreement (SLA) measurement feature of Cisco IOS is extremely SNMP-oriented. For example, there is no easy way to generate a logging message when an SLA operation fails (or exceeds the threshold). However, Embedded Event Manager reading SNMP variables can help you get there.

http://blog.ipspace.net/2007/01/log-ip-sla-failures.html

Review Cisco Networking for a $25 gift card