The following iRule works well, but I’m in need of some expert help altering this to accept a number equal to the 4th octet of the member IP, looking at more than one pool.
I’d like to put this one iRule on two VIPs (so it’s more generic) and be able to select a member from 2 pools (the default of each VIP) from either VIP. So, pass in member=23 and look at 2 pools at the same time to find 192.168.1.23
This is to facilitate a test request for application support to a server in either the live pool (using the live VIP) or the ‘dark’ pool (but via the same live VIP). the LTM VIPs alternate based on GTM setting. Both VIPs/Pools are on the same LTM.
I’m ok with coding the two pool names, so merge the members from both pools to find the matching member/IP.
would give you the 4th octet of a pool members IP. Not exactly sure what you are wanting to change in that iRule, but this snippet should get you started.
I’m wondering how to combine two pools worth of member lists (or look in each pool separately) to find the matching member IP (in the noted iRule, it does a lIndex to pick the member from a sorted list, not real sure how to best alter that part to search the list for content matching on the 4th octet)
why are you searching for a specific pool member? Why not just use the node command if you know the specific node you are trying to send traffic to? Big picture, what are you trying to accomplish?
call the website with a URI param to connect to a specific server in one of the two pools and set a session cookie to persist for the session…so support can troubleshoot a single server in either the live pool or ‘dark’ pool. I suppose putting the entire IP in the URI as the param would be ok, figured just the 4th octet would be easier to type in. This app is also mobile enhanced so less typing would be desirable.