Forum Discussion
clydee_175326
Nimbostratus
Nov 14, 2014CLI question
Is there a way via cli for tmsh that i can use to run and pull total number of http VIPs configured versus doing a manual count
shaggy
Nimbostratus
Nov 14, 2014If you mean only vips listening on TCP port 80:
First make sure your BIGIP references service names. Default is service name but it can be changed:
tmsh list sys db bigpipe.displayservicenames
If that is 'true':
To count:
tmsh list ltm virtual one-line | grep -c "destination [0-9\.]\+:http "
To see the results, remove the -c:
tmsh list ltm virtual one-line | grep "destination [0-9\.]\+:http "
If displayservicenames was false, run the same commands using :80 instead of :http
clydee_175326
Nimbostratus
Nov 15, 2014Thanks Shaggy For some reason command didn't work. For example if I go to gui and sort by Protocol HTTP I have over 300 HTTP vips but didnt see near as many using commands above
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