Forum Discussion

Muthukumar_1197's avatar
Muthukumar_1197
Icon for Nimbostratus rankNimbostratus
Sep 14, 2014

Get-F5.LTMPoolMember Not working as expected

Hi Friends,

 

I am trying to get the details with iControl commandlets. But it is not giving any results.

 

Get-F5.LTMPoolMember -Pool MyPoolName

 

Above command got executed and but i didn't get any result. Can any one help on this.

 

My requirement is to get the node status of the pool from the client machine.

 

I am using the operator credentials.

 

Regards, Muthukumar.

 

3 Replies

  • Not sure why an empty response would be returned. How about trying out using the core APIs to see if they work:

    $ic = Initialize-F5.iControl -hostname bigip -username user -password pass
    $pool_list = $ic.LocalLBPool.get_list();
    $member_list = $ic.LocalLBPool.get_member($pool_list);
    
    Write-Host $member_list;
    

    Is anything returned in the member_list variable. If so, I'll have to look at the cmdlets and see what's wrong there.

    If you have any questions about PowerShell, make sure you check out the PowerShell index page in the wiki where there is a list of tech tips and samples to review: iControl.PowerShell Resources.

  • I'm having the same problem. Neither return anything.

     

    Code
    $pool = Get-F5.LTMPool -Pool $ltmpool
    $poolMember = Get-F5.LTMPoolMember -Member $ipAddress -Pool $ltmpool
  • Ok, after disassembling the icontrolsnapin and adding some debugging console.writelines I was able to figure this out.

    For the pool name the cmdlet is looking for something like

    /Common/my_pool_name

    for the member name it is concatenating the ip address to the port and then doing the string compare to what you pass in

    1.1.1.1:80