When decoding RADIUS traffic, wireshark displays Attribute Value Pairs in a format such as: + AVP: l=22 t=user-Name(1): [email protected] + AVP: l=17 t=Calling-Station-Id(31): ABCDEFG etc. Is there a way to use tshark to output these name value pairs as text? e.g. row 1 user-name [email protected] Calling-Station-Id ABCDEFG Thanks in advance. asked 18 Nov '10, 07:52 mlampell |
2 Answers:
Or you can use tshark with the "-T fields" option to extract the fields of interest:
answered 20 Nov '10, 03:02 SYN-bit ♦♦ |
tshark does show the AVP name/value pairs if you show the packet details using the -V switch. However it also shows all the packet details. :) You can use grep (or something similar) to filter for just the name/value lines from the tshark output; Does this meet your needs ? tshark -nVr <filename> | grep "AVP:"
answered 18 Nov '10, 08:28 Bill Meier ♦♦ edited 18 Nov '10, 08:40 The above was done using tshark -nVr <filename> | grep "AVP:" (18 Nov '10, 08:29) Bill Meier ♦♦ Bill, that's a great suggestion, thanks. I had not known there was a way to output the entire decoded text. Thanks. (18 Nov '10, 08:37) mlampell (I've changed your "answer" to to be a "comment" in keeping with the way this site works; The FAQ gives more info). (18 Nov '10, 08:47) Bill Meier ♦♦ |
thanks SYNbit, your answer works very well.