Forum Discussion

coolhill_17403's avatar
coolhill_17403
Icon for Nimbostratus rankNimbostratus
Mar 14, 2011

The question about bandwidth of link

Hello everyboday, I want to record the bandwidth of link. so I used a iRules to solve this problem

 

when CLIENT_ACCEPTED {

 

set Gateway_Tel 1.1.1.1

 

set Gateway_Cnc 2.2.2.2

 

log local0. "bandwidth is: [ROUTE::bandwidth [IP::local_addr] $Gateway_Tel]"

 

log local0. "bandwidth is: [ROUTE::bandwidth [IP::local_addr] $Gateway_Cnc]"

 

}

 

 

but the log always display a value of "0". Why?

 

 

Thanks!

3 Replies

  • Per the wiki page:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/ROUTE__bandwidth.html

     

     

    Collection for this statistic is not yet implemented; hence it always has a value of 0.

     

  • It looks like TCP::bandwidth was also disabled in 9.4.2:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/TCP__bandwidth.html

     

     

    You could open a case with F5 Support to find out more about these two commands and whether there are plans to bring back this type of functionality.

     

     

    Aaron