Forum Discussion
Martin_B__246_r
Nimbostratus
May 05, 2014List poolmembers that are down,unavailable and Unknown
Hi, Im writing a simple GUI in powershell studio that displays poolmember status. I'm having difficulties writing conditional logic so that the application only list poolmembers that are not availabl...
cjunior
Nacreous
May 05, 2014Since you are using the value of "Availability", you can do the following: add the operator "-or" like:
$poolmembers | Where-Object {$_.Availability -eq 'AVAILABILITY_STATUS_RED' -or $_.Availability -eq 'AVAILABILITY_STATUS_BLUE'}
or just filter any different like: $poolmembers | Where-Object {$_.Availability -ne 'AVAILABILITY_STATUS_GREEN'}
Is this what you want?
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