Forum Discussion
dhawal_138341
Nimbostratus
Dec 11, 2013Create health monitor using iControl API
I'm trying to create a health monitor for my pool using iControl API. I was able to create a monitor template using the code below but I cannot figure out how to set 'Send String' and 'Receive String...
dhawal_138341
Nimbostratus
Dec 11, 2013I'm able to set Send String and Receive String using the below code:
$send_string = New-Object -TypeName iControl.LocalLBMonitorStringValue
$send_string.type = [iControl.LocalLBMonitorStrPropertyType]::STYPE_SEND
$send_string.value = $sendString
$recv_string = New-Object -TypeName iControl.LocalLBMonitorStringValue
$recv_string.type = [iControl.LocalLBMonitorStrPropertyType]::STYPE_RECEIVE
$recv_string.value = $receiveString
(Get-F5.iControl).LocalLBMonitor.set_template_string_property($templateName, ($send_string, $recv_string))
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