Forum Discussion
Naumin_Dave_144
Nimbostratus
Feb 21, 2019CLI command to get partial configuration for specific VIPs
Hello All;
Good Day.
I am looking for a cli command of LTM to get ONLY list of VSs who are having serverssl profile in it.
Could you please help me with this?
I have used "list ltm vir...
jaikumar_f5
Noctilucent
Feb 21, 2019Hi N
Always a best approach for me - bash script 🙂
Just put the below code in any file example:
vi /var/tmp/serverssl-mapping-vs
PROFILES=`tmsh list ltm profile server-ssl | grep "^ltm" | awk -F" " '{print $4}'`
for all in ${PROFILES}
do
VS_NAME=`tmsh list ltm virtual one-line | grep $all | awk -F" " '{print $3}'`
if [ "${VS_NAME}" != "" ]
then
for x in ${VS_NAME}
do
echo "$x --> $all"
done
fi
done
Then just run,
bash /var/tmp/serverssl-mapping-vs
Let me know if you need an understanding on this, its plain and simple.
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
