Forum Discussion
Mark_Bell_98620
Nimbostratus
Jun 22, 2009GTM status changer
Hi,
I have been looking at the C repository however cant seem to find many examples for this through the forums and the site. Would anyone have any idea how to implement a GTM status changer similar to how the example "LTM Pool Manager Example" works at http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=87.
Anyone have any ideas?
Thanks
- What exactly do you want to do with GTM programatically. The article you referenced shows how to toggle pool member enabled states. If you are looking into managing GTM pool members, then you'll want to look at the GlobalLB.PoolMember.get/set_enabled_state methods.
- Mark_Bell_98620
Nimbostratus
Hi, - jay_41157
Nimbostratus
The link above is not working.. I am hoping to do something along the lines of what is stated above.... would like to control the status of a wide ip pool member. - Mark_Bell_98620
Nimbostratus
Yeah, just really looking for what code would need to be changed or added for this so that we can get the Wide IP's back from the GTM and then be able to change the ratio like changing the pool member status in the example given from that url. - JRahm
Admin
A couple things...the wideIP's are pulled with the GlobalLB.WideIP.get_list method. Pool members are not under the wideip, they are under the pool, which is assigned to a wideip. The pools/pool members are GlobalLB.Pool and GlobalLB.PoolMember. Joe had a tutorial on writing a C application on LocalLB.Pool and LocalLB.PoolMember. All you should need to do is migrate from one interface to the other, all the code should be similar. The tutorial is here:
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