Forum Discussion
Thiyagu_343098
Nimbostratus
Jan 04, 2018CLI command to get the whole configuration of specific VIP
Hello All,
Good Day. I'm looking for a cli command of LTM to get the complete configuration of a specific VIP.
Could you please help me to know the CLI command to use to get the complete configu...
jaikumar_f5
Noctilucent
Jan 04, 2018If you are looking for a single command to pull the entire config of a VS, including the pool, profiles, clientssl details etc etc, I doubt there's one. The all-properties of VS does not show the details of pool-members.
But a simple bash script may help you out, you can tweak it to your needs.
!/bin/bash
virtual=$1
list_virtual="$(tmsh list ltm virtual $virtual)"
pool="$(tmsh list ltm virtual $virtual pool | grep pool | awk '{print $2}')"
list_pool="$(tmsh list ltm pool $pool)"
printf "\n===Virtual Setup : $virtual===\n"
printf "\n$list_virtual"
printf "\n===Pool Setup : $pool===\n"
printf "\n$list_pool"
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