Forum Discussion
Scott_Delk_4899
Nimbostratus
Jul 06, 2006Get Pool Members
Currently I am using
Pool.CommonIPPortDefinition[][] members = Pool.get_member(pool_list);
to return a list of all pool members so I can duplicate the list that I see when logged into the F5 through putty. Well it appears that this array only returns the ip address and the port number. It does not contain information about its availability. Is it possible that im looking in the wrong place for this data?
15 Replies
- Scott_Delk_4899
Nimbostratus
Nevermind I found it in the LocalLBPoolMember namespace and used
PoolMember.LocalLBPoolMemberMemberStatistics[] member_stat_list = PoolMember.get_all_statistics(pool_list);
It works great. - Scott_Delk_4899
Nimbostratus
When logged into the Big-IP administration console, if you go to view pool members, it is going to show their domain (machinename.domain.com) in the address field however when usingusing PoolMember; private LocalLBPoolMember PoolMember = new LocalLBPoolMember(); PoolMember.LocalLBPoolMemberMemberObjectStatus[][] objStatus = PoolMember.get_object_status(pool_list);
it returns an IP address in the objStatus[j].member.address element. Is there a way for me to get the machine name instead of an IP address? - I believe that is an option in the GUI Preferences to display hostnames when possible. The GUI is doing a DNS lookup on the actual address and changing the presentation. iControl uses the same underlying framework as the GUI and CLI (bigpipe) but does not have the DNS lookup capabilities. Pool members are stored by address in the configuration and that is what iControl is pulling the data from. If you want the DNS names for your pool members, you'll have to do a DNS lookup in your calling app.
-Joe - Loc_Pham_101863Historic F5 AccountWe also have the following methods in the System.Inet interface that you can make use:
- ip_to_hostname
- hostname_to_ip
- service_number_to_service_name
- service_name_to_service_number
Regards,
Loc - David_Los_23059
Nimbostratus
I am almost done with my application, I just would like to know how to do a simple console.write on a command like this
PoolMember.LocalLBPoolMemberMemberObjectStatus[][] objStatus = PoolMember.get_object_status(pool_list);
That way I can just output the names of the members for testing. Thanks! - David_Los_23059
Nimbostratus
Nevermind! I figured it out i think - Glad to hear it! Keep us updated on how your project is going...
-Joe - karephul_49192
Nimbostratus
I have a similar question, so instead of creating a new thread I thought to continuing it.
When we configure pool members, I am creating nodes and adding those nodes as the pool members. Initially I created nodes using IP address, and it works. But instead of creating nodes with IP address I want to create using machine names.
Say my IP is 10.100.170.10 and my machine name is LK-LT5678, I want to create a node using the machine name, instead of creating it with IP address.
Thanks, - Unfortunately, the BIG-IP stores PoolMember by it's address and port. You can configure user friendly names at the Node Address level but that is just a convenience feature in the GUI and is displayed in the Pool Member statistics/state pages. There currently is no way to configure a pool member other than by it's IP Address and port. This is true in the GUI as well as iControl.
The bottom line on features requests like this is: If you can do it in the GUI, then odds are you can with iControl. But, on the other hand, if you can't do it in the GUI, it's a very good chance you can't in iControl as well...
-Joe - karephul_49192
Nimbostratus
[ BIG-IP stores its node with address and port ],
I want that address part to be fully qualified name, instead of IP address {Is there a way}
In our application we have to write a fully qualified names like
LT-KM3456.us.f5.com, and to access the web page, http://LT-KM3456.us.f5.com/index.htm (say). Now I have two boxes which are running the application (LT-KM3456.us.f5.com, LT-KM3478.us.f5.com) and they are pointing to the same Database.
I want to load balance my web application.
client ------->
-> F5 machine -----> LT-KM3456.us.f5.com
`--> LT-KM3478.us.f5.com
this is what I am am looking at. Most of the time clients want it this way, so, there has to be a way to do this.
Thanks,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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