Forum Discussion
Chris_Chaloux_1
Nimbostratus
Dec 22, 2009Power Shell Question - Disable Pool Member
Hello -
I'm running a power shell script that enables / disables a pool member. It is from the example scripts out her on DevCentral.
I have a question / issue. I want to force a n...
Dec 23, 2009
I cut and pasted your code directly from the post above and ran in in my PoolMemberControl.ps1 script and it worked.
PS C:\> .\PoolMemberControl.ps1 bigip user pass mypool 10.10.10.148:
80 disable
Disabling Session Enabled State...
Waiting for current connections to drop to zero...
Current Connections: 0
Disabling Monitor State...
Pool mypool, Member 10.10.10.148:80 status:
Availability : AVAILABILITY_STATUS_RED
Enabled : ENABLED_STATUS_DISABLED
Description : Forced down
Which version of PowerShell are you using? I'm working with v2.0 right now.
Try tossing in this line before the call to set_monitor_state():
MemberMonitorStateAofA.GetType();
It should print out something like this:
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True LocalLBPoolMemberMemberMonitorState[][] System.Array
-Joe
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