Forum Discussion
Session table with Virtual Command
-- Matt
- Jul 22, 2017
Editing this post and truncating it to how to get the pool members instead since the script was not working as is and the original poster had a better script further below:
tmsh -c "cd /;list ltm pool recursive" | awk '/:/{ split($1, memberArr, /:/)} /address/ { print $2 ":" memberArr[2] }'
/Patrik
- jaikumar_f5Jul 23, 2017
Noctilucent
Here's something that I came up with yesterday, I used csv format to separate using comma and the output file looks fast & good too.
Initialize the output file > Tls_Output.csv Creating the output file with Headings echo "Server,SSL3,TLS1,TLS1_1,TLS1_2" >> Tls_Output.csv Have a serverlist file created with IP:Port details in it for i in `cat serverlist`; do SSL3 Testing openssl s_client -connect $i -ssl3 < /dev/null if [ $? -eq 0 ];then SSL3_state="PASS" else SSL3_state="FAIL" fi TLS1 Testing openssl s_client -connect $i -tls1 < /dev/null if [ $? -eq 0 ];then TLS1_state="PASS" else TLS1_state="FAIL" fi Tls1_1 Testing openssl s_client -connect $i -tls1_1 < /dev/null if [ $? -eq 0 ];then TLS1_1_state="PASS" else TLS1_1_state="FAIL" fi Tls1_2 Testing openssl s_client -connect $i -tls1_2 < /dev/null if [ $? -eq 0 ];then TLS1_2_state="PASS" else TLS1_2_state="FAIL" fi Display all the SSL results in the output file echo "$i,$SSL3_state,$TLS1_state,$TLS1_1_state,$TLS1_2_state" >> Tls_Output.csv done
Drawback:
I could see the openssl command executing in the console. Have to pass this to a variable to run on the background. A bit of tweak should do the work.
Output File:
Edit: The script has been updated, refer the comments to find the latest.
Recent Discussions
Related Content
* 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