Julio_Navarro
Mar 31, 2016Cirrostratus
I made the following change:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
foreach ($pool in $pool_list.items) {
Write-Verbose "Pool: $pool";
$members = Invoke-Get "/ltm/pool/$($pool.fullPath.Replace('/', '~'))/members/?`$select=fullPath, items";
for($i=0; $i -lt $members.items.count; $i++) {
$member = $members.items[$i];
$WorkSheet.Cells.Item($row, $colPool_Name) = $pool.fullPath;
$WorkSheet.Cells.Item($row, $colPool_Member) = $member.fullPath;
$WorkSheet.Cells.Item($row, $colPool_LBMethod) = $pool.loadBalancingMode;
$WorkSheet.Cells.Item($row, $colPool_Monitor) = $pool.monitor;
Write-Host $member.fullPath;
$row++;
}
Write-Host "." -NoNewline;
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This way if I have a pool with more than one member, for example - 3 members, i will have three records
Pool - member1
Pool - member2
Pool - member3
:-)
J