EDM01-36v10 DAG_9.2X2_Card_User_Guide - Using your DAG card
40 ©2010 - 2012 Endace Technology Ltd. Confidential - Version 10 - May 2012
Viewing captured data
Data captured in ERF format can be viewed with dagbits.
• dagbits
decodes and displays ERF header fields and packet contents are displayed as a Hex dump
only. To decode higher level protocols, Endace recommends using a third party application, see
Using third party applications (page 47).
• dagbits
is also able to run a number of tests, including monotonic time-stamp increment and frame
checksum (FCS, aka CRC) validation.
Test live traffic on dag0, stream 0 for 60 seconds running the lctr, flags and fcs tests:
dagbits -vvc -d0:0 -s60 lctr flags fcs
To read a trace log file using dagbits:
dagbits -vvc print -f logname.log | less
To check for errors in the trace:
dagbits -vvc ltcr flags fcs -f logname.log
For simple decoding of packets:
dagbits -vvc -d0:0 decode | less
If
dagbits reaches the end of the traffic and prints its report then the ERF records were valid.
dagbits
The following table lists all available options in dagbits.
Options Description
ERF records contain no Link-Layer CRCs.
ERF records contain 16 bit Link-Layer CRCs (PoS).
ERF records contain 32 bit Link-Layer CRCs (PoS and Ethernet).
Set legacy format to ATM (this is the default).
Check the ERF record lengths are multiples of n-bits. To be used with align test
Treat ERF timestamps as big-endian.
Print real-time progress reports as dagbits captures traffic. This is a useful indicator that a
test is running correctly.
Sets CRC correction factor for BTX test (0, 16 or 32 bits).
--device <device>
Use the DAG device referred to by <device>. Supported syntax includes 0, dag1, and
/dev/dag3 to refer to DAG cards, and 0:2, dag1:1, and /dev/dag2:0 to refer to specific
streams on DAG cards.
Introduces a <n> nanosecond delay between processing each record.
Set legacy format to Ethernet (default: ATM).
--haltmax <n>
Halt operation after a maximum of <n> errors. This option prevents dagbits from creating
extremely large output files when being redirected to a file.
Read captured data from <fname>.
Global, causes mono to test for globally increasing rather than per-port timestamps
Steering control number for steering test, DAG 4.3 and DAG 4.3GE:
• 0: stream0 force
• 1: test parity
• 2: test CRC
•
3: iface
Display usage (help) information.