Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

4G-Lte as primary and 4g-lte as backup.


I am  working on a project which requires 4G-Lte as primary internet connection and 4Glte as failover back connection. I was able to configure the ISR with primary and backup 4g and failover works great.   The issue i have is that my primary ISP only allows 10Gig data download/upload, after which they charge per gig.  I would like to find out a way with which i can failover to my secondary backup connection when my primary ISP reaches the 10Gig Limit.  Did anyone try this out ? Does this work for anyone ?



Cisco Employee

4G-Lte as primary and 4g-lte as backup.

You could use a timer event and periodically check the output bytes to see if you hit the 10GB limit.  The logic would be to run something like:

show int cell0 | inc packets output

Then parse the result to get the byte:

regexp {output, (\d+) bytes} $_cli_result -> bytes

Then set bytes to a floating point number:

set bytes "${bytes}.0"

Then divide to get GB:

set gbytes [expr $bytes / 1024.0 / 1024.0 / 1024.0]

Then test to see if it's above your threshold:

if { $bytes >= 10.0 } {

    # Perform CLI to fail over to backup link


Given the potential for large numbers, I think you'll need Tcl for this solution.