PowerShell Pool Member Availability
Problem this snippet solves: This PowerShell script will query the status of the pool members for a specified poolname. How to use this snippet: PowerShellPoolMemberAvailability.ps1
-BIGIP < big...
Published Mar 09, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
Pinja_Sachi_736
Sep 03, 2015Nimbostratus
Getting Error - Issue is the node belongs to a different partition and the pool belongs to a different partion - but the script assumes the pool partition as the node partition... Script works if both pool and node are in the same partition
PowerShellPoolMemberAvailability.ps1 -BIGIP 1x.1x.x.x -User xx -Pass xx -Pool bi.dd.com
Exception calling "get_object_status" with "1" argument(s): "Exception caught in LocalLB::urn:iControl:LocalLB/PoolMember::get_object_status()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested Pool Member (/App_Admins/bi.dd.com /App_Admins/1x.x.x.x 80) was not found."
At C:\pl\PowerShellPoolMemberAvailability.ps1:72 char:84
+ $MemberObjectStatusAofA = (Get-F5.iControl).LocalLBPoolMember.get_object_status <<<< ((, $Pool));
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
The variable '$MemberObjectStatusAofA' cannot be retrieved because it has not been set.
At C:\pl\PowerShellPoolMemberAvailability.ps1:74 char:51
+ $MemberObjectStatusA = $MemberObjectStatusAofA <<<< [0];
+ CategoryInfo : InvalidOperation: (MemberObjectStatusAofA:Token) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
The variable '$MemberObjectStatusA' cannot be retrieved because it has not been set.
At C:\pl\PowerShellPoolMemberAvailability.ps1:75 char:57
+ foreach ($MemberObjectStatus in $MemberObjectStatusA <<<< )
+ CategoryInfo : InvalidOperation: (MemberObjectStatusA:Token) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
0/0