Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 12

how to see active interface on a router with backup

hi all

does anyone have a solution on how to show which interface/link is live in a router, if it has say 2 fixed lines into one router, or it has DSL, and then a 3G backup blah blah blah.

I am sure it is a universal poller, but just wondering if anyone knows where to start?



0 Kudos
4 Replies

Show where?

I assume this is an edge router with a default route pointing to a hub site? if so, I'd go for the routing table and see which interface has the default route.

that would return the InterfaceIndex which is a column on the Interfaces table that would (with the NodeID) give me the InterfaceID that I can then use to jump to the current active interface.

0 Kudos
Level 12

ahh, so can a single uDNP bring back the routing table in a format to present on the node-details page?

0 Kudos


However you don't need the whole routing table, you need one entry: IP-FORWARD-MIB::ipCidrRouteIfIndex.

which on one of my leaf-routers returns '6'

Then write a little bit of SWSQL to join together interfaces, custompollerassignment, and custompollerstatus to get the interface attributes you want to display.

Writing sql is somewhat of a requirement if you're doing anything advanced with SWO, so download the SDK and play around with with SWSQL tool.

aside: I would not bother with this in my environment: the primary interfaces I monitor with up/down status alerts, and any backup interfaces I allow to be 'unpluggable'.

On the hub routers we make use of interface alerts and use those to work with the telcos to restore the primary service to sites.

I don't really care which interface is active at a time: if the primary interface is broken, or that the node is down (both the primary and backup interfaces are down)


0 Kudos
Level 10

If I understand your question correctly, you can look at the routing table to look for a route to This would most likely be the live route, but if you have load balancing or static route it depends where the destination is. If this does not help, can you better describe your question better.

0 Kudos