Forum Discussion
3 Replies
Sort By
- I don't know of any samples in the CodeShare that use that method, but it's pretty easy. The definition is:
VirtualServerHttpClass [] [] get_httpclass_profile( in String [] virtual_servers );
$vipList = @("vip1", "vip2"); $classListAofA = (Get-F5.iControl).LocalLBVirtualServer.get_httpclass_profile($vipList); Loop over each VIP for($i=0; $i -lt $classListAofA.Length; $i++) { $vip = $vipList[$i]; Write-Host "VIP: $vip"; loop over each of the class profiles in the given VIP $classListA = $classListAofA[$i]; foreach($class in $classListA) { $profile_name = $class.profile_name; $priority = $class.priority; Write-Host " $profile_name ($priority)" } }
- Joe_47002NimbostratusThanks. This definitely helps. After I get this class, would there be a command to disable pools within that class?
- Joe_47002NimbostratusOr first is there a way to find the pools from the classes that we get?