Show TOC

Function documentationOption -t (toggle trace) Locate this document in the navigation structure

 

This function is used to toggle the trace level of a running SAProuter. Trace levels 1, 2 and 3 exist. If the trace level was 1, it is now increased to 2, and if it was 2 or 3, it is decreased to 1.

You can also activate the trace for individual connections (see below).

Integration

When SAProuter is started, the trace level is selected with option -V<tracelev> .

Features

Connection Trace

You can also activate the trace for individual connections. For these connections the information is written with trace level 2.

The connection is traced using an enhanced syntax of option –t. You have the following options:

Command

Meaning

saprouter -t "on <id>"

<id> is the number of the connection. You can see this number when you display the connection information (saprouter ‑l). This command activates the trace for this (existing) connection.

For more information, see: Option -l / -L

saprouter -t "off <id>"

Deactivates the trace for connection with number <id>.

saprouter -t "on <IPaddress>"

Activates the trace for all new connections coming from the IP address <IP address>. You use this option if the connection is not yet open and you are looking the for connection setup information.

saprouter -t "off <IPaddress>"

Deactivates the trace for all new connections coming from the IP address <IP address>.

saprouter -t "on <subnet>"

<subnet> specifies a set of IP addresses. The command activates the trace for all new connections coming from this subnetwork.

More information about IP address masks: IP Address Formats

saprouter -t "off <subnet>"

Deactivates the trace for all new connections coming from this subnetwork.

Trace ID in the Connection Overview

Connections for which the trace is activated are marked with an asterisk in the connection overview (to display the overview enter command saprouter ‑l).

You can find the trace information in the trace file dev_rout.

Example

You activate the trace for connection number 4 by sending the command saprouter -t "on 4" to the active SAProuter.

Then you call saprouter ‑l to display the connections. You get the following output:

Syntax Syntax

  1. SAP Network Interface Router running on port 3299 (PID = 1576962)
    Started on: Wed Apr 13 09:00:10 2005
    
    ID  CLIENT                    | PARTNER                service
    ------------------------------+-------------------------------
    7   localhost                 | (no partner)
    6   10.18.203.8               | 10.17.74.118              3227
    4  *10.18.203.8               | 10.17.74.118              3227
    2   10.18.203.8               | 10.17.74.118              3227
    
    Total no. of clients: 7
    Working directory   : /usr/sap/PRD/work
    Routtab             : ./saprouttab
    
End of the code.

The * is the trace for connection 4.

More Information

Option -l / -L