Forum Discussion

Mike__M's avatar
Mike__M
Icon for Nimbostratus rankNimbostratus
Jan 04, 2016

(Powershell) Load Balancer Automation with Host Failover detection

I have automated deploy scripts (using Powershell iControl cmdlets) that disable nodes within our primary F5 Load Balancer and query for active connections before performing deployments. I'm looking at improving the scripts to query for the Active load balancer first since the scripts will run against the LB even if it's in Standby which results in not actually affecting the nodes.

 

I'm sure there has to be an easy way using PowerShell iControl to query which Load Balancer is the active one so I can customize my scripts to point at the correct one when / if a failover occurs. I don't need to change the status, I just simply need to know programatically who is active and who is standby.

 

If this has already been covered, I apologize for the duplication. I didn't find one when searching earlier and pointing me at the article would suffice.

 

Thanks