Problem Solving

Tracing and Logging through /opt/ots/bin/osidiag

Tracing and Logging User Applications

Two facilities exist to provide more data about the behavior and errors encountered by your application, API tracing and nettl.

 

API Tracing

This facility allows you to trace the calls your

 

 

application makes to the Application Programmatic

 

 

Interface. The mechanism to perform API tracing is

 

 

described in the programmer's guide for the service you

 

 

are using.

 

nettl

The nettl command allows you to enable logging and

 

 

tracing in the OTS stack as well as for the FTAM

 

 

service. The syntax of the nettl and netfmt

 

 

commands is given in the nettl(1M) and netfmt(1M)

 

 

man pages.

 

Hewlett-Packard recommends that you enable warning and error logging

 

for stack components at and below the service you are using. Table 2-3

 

shows the entities on which you should enable logging for gathering

 

information.

 

 

Table 2-3

Logging and Tracing Entities

 

 

 

 

Service/LayerEntities to Log

 

 

 

 

 

X.400*

 

X.400 Logging facilities

 

 

 

+ OTS entities

 

 

 

+ Link entity

 

 

 

 

 

FTAM

 

FTAM_VFS FTAM_USER

 

 

 

FTAM_INIT FTAM_RESP

 

 

 

+ ULA entities

 

 

 

+ OTS entities

 

 

 

+ Link entity

 

 

 

 

 

APRI

 

ACSE_PRES

 

 

 

+ OTS entities

 

 

 

+ Link entity

 

 

 

 

 

OTS

 

SESSION TRANSPORT NETWORK OTS

 

 

 

 

 

LAN 802.3

 

NS_LS_DRIVER

 

 

 

 

 

X.25

 

SX 25 L2, SX25L3 (Level 2 and 3 link tracing)

 

 

 

 

Chapter 2

63