TROUBLE FINDING ROUTES IN CHECK POINT VSX?
March 24, 2015 | Filed Under: Check Point
Check Point VSX is pretty awesome. A single management plane, consolidation of gateways and in R77.20, route addition via the dashboard. If you have a lot of virtual systems on your VSX platform, you probably also have a lot of routes associated with each VS on the system. Here is a quick one-liner that will print out the route you are looking for along with the context (VS) it is associated with.
for OUTPUT in $(clish -c “show virtual-system all” | awk ‘{print $1}’ |sed /Virtual/d |sed /VS/d); do vsenv $OUTPUT; netstat -rn| grep X.X.X.X ;done
Where X.X.X.X above is equal to the route you are looking for on one of your many firewall gateways. This command can be ran from any context. Example output:
You have now saved yourself a lot of time. Go and celebrate with coffee.