Forum Discussion
c_harish_12981
Nimbostratus
Jun 17, 2009Create Pool script in PERL
I am looking for "Create Pool" or "CreatePoolWithMembers" script in PERL. Has anybody worked on it?
Thx
- I'm sure I can come up with something. Do you just want the pool creation or do you want to also specify adding members during the creation or possibly adding/removing members post-creation. Let me know and I'll whip something up for you.
- JRahm
Admin
There is a perl add pool member script in the codeshare:added by jrahm $member = { address => "10.10.10.10", port => "80" }; push @memberA, $member; push @memberAofA, [@memberA]; $soapResponse = $Pool->create( SOAP::Data->name(pool_names => [new_pool]), SOAP::Data->name(lb_methods => [LB_METHOD_ROUND_ROBIN]), SOAP::Data->name(members => [@memberAofA]) ); &checkResponse($soapResponse);
- JRahm
Admin
oops, sorry Joe, started working on this and didn't refresh before posting. - Here's a script that will either list all the pools and their respective pool members or it will create a new pool with a a list of supplied members.
http://devcentral.f5.com/Wiki/default.aspx/iControl/PerlCreatePool.html
- c_harish_12981
Nimbostratus
Thanks 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