Forum Discussion
Jeff_41411
Altocumulus
Aug 24, 2010Determine pools defined for WideIP
Hi,
Is there a way with an iRule (attached to a WideIP) to determine:
1) the list of pools defined (all pools, regardless of state) for that WideIP, in the same order they are defined (for global availability) - or if the order number is another property that's fine.
2) in order to to determine 1, I think I may also need to know which WideIP it is
I'd like to write this rule in a way that it can be used across a number of WideIP's, without hard coding an iRule for each one. It seems these things would be some sort of global variable or something like that - but I'm not finding what I need in my searches.
Thanks in advance for any help!
Jeff
- JRahm
Admin
I'm not sure order is possible, but you can return the pools belonging to a wideIP: - Colin_Walker_12Historic F5 AccountIf you REALLY need order, I'm positive you could hack together some custom logic to order them somehow, it's just a matter of whether or not it's worth your time/effort and the cycles it will take in the iRule to execute all the custom logic each time the iRule is executed.
- Jeff_41411
Altocumulus
Thanks for the response! I had found the 'wideip name' variable. - JRahm
Admin
Test to be sure, but the description in the wiki indicates it will return only the pools attached to the wideip. - Jeff_41411
Altocumulus
Thanks to everyone for the help - I did get this working with the following (rather simple) code: - Jeff_41411
Altocumulus
According to the documentation:
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects