Forum Discussion
ltaylor510_5583
Nimbostratus
Sep 18, 2008Perl script to display All BigIP pool members
I have a Perl CGI application in apache that will need a perl script to display all the available elements in one script:
("poolname" "address" "port" "session_state" "priority_group")
...
Sep 18, 2008
None of our methods are Java only. Where are you seeing that documented? iControl is a web service (SOAP) based API so all the methods are language independent. If you choose to use perl, then you have access to all the same methods that you would if you were using Java or .Net.
The methods in the PoolMember interface should get you the info you are looking for. I would query the pools, then pass that list into the LocalLBPool.get_member method. That will give you all the member addresses and ports. You can then call the get_session_enabled_state() method to get the session states and the get_priority method will return your the priority numbers for the specified members.
Also, what is the "showPoolMembers()" subroutine you are referring to? Is that in your code?
Let me know if you need further direction.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects