Forum Discussion
Enabling and disabling pool member (PoolMemberChangeState.pl)
Good afternoon, I'm new to iControl. I have access admin access to our F5 (Version BIG-IP 11.2.1 Build 1042.0 Hotfix HF3). I'm using strawberry perl and was able to run through all sample perl scripts that came with iControl. I had to add two lines to bypass SSL cert warning (use Net::SSL; and $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0;). So as my next goal, i would like to disable one of the existing pool members. I downloaded example from here: https://devcentral.f5.com/wiki/iControl.enable_disable_pool_member.ashx and again, added two lines for SSL warning that i had to add to all other sample scripts and here are the details on the command and the errors:
C:\Users\OXSHTU\Documents\newsetupAPI\iControl-11.1.0\sdk\samples\soap\perl\soaplite\LocalLB>C:\strawberry\perl\bin\perl5.16.3.exe PoolMemberChangeState.pl IPofmyF5 443 someUserID somepassword IPofmyEndPoint:8080 disable
Operator or semicolon missing before & at PoolMemberChangeState.pl line 85.
Ambiguous use of & resolved as operator & at PoolMemberChangeState.pl line 85.
Too many arguments for main::getMemberLists at PoolMemberChangeState.pl line 75, near "@pool_list)"
syntax error at PoolMemberChangeState.pl line 85, near "amp;"
syntax error at PoolMemberChangeState.pl line 86, near ") )
"
syntax error at PoolMemberChangeState.pl line 92, near "}"
Can't use global @_ in "my" at PoolMemberChangeState.pl line 96, near "(@_"
Too many arguments for main::findPoolsFromMember at PoolMemberChangeState.pl line 98, near "$node_addr_port)"
syntax error at PoolMemberChangeState.pl line 130, near "}"
Execution of PoolMemberChangeState.pl aborted due to compilation errors.
Has anyone ran into the same syntax errors with this sample script? I'm going to download Perl plugin for my Eclipse next and try to look into this one.
Thank you!
2 Replies
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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