Forum Discussion
Conny_153265
Nimbostratus
May 09, 2014Best way to list poolmembers
Hi, i have this code that gets a list of pools, then uses "Get-F5.LTMPoolMember" to get a list of poolmembers. The output looks like this: Pool : /blablabla_pool
Address : 10.80.15....
Conny_153265
Nimbostratus
May 27, 2014Hi, this is complete code:
Add-pssnapin iControlSnapIn
Initialize-F5.iControl -HostName myhost -Username myuser -Password mypass
$ic = Get-F5.iControl
$ic.ManagementPartition.set_active_partition('mypartition')
$pools = Get-F5.LTMPool | Select -ExpandProperty Name
$poolmembers = foreach($pool in $pools) { Get-F5.LTMPoolMember -Pool $pool }
$poolmembers | Where-Object {$_.Availability -eq 'AVAILABILITY_STATUS_RED' }Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
