Forum Discussion

ecriniere_13429's avatar
ecriniere_13429
Icon for Nimbostratus rankNimbostratus
Sep 24, 2013

Reporting on F5 using Powershell iControl F5 cmdlets

How do I report on additional attributes for a virtual server, pool, and/or node? If I use get-f5.ltmVirtualServer I can only get the Name and Status. I would like to retrieve the assigned IP and the Default Persistence Profile attribs, or any other attribs. How can I do this

 

1 Reply

  • The cmdlets were originally written as a few set of use cases around the APIs. But, there's a special cmdlet (Get-F5.iControl) which returns an object containing all of the core iControl API objects. You can then get at the various iControl methods from those internal objects. So, for instance, if you want to get at the VirtualServer get_list() method, you can do something like this

    (Get-F5.iControl).LocalLBVirtualServer.get_list();

    You should be able to get at all the other virtual server attributes by going into the core APIs. The documentation is in the iControl wiki.