Forum Discussion
any way to filter in tmsh for specific criteria
Besides using grep is there any way to filter in tmsh for specific criteria?
ie: if I want to find all virtual servers with security-log-profiles = none is there a way to specifiy that when running a similar command line like
list ltm virtual security-log-profiles
3 Replies
- Dario_Garrido
Noctilucent
Hello Asmongold.
Try this from bash:
tmsh list ltm virtual security-log-profiles | grep -C1 none
Regards,
Dario.
- LB
Cirrus
Dario has your answer, but check out https://clouddocs.f5.com/cli/tmsh-reference/latest/general/tmsh.html when you have some time.
- Stan_PIRON_F5
Employee
you can use one-line and all-properties parameters, then use grep to filter each line
list ltm virtual one-line all-properties | grep "security-log-profiles none"
list ltm virtual one-line all-properties | grep "security-log-profiles none"
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