IP SLA TCP-Connect object and getting it to syslog
I have an ip sla that is doing a tcp-connect to a web host to check availability.
I'm using a track command to then remove a route accordingly (failover through another route due to static routing).
I have a need to syslog this so that I can then have my syslog server report this to me.
change events are not syslogging and the TAC has suggest an IOS upgrade as a possible path. However this is on my core 6500 router and i'd rather not do an upgrade (and thus downtime) if at all possible.
note# routes below are for a test case that I have that is working and I can easily change to do with default routes once I get the test case to show syslogs so I can come in to work, and KNOW somethings changed without having to look at the device.
ip sla monitor logging traps ip sla monitor 1 type tcpConnect dest-ipaddr 18.104.22.168 dest-port 443 control disable ip sla monitor reaction-configuration 1 connection-loss-enable ip sla monitor schedule 1 life forever start-time now
track 1 rtr 1 reachability delay down 1 up 1
so my route that I change when it's up is this:
ip route 22.214.171.124 255.255.255.0 172.16.0.199 10 track 1
and when it fails I have a static route of metric 100 that takes over because the above is removed.
this works wonderfully, however, NO SYSLOG EVENTS.
I tried implemented an EEM script, however as i'm on version 2.1 I cannot do the 'event TRACK' command based using SNMP.
has anyone done anything like this? Any thoughts on a better way to get something to log? can i make a script to look at my route tables? That would work for me i suppose.
thanks in advance.
this is on a 6509 running s72033-ipservicesk9_wan-mz.122-33.SXH.bin for an image.
If this question is best suited somewhere else, admins: please feel free to move it.
This is the sign you have been waiting for. It's the year you apply to become a Cisco Champion. As a Cisco Champion, you’ll:
Get early insights into new Cisco products and solutions
Receive access to Cisco’s engineering rock stars
Expand your ...
Discover how your network can power hybrid work with no compromise in security, agility, or experience.
Join us on Wednesday, February 23 at 10:00 AM PT / 1:00 PM ET for insights on innovations in Wi-Fi 6E, private 5G and more.
Hear from our panel of cus...
Listen: https://smarturl.it/CCRS9E3Follow us: https://twitter.com/CiscoChampion
Esports is booming and Cisco is taking a front seat in the future of Esports in a big way. Game publishers, professional teams, tournament organizers and venue owners ar...
Cisco recently announced the availability of the IOS-XE train – IOS-XE Cupertino 17.7.1. This is a standard maintenance release supporting switching, wireless, SP-Access, Routing as well as IoT (Internet of things) platforms with a sustaining support life...