Forum Discussion
thennessey_2290
Nimbostratus
Oct 27, 2015Set existing monitor on existing node in Powershell - F5 Big-IP
I know how to create a new node in Powershell. I've read you cannot apply a health monitor upon creation. So how can I add a health monitor afterwards? The name of the node is "TestNode1" and the ...
cjunior
Nacreous
Nov 05, 2015Hi, have you seen this link?
I am no expert, this is my test and it works for me:
Add-PSSnapIn iControlSnapIn
Initialize-F5.iControl -HostName 192.168.1.245 -Credentials (Get-Credential)
$MonitorRule = New-Object -TypeName iControl.LocalLBMonitorRule
$MonitorRule.type = "MONITOR_RULE_TYPE_SINGLE"
$MonitorRule.monitor_templates = @("icmp")
(Get-F5.iControl).LocalLBNodeAddressV2.set_monitor_rule(@("10.10.10.10"), @($MonitorRule))
Remove-PSSnapIn iControlSnapIn
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