Forum Discussion
Kent_Perrier_50
Nimbostratus
19 years agouse iControl to set a pool member to Down status?
I am attempting to write perl based iControl script to change pool member status. I have found the the TogglePoolMember script in CodeShare that I am using as a starting point. Unfortunately, I have...
Kent_Perrier_50
Nimbostratus
19 years agoSo I need to set the MemberMonitorState to DOWN to be the same thing as
b pool members down ?
If so, when I set the MemberMonitorState to UP does that also change the state to STATE_ENABLED?
Edit:
A little hard? It appears you provide many examples in .NET and Java but next to nothing in perl. What examples you have in CodeShare are not commented well. I have not idea WHY you are doing what is done the code, so I am trying to modify what you have already and hope it works. The example code supplied with the API download is of the same quality, no commenting, saying what is going on.
For example the PoolToggle code at http://devcentral.f5.com/wiki/default.aspx/iControl/PoolToggle.html has this little gem in it
Extract the 1st list for the single pool passed in.
@member_list = @{@member_lists[0]};
build parameters for set_session_enabled_state();
foreach $member_def (@member_list)
{
$address = $member_def->{"address"};
$port = $member_def->{"port"};
$member = { address => $address, port => $port };
$MemberSessionState =
{
member => $member,
session_state => $state
};
push @MemberSessionStateList, $MemberSessionState;
}
There is no mention of the only the first member of the @member_lists array is referenced, nor is there anything else that says what else that array contains.
I, personally, would love some tutorials that sets up a use case, presents the code to do it, and explains what us happening every step of the way. I am just a UNIX system admin stuck with maintaining a set of LTMs. I am not professional programmer, your API reference is of little help to me as I don't really understand what it is telling me.
It was not my intention for this to come across as so hostile. I am just getting really frustrated with trying to get these scripts written so I can delegate some things out to others without compromising the integrity of the solution and I am tired of fighting the tools you have given me do the job.
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
