cancel
Showing results for 
Search instead for 
Did you mean: 

How to log static routes

How to log static routes

Ry
New Contributor

Hi all,

We have some L3 switches in our network with loads of static routes, we are also using OSPF for routing but he number of static routes are really high and I am hopping to get rid of many of them,

My question, is there any way to log the static routes in our routing tables? so I would know which static route has been hit or not, for safely removal of the static routes,

I am a Cisco engineer and trying to get my head around ExtremOS, any help would be appreciated

 

Thanks

1 REPLY 1

DeoHeo
New Contributor III

There would be the possibility to realize that via SNMP. If you have a monitoring system, you can probably add it there.

You would have to get the OID that shows you the information you like. You can find the OIDs in the MIB for your EXOS version.
You can then query this OID via SNMP. Example:
check_snmp -H 172.29.1.93 -C SuPeRsEcReT -P 2c -o iso.3.6.1.4.1.9.392.1.3.1.0
Then either build a small script which runs on a server or you can add it to your monitoring system. Example for Check MK:
https://forum.checkmk.com/t/add-single-oid/17534/4

Maybe it is much easier to do it from the logs, but the solution came to my mind immediately. If you still need help with SNMP, OID or MIB you are welcome to ask.

GTM-P2G8KFN