RuggedCom RX1000 Network Router User Manual


 
RuggedRouter® User Guide
Serial Protocols Sertrace Utility
The command line sertrace utility offers the ability to trace the activity of serial ports
in real time. A port range may be specified to limit the output to specific ports. The
level of traffic to trace and the type of decoding may be specified. The tool may also
be used to force the port to transmit an output test message. The following is an
example of sertrace use:
RuggedRouter:~# sertrace -h
Trace Serial Protocol Server Activity
Usage: sertrace [-dtr] [-p portrange]
serserver -d protocol decode
serserver -t tcp level events
serserver -r raw packet display
serserver -p ports to capture (e.g 1,3,6-7)
serserver -s ports to send a test message out on (when 's' + Enter keys are pressed)
In the absence of parameters, all decoding on all ports is provided.
RuggedRouter:~# sertrace -p 1 -s 1
10:56:18.405 TCPCONN Listening on TCP Port 50002 from port 1
10:56:19.944 TCPCONN Connection opened from 10.0.10.236 4991:50002
s
10:56:47.497 RAWSOCKET Transmitting message on port 1, length 44
74 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 the quick brown
66 6f 78 20 6a 75 6d 70 65 64 20 6f 76 65 72 20 fox jumped over
74 68 65 20 6c 61 7a 79 20 64 6f 67 the lazy dog
10:56:47.545 RAWSOCKET Received message on port 1, length 44 (31ms) by timer
74 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 the quick brown
66 6f 78 20 6a 75 6d 70 65 64 20 6f 76 65 72 20 fox jumped over
74 68 65 20 6c 61 7a 79 20 64 6f 67 the lazy dog
10:56:47.545 TCPCONN Tx Data from port 1 44b to 10.0.10.236 4991:50002
212 RuggedCom