Skip to content

Instantly share code, notes, and snippets.

@kofemann
Last active April 30, 2020 16:39
Show Gist options
  • Save kofemann/5b7f9e1e52065e4eb6bb to your computer and use it in GitHub Desktop.
Save kofemann/5b7f9e1e52065e4eb6bb to your computer and use it in GitHub Desktop.
tshark recepies
dumpcap -p -q -w - -f "port 2049 or tcp portrange 7000-10000" | \
tshark -n -r - -q -Y rpc.replystat -Tfields -E header=y -e frame.time -e frame.number -e ip.src -e ip.dst -e nfs.main_opcode -e rpc.time
# show NFS nfs requests slower that 5ms
tshark -f "port 2049" -Y "rpc.time > 0.005" -i any -T fields -e frame.number -e frame.time_delta -e ip.src -e ip.dst -e col.Protocol -e rpc.time -e col.Info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment