Created
February 9, 2017 18:49
-
-
Save rayterrill/188409e5e4cec6895d1939e155fbf3ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [Parameter(Mandatory=$true)][string]$Bigip = "", | |
| [Parameter(Mandatory=$true)][string]$User = "", | |
| [Parameter(Mandatory=$true)][string]$Pass = "" | |
| ) | |
| function Do-Initialize() { | |
| if ( (Get-PSSnapin | Where-Object { $_.Name -eq "iControlSnapIn"}) -eq $null ) | |
| { | |
| Add-PSSnapIn iControlSnapIn | |
| } | |
| $success = Initialize-F5.iControl -HostName $Bigip -Username $User -Password $Pass; | |
| return $success; | |
| } | |
| Do-Initialize | |
| $sslClientProfiles = (Get-F5.iControl).LocalLBProfileClientSSL.get_list(); | |
| foreach($profile in $sslClientProfiles) { | |
| $profileNameWithoutPartition = $profile.Replace("/Common/","") | |
| $sessionTicketState = (Get-F5.iControl).LocalLBProfileClientSSL.get_session_ticket_state($profileNameWithoutPartition) | |
| Write-Host "$($profile) - $($sessionTicketState.Value)" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment