Forum Discussion
Desai_124243
Nimbostratus
Apr 18, 2014How to get specific SSL Profile corrponding with Virtual through Powershelll Icontrol
Hi
When I ran below command, I am getting full output of profiles associated with Virtual. But I can't able to parse the Client SSL from output and getting "iControl.LocalLBVirtualServerVirtualServ...
Apr 19, 2014
Hi!
If all you want is the Client SSL profile this should work:
Add-PSSnapIn iControlSnapIn
$Success = Initialize-F5.iControl -Hostname 192.168.161.10 -Credentials (Get-Credential)
Foreach($VSProfiles in ((Get-f5.iControl).LocalLBVirtualServer).get_profile("PajoIIS-443")){
$ClientSSLProfile = $vsprofiles | where { $_.profile_type -eq "PROFILE_TYPE_CLIENT_SSL" }
If($ClientSSLProfile){
$ClientSSLProfile
} else {
"No client SSL profile was found"
}
}
/Patrik
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
