環境はローカルで起動している Redis を対象としています
$ sudo tcpdump -i lo -n -s0 -A dst port 6379
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
20:30:09.851425 IP 127.0.0.1.43933 > 127.0.0.1.6379: Flags [P.], seq 3011382500:3011382541, ack 2674910830, win 1452, options [nop,nop,TS val 757280422 ecr 757279172], length 41
E..]..@.@................~...o.n.....Q.....
-#..-#).*2
$4
LPOP
$20
resque:queue:message
20:30:09.851491 IP 127.0.0.1.43933 > 127.0.0.1.6379: Flags [.], ack 6, win 1452, options [nop,nop,TS val 757280422 ecr 757280422], length 0
E..4..@.@................~^M^M.o.s.....(.....
-#..-#..
20:30:10.418119 IP 127.0.0.1.34696 > 127.0.0.1.6379: Flags [S], seq 2124522743, win 43690, options [mss 65495,sackOK,TS val 757280563 ecr 0,nop,wscale 7], length 0
E..<..@.@...............~............0.........
-#/3........
20:30:10.418139 IP 127.0.0.1.34696 > 127.0.0.1.6379: Flags [.], ack 1279911756, win 342, options [nop,nop,TS val 757280563 ecr 757280563], length 0
E..4..@.@...............~...LI.L...V.(.....
-#/3-#/3
20:30:10.418202 IP 127.0.0.1.34696 > 127.0.0.1.6379: Flags [P.], seq 0:26, ack 1, win 342, options [nop,nop,TS val 757280563 ecr 757280563], length 26
E..N..@.@...............~...LI.L...V.B.....
-#/3-#/3*2
$6
client
$4
list
こんな感じで、どんなコマンド発行してるか確認できる