My goal is to write a service check that pulls the status of a Cisco track list that is performing a Boolean OR
. I have a screen scraper in place currently, but that is really not ideal in terms of scaling this type of service check.
The track object below simply pulls out the tracked static route if object 10
and object 20
are both unreachable, allowing a BGP learned default route to be installed, that is otherwise in RIB-failure status.
Configuration Example:
!
track 10 ip sla 1 reachability
!
track 20 ip sla 2 reachability
!
track 30 list boolean or
object 10
object 20
!
ip sla 1
icmp-echo 8.8.8.8 source-ip 10.10.10.10
ip sla schedule 1 life forever start-time now
ip sla 2
icmp-echo 4.2.2.2 source-ip 10.10.10.10
ip sla schedule 2 life forever start-time now
ip route 0.0.0.0 0.0.0.0 10.10.10.1 track 30
It would be ideal to pull either the number of changes or the Boolean OR
status (up or down) from an OID.
HOSTNAME#show track 30
Track 30
List boolean or
Boolean OR is Up
14716 changes, last change 02:18:47
object 10 Up
object 20 Up
Tracked by:
STATIC-IP-ROUTINGTrack-list 0
I've been digging through the Google machine, forums and the Cisco SNMP Object Navigator to no avail.