Forum Discussion
PatPerron_18894
Nimbostratus
Jun 01, 2015tmsh list by description
Hi,
I'm looking for an option in command line (tmsh) to list all virtual servers with a specific description.
Do I have to script something is there an existing tmsh options to do it?
Thank...
Michael_Jenkins
Cirrostratus
Jun 02, 2015While it's not my own answer (taken and modified from and answer on this question), this may help with that you're looking for..
- This would give you any virtual matching that description
(it's not the prettiest output but it gives you the whole config for that virtual)tmsh list ltm virtual | grep '' - This would give you the virtual name and description line:
tmsh list ltm virtual | awk '/(ltm virtual|)/' | grep -B1 "" - This would give you a slightly cleaner version of the previous one
tmsh list ltm virtual | awk '/(ltm virtual|)/' | grep -B1 "" | sed -e 's/{//g;s/--//g;s/\n//g'
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