Forum Discussion
How to take pool members offline via power shell?
I've been tasked to setup scripts for our release management team to control traffic to individual web servers. Typically, we have two to five web servers per environment sitting behind an F5. When the team deploys to the environment, they like to take a few servers offline, gracefully, do the deployment, test, and then turn them back on before doing the same for the remaining systems. This was VERY simple in the Juniper DX.
From what it looks like, we want to target the POOL MEMBERS to accomplish this. They way we have this configured is we have a Pool defined for a particular site (each site has a unique IP on each webserver). We have one pool for traffic on 80 and one for traffic on 443 for each website.
POOL: Mysite1_443
MEMBERS: 10.0.0.1, 10.0.0.2
How to I programatically say:
"take the 10.0.0.1 member offline in the Mysite1_443 pool, gracefully, letting traffic trickle off without abruptly ending any existing sessions"
We'd like to do this on the users' workstations via Powershell if possible.
MANY THANKS!
Dominic
- Hi Dominic, here's a codeshare entry I wrote a while ago illustrating how to use the PoolMember methods: https://devcentral.f5.com/wiki/iControl.PsPoolMemberControl.ashx
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