Forum Discussion
CLI 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 virtual | grep 'ltm|serverssl'" but it matches only string "ltm" and "serverssl" in each line of the list ltm virtual command, which is not helpful for my requirement.
I want to get only those VIPs who are using serverssl profile.
- RaghavendraSY_7
Cumulonimbus
Please try this one and let me know you are looking for similar command:
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Protocol'
- Naumin_Dave_144
Nimbostratus
Not working. I think there was a typo in your command, i tried with below command but in Virtual server Name instead of printing name it is showing N/A.
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
- RaghavendraSY_7
Cumulonimbus
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Protocol' command is working for me. which version you are running.
Also try with below command.
tmsh list ltm virtual profiles | grep serverside -B 10 (You need to change value 10 specific to your configuration)
- RaghavendraSY_7
Cumulonimbus
Also verify with
tmsh list ltm virtual profiles | grep serverssl -B 10
- RaghavendraSY
Altostratus
Please try this one and let me know you are looking for similar command:
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Protocol'
- Naumin_Dave_144
Nimbostratus
Not working. I think there was a typo in your command, i tried with below command but in Virtual server Name instead of printing name it is showing N/A.
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
- RaghavendraSY
Altostratus
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Protocol' command is working for me. which version you are running.
Also try with below command.
tmsh list ltm virtual profiles | grep serverside -B 10 (You need to change value 10 specific to your configuration)
- RaghavendraSY
Altostratus
Also verify with
tmsh list ltm virtual profiles | grep serverssl -B 10
- RaghavendraSY
Altostratus
Also please try below one:
tmsh list ltm virtual profiles | grep serverside -B 10 (You need to change value 10 specific to your configuration)
- RaghavendraSY_7
Cumulonimbus
There is small syntax error:
Please try this one:
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
It worked for me
- RaghavendraSY_7
Cumulonimbus
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
- RaghavendraSY_7
Cumulonimbus
after Server SSL please add |
- RaghavendraSY
Altostratus
There is small syntax error:
Please try this one:
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
It worked for me
- RaghavendraSY
Altostratus
tmsh show ltm profile server-ssl raw | grep 'Ltm::ServerSSL|Virtual Server Name'
- RaghavendraSY
Altostratus
after Server SSL please add |
- jaikumar_f5
Noctilucent
Hi 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.
- y_ajit_381334
Altostratus
Hi Naumin,
you can use the below format.
- jaikumar_f5
Noctilucent
This would list out the server side profiles too, let's say tcp-lan-optimized. So not so efficient way to pull.
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