Hi, I´m a bit tired today, so i need some help.
In powershell, im trying to list rules for a specific Virtual Server. I looked at “LocalLB::VirtualServer::get_related_rule” in the wiki and it says; “Gets the lists of related rules the specified virtual servers are associated with. If a specified virtual server is not associated with any rule, then the list of rules for that virtual server will be empty”
My command returns nothing. I can see in web gui that this vip has an rule.
if ((Get-PSSnapin | Where-Object { $_.Name -eq "iControlSnapIn" }) -eq $null)
{
Add-PSSnapIn iControlSnapIn
}
Initialize-F5.iControl -HostName "xxx" -User "xxx" -Password "xxx"
$f5 = Get-F5.iControl
$f5.LocalLBVirtualServer.get_related_rule('name_of_virtual_server')
Thanks!
Regards Martin