FarSync Drivers | ![]() |
![]() |
---|
farmon <device>
farmon displays this information in lines as follows:
<port name> <TX/RX indication> <Seq No> <Timestamp> <Len> <buffer address>: <hex bytes> <ascii bytes>
Where:
<port name> | is the port being monitored |
<TX/RX indication> | takes a value of TX for frames being sent to lines and RX for frames received from line |
<Seq no> | is the sequence number of the frame passed to the farmon application from the farsync driver. If the numbers are not sequential then the monitor utility indicates that some frames have been lost. |
<Timestamp> | is the time that the frame was processed by the driver. The number is expressed as the count of milliseconds since the Linux server was last booted. The size of the timestamp field means that the timestamp will wrap every 50 days approximately. |
<Len> | is the length of the frame transmitted or received |
<buffer address> | is the address of an internal buffer in farmon where the frame is stored. The buffer address increments in multiples of 16 bytes for each complete line displayed. |
<hex bytes> | is the contents of the frame represented in hexadecimal format. Each bytes is separated by a space. There can be a maximum of 16 hex bytes per line. |
<ascii bytes> | is the contents of the frame represented in ascii format. If the ascii character in not printable, a "." is substituted instead. There is no character separation in this part of the display so that the characters appear as a string. There can be up to 16 characters per line. |
As farmon starts and opens the required network device, it may report the interface as down. When the interface is started, .e.g. with an ifup hdlc0 command, then the tracing will commence.
The following is typical output from monitoring a WAN interface.
# farmon hdlc0 Opening port hdlc0 to monitor Setting up Signal and Exit handlers farmon: hdlc0 recvfrom error.100 Network is down hdlc0 TX: Seq: 0: Time 5781431: Len 14 0804b0d0: ff 03 c0 21 01 02 00 0a 05 06 01 1c 30 d7 ...!........0. hdlc0 TX: Seq: 1: Time 5783431: Len 14 0804b0d0: ff 03 c0 21 01 03 00 0a 05 06 01 1c 30 d7 ...!........0. hdlc0 RX: Seq: 2: Time 5783435: Len 14 0804b0d0: ff 03 c0 21 02 03 00 0a 05 06 01 1c 30 d7 ...!........0. hdlc0 RX: Seq: 3: Time 5783463: Len 14 0804b0d0: ff 03 c0 21 01 02 00 0a 05 06 01 1c 32 d3 ...!........2. hdlc0 TX: Seq: 4: Time 5783463: Len 14 0804b0d0: ff 03 c0 21 02 02 00 0a 05 06 01 1c 32 d3 ...!........2. hdlc0 TX: Seq: 5: Time 5783463: Len 8 0804b0d0: ff 03 80 21 01 04 00 04 ...!.... hdlc0 RX: Seq: 6: Time 5783471: Len 8 0804b0d0: ff 03 80 21 01 03 00 04 ...!.... hdlc0 TX: Seq: 7: Time 5783471: Len 8 0804b0d0: ff 03 80 21 02 03 00 04 ...!.... hdlc0 RX: Seq: 8: Time 5783471: Len 8 0804b0d0: ff 03 80 21 02 04 00 04 ...!....
The farmon output can be directed to a file for later analysis with the following command:
farmon sync0 > sync0.log
Copyright © 2001-2010 FarSite Communications Ltd. |
![]() |
---|