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 SS...
Kevin_Stewart
Employee
Mar 21, 2013When 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