cancel
Showing results for 
Search instead for 
Did you mean: 

F5 BIG-IP show filtering with grep problem

aldowski
Nimbostratus
Nimbostratus

Issue related to the command (example lines):

show sys log ltm | grep 2.2.2.2

looks like a bug in the version:

Product    BIG-IP

Version    14.1.2.1

Build      0.0.4

Edition    Point Release 1

 

I checked it with:

show sys log ltm lines 5

which provides 5 lines from ltm log including IP addresses (example lines):

02-20 02:07:09 warning nwwyy11 tmm[172]: SSL Handshake failed for TCP 1.1.1.1:1246 -> 2.2.2.2:443 02-20 02:07:09 warning nwwyy11 tmm[172]: SSL Handshake failed for TCP 1.1.1.2:1236 -> 2.2.2.2:443 02-20 02:07:09 warning nwwyy11 tmm[172]: SSL Handshake failed for TCP 1.1.1.3:1236 -> 2.2.2.2:443 02-20 02:07:09 warning nwwyy11 tmm[172]: SSL Handshake failed for TCP 1.1.1.4:1236 -> 2.2.2.2:443 02-20 02:07:09 warning nwwyy11 tmm[172]: SSL Handshake failed for TCP 1.1.1.5:1236 -> 2.2.2.2:443

when I am using one of those IPs in the command:

show sys log ltm | grep 2.2.2.2

returns nothing, no result.

Of course, I tried:

show sys log ltm | grep '2.2.2.2' show sys log ltm | grep "2.2.2.2"

as well, does not work, shows nothing, returns no results.

Other version:

Product    BIG-IP

Version    14.1.0.6

Build      0.0.9

Edition    Point Release 6

same commands, same inputs, works properly, shows results.

 

Yes, bash may be used as a workaround, anyway, for troubleshooting, would be great for both environments to have proper results.

 

2 REPLIES 2

Samir
Nacreous
Nacreous

We have observed some issue when use grep commend in tmsh mode. V13 it worked perfectly but having issue on v14.x.

 

Run below command as a workaround.

tmsh show sys log ltm | grep 2.2.2.2

 

Thanks for an update.

aldowski
Nimbostratus
Nimbostratus

Default shell we are using is tmsh / tmos, so the commands I put here are placed to that shell. I mentioned that grep is working properly in bash, but, not by using tmsh as first work in command line, as the same issue appears as if the same command is being placed into the tmsh / tmos shell itself.

 

Running command "more", for example, to see log file, for example "/var/ltm/log" from bash is working properly, that is workaround.

 

Question is related to the same command in:

 Product    BIG-IP

 Version    14.1.0.6 (Here it is working properly in tmsh / tmos)

 Build      0.0.9

 Edition    Point Release 6

and:

Product    BIG-IP

Version    14.1.2.1 (Here it is not working properly in tmsh / tmos)

Build      0.0.4

Edition    Point Release 1

 

Again, in bash grep works in any version. I am mentioning the issue only for the F5 tmsh / tmos.