HP X.25/9000 User's Guide HP-UX 11i v3 (5900-1523, August 2011)
Example 3:
This example explains how to format the trace file in “terse” (short) mode with no filtering.
To format the file /tmp/tracex25.TRC0 in “terse” mode, with no filtering:
/etc/netfmt -1 -f /tmp/tracex25.TRC0 | more
The output will resemble the following:
Tx board: 0 at 10:16:19.689181 Data Packet lci 64 PR: 0 PS: 0
Example 4:
This example explains how to display the contents of the encapsulated X.25 Level 3 packet in case
of XOT.
NOTE: This example assumes both SVC and PVC are available on the system.
To display the contents of the encapsulated X.25 Level 3 packet using the netfmt –x command,
complete the following steps:
1. Start nettl tracing using the following command:
nettl –start
2. Capture the TCP subsystem trace using the following command:
nettl -tn pduin pduout -e ns_ls_tcp -f /tcp
3. Run the X.25 application.
4. Stop nettl tracing using the following command:
nettl –stop
5. Format the above captured /tcp.TRC000 file using the following command:
/etc/netfmt -xNf /tcp.TRC000 > /tcp_xot_log
For SVC packets, the output will resemble the following:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ARPA/9000 NETWORKING^^^^^^^^^^^^^^^^^^^^^^^^^^@#%
Timestamp : Mon Aug 09 IST 2010 12:56:12.949177
Process ID : [ICS] Subsystem : NS_LS_TCP
User ID ( UID ) : -1 Trace Kind : PDU IN TRACE
Device ID : -1 Path ID : 0
Connection ID : 0
Location : 00123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------- TCP Header ----------------------------------
sport: 58069 --> dport: 1998 flags: PUSH ACK
seq: 0xf25c3ee1 urp: 0x0 chksum: 0xc599 data len: 22
ack: 0xf2a92796 win: 0x8000 optlen: 0
--------------------------------- XoT Header ---------------------------------
Version :00 Length of XoT Data :18
Rx L3 bd: 0 at Mon Aug 09 IST 2010 12:56:12.949177 Incoming Call lci 255
Called Address : 44444
Calling Address : 55555
Facility Length = 6 bytes
0: 43 07 07 42 07 07 -- -- -- -- -- -- -- -- -- -- C..B............
Window size
from called DTE :7 packets (0x07)
from calling DTE :7 packets (0x07)
Packet size
from called DTE :128 bytes (0x07)
from calling DTE :128 bytes (0x07)
User Data = 2 bytes
0: 01 03 -- -- -- -- -- -- -- -- -- -- -- -- -- -- ................
For PVC packets, the output will resemble the following:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvARPA/9000 NETWORKINGvvvvvvvvvvvvvvvvvvvvvvvvvv@#%
Timestamp : Thu Jan 13 IST 2011 01:39:53.860329
Process ID : 4118 Subsystem : NS_LS_TCP
User ID ( UID ) : 0 Trace Kind : PDU OUT TRACE
122 Tracing and logging utilities










