Forum Discussion
Number of active and inactive vips
Hello All,
Is there anyway command which can tell number of active and inactive vips on LTM? Also real server attached to it?
I can count is manually but it is manual effort and will take a lot of time. So just wanted to confirm is there any way?
Thanks.
7 Replies
- kunjan
Nimbostratus
You can try cli tmsh list ltm virtual enabled/disabled and do grep
eg:
For disabled VS counttmsh list ltm virtual disabled| grep disabled | wc -lTo list enabled VS
tmsh list ltm virtual enabled | grep -B1 enabled - Amit585731
Nimbostratus
Kunjan,
Thanks for answer. But I am getting error 'Syntax Error: "-B1" unsupported option'. Any suggestion?
Thanks
- kunjan
Nimbostratus
Are you running this on BigIP CLI? Which version of BigIP are you on? Can try egrep instead grep?
Can you also run grep --version ?
- Amit585731
Nimbostratus
Kunjan,
egrep also doesn't work.
Yes I am using CLI and code 11.5.1.
Thanks
- kunjan
Nimbostratus
Interesting, it works for me in 11.5.1. Can you run
?grep --version - arpydays
Nimbostratus
try putting a space in i.e. '-B 1'
- Amit585731
Nimbostratus
Thanks Kunjan and arpydays... after putting space as suggested by arpydays it worked.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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