Forum Discussion
Lazar_92526
Nimbostratus
Mar 20, 2013Query SSL virtuals servers for SSL Profiles
Does anyone know if there is a way to perform a query on all of the SSL virtual servers to determine if they have an SSL Profile (Client,Server or both). I'm trying to determine which servers have SSL Pass-through, Offloading or Re-encrytion enabled without having to go through each configuration manually
4 Replies
- nitass
Employee
what version are you running? if 10.x, is this helpful?
shortest command for SSLprofile
https://devcentral.f5.com/community/group/aft/2166265/asg/68 - Lazar_92526
Nimbostratus
Forgot to mention, we are running 11.3 - nitass
Employee
not sure if this is useful.[root@ve11a:Active:Changes Pending] config tmsh show ltm virtual all profiles|grep -i ltm Ltm::Virtual Server: bar | Ltm::HTTP Profile: http | Ltm::ClientSSL Profile: myclientssl | Ltm::ServerSSL Profile: serverssl | Ltm::TCP Profile: tcp Ltm::Virtual Server: fwd | Ltm::FastL4 Profile: fastL4 - Kevin_Stewart
Employee
When all else fails, write a script:! /bin/bash output=$(tmsh list ltm virtual |grep "ltm virtual" | awk -F" " '{ print $3 }') for LINE in ${output}; do clientssl=$(tmsh show ltm virtual ${LINE} profiles |grep ClientSSL |awk -F" " '{ print $4 }') serverssl=$(tmsh show ltm virtual ${LINE} profiles |grep ServerSSL |awk -F" " '{ print $4 }') if [ -n "$clientssl" -o -n "$serverssl" ]; then echo "${LINE}:" if [ -n "${clientssl}" ]; then echo " ClientSSL profile: $clientssl" fi if [ -n "${serverssl}" ]; then echo " ServerSSL profile: $serverssl" fi echo "" fi done
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