Forum Discussion

Theo_12742's avatar
Dec 15, 2015

iRule based on Device Info

I have an iRule that we copy across data centers that redirects traffic based on a cookie, but defaults to the local data center. We are trying to automate the default selection based on the hostname of the current F5 device.

 

Is there any way to get device-level information in an iRule, possibly an already-existing static variable? Is there a reference for those?

 

EDIT: I did find the tcl_platform(machine) variable, but our environment is still on v10. Is there any way to do this in v10?

 

1 Reply

  • HI Theo,

    you may try

    [info hostname]
    instead of using static::tcl_platform(machine). But I'm not sure if this command will work on v10 platforms?

    Cheers, Kai