Forum Discussion
S_Griesmyer_156
Nimbostratus
May 21, 2014Can't get Global LB Pool Member Availability
I'm trying to modify the Powershell code in the codeshare https://devcentral.f5.com/wiki/icontrol.powershellpoolmemberavailability.ashx to pull GTM Pool Member availability. When I switch out the Loc...
- May 21, 2014
I find that it is usually easiest to get the data from the F5 itself. I'll use each control until I build up a full set of data.
Sorry for the psudocode, but it looks like
pools = GlobalLB.get_pools()
pool_members = GlobalLB.get_pool_members(pools)
pool_member_status = GlobalLB.get_pool_member_status(pools, pool_members)
S_Griesmyer_156
Nimbostratus
May 21, 2014@Brent West -
Thanks for the info! Now my problem seems to be in how I provide the pool member...
I try to build the {[IP],[PORT]} manually as an iControl.CommonIPPortDefinition and pass it in, but I still can't seem to get it to line up.
`
$tmp = New-object iControl.CommonIPPortDefinition
$tmp.address = $pool[0].address
$tmp.port = $pool[0].port
`
I've also tried pulling the members raw into the tmp variable...
`
$tmp = (Get-F5.iControl).GlobalLBPool.get_member((,$Pool));
`
So that I could address the nodes individually...neither seem to work as I get the same results.
`
PS C:> (Get-F5.iControl).GlobalLBPoolMember.get_object_status(($pool,$tmp[0].member[0]))
Cannot find an overload for "get_object_status" and the argument count: "1".
At line:1 char:1
+ (Get-F5.iControl).GlobalLBPoolMember.get_object_status(($pool,$tmp[0].member[0]) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
`
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