Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rayterrill/188409e5e4cec6895d1939e155fbf3ed to your computer and use it in GitHub Desktop.

Select an option

Save rayterrill/188409e5e4cec6895d1939e155fbf3ed to your computer and use it in GitHub Desktop.
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