Forum Discussion
dhawal_138341
Dec 11, 2013Nimbostratus
I'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))