Forum Discussion
paul_dawson_258
Nimbostratus
Oct 31, 2016Help with ASM Query
Hi, I am new to powershell and I an trying to create a simple query that will list the Virtual Server and the ASM policy name associated with the server. The following query returns all ASM Policies for all Virtual Servers. Please can you help where I am going wrong.
$vips = (Get-F5.iControl).LocalLBVirtualServer.get_list()
ForEach ($vip in $vips){
$asmPol = (Get-F5.iControl).ASMWebApplication.get_list($vip)
if ($asmPol){
Write-Output $asmPol
}
}
1 Reply
- paul_dawson_258
Nimbostratus
Is anyone able to help?
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
