Tracing and Logging Utilities

strace

Asimple way to think of dual-port sub codes is as the decimal equivalent of 7030 + n (expressed in hexadecimal), where n is the card instance number. For example, for the device file x25_1p2, the sub in hexadecimal would be

 

 

 

7030 + 1 = 7031

 

 

 

 

which, when converted to decimal gives you 28721.

 

 

 

Some sample calculations of the sub code for dual-port

 

 

 

cards are provided in the table below.

 

 

 

 

 

 

NOTE

 

 

When specifying the name of device files in systems

 

 

 

with dual-port cards, you must use the form

 

 

 

x25_npx

 

 

 

 

 

where n represents the card number (0 to 15, and the

 

 

 

first card must be zero), the letter p is a place holder

 

 

 

(for port), and x represents the interface (port) number

 

 

 

(1 or 2).

 

 

 

 

 

 

 

Table 7-6

 

Dual-port Subnet Interface Codes

 

 

 

 

 

 

 

 

 

 

Interface

Calculation

Sub code

 

 

 

 

(hexadecimal)

(decimal)

 

 

 

 

 

 

 

x25_0p1, x25_0p2

7030 + 0 = 7030

28720

 

 

 

 

 

 

 

x25_1p1, x25_1p2

7030 + 1 = 7031

28721

 

 

 

 

 

 

 

x25_2p1, x25_2p2

7030 + 2 = 7032

28725

 

 

 

 

 

 

 

x25_5p1, x25_5p2

7030 + 5 = 7035

28725

 

 

 

 

 

 

 

 

pri

Specifies the logging priority level. Collects messages

 

 

 

from the level equal to or less than the value given by

 

 

 

pri. Values 1 to 6 are allowed for X.25 level 3, 1 to 4 for

 

 

 

level 2, and 1 to 5 for IP over X.25.

 

Chapter 7

189