Traces the packet and frame traffic of an X.25 port.
x25mon -n Port [ -f [ -i Bytes ] ] [ -p [ -d Bytes ] ] [-c]
The frame or packet activity on the X.25 port is traced, and the report is sent to stdout. If using a COMIO emulation port, or a TCP/IP network interface, the x25 port being used for that interface can be found using the lsx25 command.
Use the -p and -f flags to turn on packet and frame layer tracing, respectively. It is possible to turn on either or both. If you don't specify either flag, the x25mon command defaults to the -p flag.
Use the -d and -i flags to vary the length of the DATA packet and INFO frame traces, for the packet and frame layer respectively. The ability to manage the number of bytes traced is important because turning on tracing, by invoking the x25mon command, impacts memory resources in addition to performance. Because adapters have limited memory resources, it is important to minimize the length of the frame layer INFO frame when using adapters that run the frame layer on the adapter (for example, apm, ampx, and ricio adapter types).
Use the -c flag to enable control tracing. The use of this flag can provide additional information for problem determination. Some physical and frame layer status will be included in the trace output and the contents of invalid frames and packets received can be displayed. There are 16 types of control frames and 10 types of control packets. The identifiers for these are displayed in the field for the packet or frame type in the trace output (see "Trace components" below). The possible control frames are:
BAD ADDR | TOO LONG | T3 TIMER | INV CR |
NO CTRL | BAD NS | N2 RETRAN | NOT RDY |
UNKNOWN | BAD NR | L1 UP | L1 DOWN |
INV SIZE | INV STATE | L2 UP | L2 DOWN |
The possible control packets are:
TOO SHORT | INV LCN | INV STATE |
TOO LONG | BAD PS | UNKNOWN |
BAD LCN | INV PS | |
BAD GFI | INV PR |
Note: You must have root authority to issue the x25mon command.
x25mon -p -n sx25a2The following output would be a typical sample.
port type LCN packet type flags/lengths data 14:59:03 sx25a2 PR 0x0020 CALL d:N la:4 lf:0 ld:0 441965196400CD 14:59:03 sx25a2 PS 0x0020 CF CALL d:N 14:59:03 sx25a2 PR 0x0020 DATA pr:0 ps:0 dN mN qN l:16 3F2A01 34256A8492AABC63E5F21D1C2C 14:59:03 sx25a2 PS 0x0020 DATA pr:2 ps:0 dN mN qN l:2 C301
x25mon -p -d 4 -n sx25a2The following output would be a typical sample.
port type LCN packet type/flags/lengths data 16:58:34 sx25a0 PS 0x002a CALL dN la:4 lf:0 ld:1 441964196500FD 16:58:36 sx25a0 PR 0x002a CF CALL dN 16:57:12 sx25a0 PR 0x002a DATA pr:0 ps:0 dN mN qN l:64 68656C6C.. 16:57:15 sx25a0 pS 0x002a RR pr:1 16:57:40 sx25a0 PR 0x002a DATA pr:0 ps:1 dN mN qN l:64 68656C6C.. 16:57:43 sx25a0 PS 0x002a RR pr:2
x25mon -f -i 8 -n sx25a2from which the following out would be a typical sample.
X.25 type physical frame type/flags/lengths data port port 17:15:02 sx25a0 FS 0x0000 INFO a:3 p:0 ns:5 nr:3 l:10 102A0B441964196500FD 17:15:03 sx25a0 FR 0x0000 RR a:3 p:0 nr:6 17:15:05 sx25a0 FR 0x0000 INFO a:1 p:0 ns:3 nr:6 l:3 102A0F 17:15:32 sx25a0 FS 0x0000 INFO a:3 p:0 ns:6 nr:4 l:16 102A0068656C6C6F.. 17:15:33 sx25a0 FR 0x0000 RR a:3 p:0 nr:7 17:15:35 sx25a0 FR 0x0000 INFO a:1 p:0 ns:4 nr:7 l:3 102A21
Note: Data is displayed in hexadecimal. Lengths and so forth are displayed in decimal.