Forum Discussion
pavan_70758
Nov 12, 2010Nimbostratus
F5 API
Hello,
I have used F5 api (icontrol+php) to get the LB info. This api gives only pool name and members ip and port using get-list nad get-member methods. I would also like to get pool ip(vip) ...
Nov 12, 2010
I'm not quite sure what you are asking regards a pool ip(vip). The VIP is the top level object. The VIP is defined by a string "name" and has a "default pool" attribute that is the "name" of the pool. From the pool you can query the pool members "ip:port". If you are looking at getting the member "names", it's not really defined like that. The user friendly names that are displayed in the GUI are actually the "Node Address" names. If you go into the GUI under "Local Traffic" and then "Nodes", you'll see you can set a user friendly name for the node.
Now, if you want to query pool members node names, you'll have to take the IP address of the PoolMember and call the LocalLB.NodeAddress.get_screen_name method()
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__NodeAddress__get_screen_name.html
You can pass in all the pool member addresses and will get back a list of names. Keep in mind that unless you specifically configured them, they may be empty in which case you'll want to use the address.
Let me know if you need more clarification.
-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