cancel
Showing results for 
Search instead for 
Did you mean: 

any way to filter in tmsh for specific criteria

asmongold
Nimbostratus
Nimbostratus

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 3

Hello Asmongold.

 

Try this from bash:

tmsh list ltm virtual security-log-profiles | grep -C1 none

Regards,

Dario.

Regards,
Dario.

LB
Cirrus
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
F5 Employee
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"