Forum Discussion
CLI 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
6 Replies
- shaggy_121467
Cumulonimbus
If 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.displayservicenamesIf 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
Thanks 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 - shaggy_121467
Cumulonimbus
what code level are you running? are you leveraging administrative partitions in your configuration?
- shaggy
Nimbostratus
If 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.displayservicenamesIf 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
Thanks 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 - shaggy
Nimbostratus
what code level are you running? are you leveraging administrative partitions in your configuration?
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