10-Jul-2017 12:16
Any Tool available to switch the WideIP Pools ? We frequently switch between DC's and have a requirement to switch the wideip form one DC to other by manipulating the Weights.
I came across below awesome tool/app which allows to disable/enable the LTM Pool members, on similar scale anything for GTM please ?
https://devcentral.f5.com/codeshare/virtual-server-pool-member-status-and-control
11-Jul-2017 08:14
do you have a sanitized and generic version of your config? Should be pretty simple to generate a quick command line script to swap pools.
11-Jul-2017 22:43
Hi Jason,
CLI tmsh command would only be for a specific WideIP. What I am looking for is a tool/application which can do similar as we have for LTM Pools members enable/disable.
I can give that tool to the Bridge team which can help in switching the DC's in dark hours. F5 engineer does not have to login to the GTM's and do the manual switching task.
12-Jul-2017 07:41
I was suggesting writing a script that would manage all of them, not a single existing command. I haven't done GUI work in some time, especially on windows.
14-Jul-2017 00:01
Jason if I understand that correct the script would amend the respective wide-ip for which I want to amend the pool members. By passing the respective parameters ? Any directions which you can provide on how to's ?
14-Jul-2017 07:36
Yep. Give me a generic configuration of wideIPs and pools/pool members and the business logic and I'll whip some sample code up for you this weekend.
14-Jul-2017
18:15
- last edited on
03-Jun-2023
09:57
by
JimmyPackets
Thanks Jason,
Below is the config. So a Wide IP got three pools attached to it and Helpdesk folks help switch the WideIP as per requirement. In case of there is application issue in one DC they failover to other DC, if both are impacted they switch to Outage Pool for outage page.
WideIP
wideip {
name ";
alias ";
alias ";
pool_lbmode ga
partition "Common"
pool "xyz_DC1"
pool "xyz_DC2"
pool "xyz_OUTAGE"
}
Pool Details
pool {
name "xyz_DC1"
ttl 30
preferred rr
alternate null
fallback null
partition "Common"
member IP:443
}
pool
{
name "xyz_DC2"
ttl 30
preferred rr
alternate null
fallback null
partition "Common"
member IP:443
}
pool
{
name "xyz_OUTAGE"
ttl 30
preferred rr
alternate null
fallback null
partition "Common"
member IP:443
}
Virtual Server Config
vs {
name "xyz-443-v-DC1"
address IP:443 // https
}
vs
{
name "xyz-443-v-DC2"
address IP:443 // https
}
vs {
name "xyz-443-v-outage"
address IP:443 // https
}
14-Oct-2022 06:44
Iv'e been looking for a cli command to change the gtm pool order as well for the same reason. With the various articles I found I couldn't find one quite right but was finally able to put it together.
Wide IP is test.com and I want to make gtmpoolmember1 the lower priority so the Wide IP will resolve / fail over to gtmpoolmember2 for our disaster recovery exercise.
So, just create a line for each of your Wide IPs for your disaster recovery exercise and paste them all into the cli once the exercise begins. Just change the order to 0 to resolve / fail back to gtmpoolmember1.
tmsh modify gtm wideip a test.com pools modify {gtmpoolmember1 { order 1 } }