Forum Discussion
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
instead of using static::tcl_platform(machine). But I'm not sure if this command will work on v10 platforms?[info hostname]Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com