Forum Discussion

tickermcse76_16's avatar
tickermcse76_16
Icon for Nimbostratus rankNimbostratus
Aug 06, 2014

Get virtual server default pool from PowerShell iControl?

Is there any way to get a virtual server default pool through the iControl Powershell snapin? What I would like to do using the PowerShell spanin and cmdlets is get a list of virtual servers, get the pools they are associated with, and then get a list of nodes in that pool. I want to get all that information along with status and present it in a chart.

 

Get-F5.LTMPoolMember already ties each node to a pool, but I can't find a way to tie the virtual servers to the pools. Get-F5.LTMVirtualServer only has 3 properties; name, availability, and enabled status.

 

  • I can't help with the powershell aspect, but the iControl call you want is LocalLB::VirtualServer::get_default_pool_name. There are some powershell examples on the page for that at

     

    https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__get_default_pool_name.ashx

     

    that might help you out.

     

  • I can't help with the powershell aspect, but the iControl call you want is LocalLB::VirtualServer::get_default_pool_name. There are some powershell examples on the page for that at

     

    https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__get_default_pool_name.ashx

     

    that might help you out.

     

    • tickermcse76_16's avatar
      tickermcse76_16
      Icon for Nimbostratus rankNimbostratus
      Thanks. I just started using the F5 Powershell cmdlets and they don't offer too much. You have to essentially use iControl to get anything done (by utilizing the Get-F5.iControl cmdlet).
    • Joe_Pruitt's avatar
      Joe_Pruitt
      tickermcse76, I originally wrote the cmdlets to fill out some use cases but I was quickly told by users that they didn't fill "their" use cases. I originally built in the core iControl.Interfaces object from the underlying .Net Assembly that could be accessed by the Get-F5.iControl() cmdlet. Since that covered 100% of the API, we focused on urging users to go that route.