Forum Discussion
Bobow
Cirrus
Feb 12, 2020How to use Grep command to identify the particular VS with availability status only Available
Hi Folks, I want to grep to identify the particular VS with availability status only "Available" I have seen link https://devcentral.f5.com/s/question/0D51T00006i7XWm/how-to-use-grep-command-...
- Feb 12, 2020
Hi,
You could try this:
tmsh show ltm virtual | grep ": available" -B4 | grep -P "(Ltm::|Availability)"Regards.
cjunior
Nacreous
Feb 12, 2020Hi,
You could try this:
tmsh show ltm virtual | grep ": available" -B4 | grep -P "(Ltm::|Availability)"Regards.
Bobow
Cirrus
Feb 13, 2020Hi Cjunior,
I have another question, did you any advise if i want to grep to identify the particular VS, pool, and node with availability status only "Available" ?
Thanks in advance
- cjuniorFeb 13, 2020
Nacreous
Are you trying to fit default pool members to output?
If so, add a "detail" statement:
tmsh show ltm virtual detail | grep -P ": (available|unknow)" -B4 | grep -P "(Ltm::|Availability)" |sed -e 's/|//'To get it from specific virtual server write the name:
tmsh show ltm virtual my_vs_name detail | grep -P ": (available|unknow)" -B4 | grep -P "(Ltm::|Availability)" |sed -e 's/|//'Regards.
- BobowFeb 14, 2020
Cirrus
Yes correct is all about default pool and members.
Thank you very much for your answered!
Regards
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
