Trace Facility Guide


Client Commands and Options

These are the commands and options available for tracing ADSM clients.

QUERY TRACESTATUS--Display Trace Status

Purpose

Use the QUERY TRACESTATUS command to display a list of available trace flags and their current settings.

Format

>>-Query Tracestatus--+-----------+----------------------------><
                      '- options--'
 

Parameters

dsmccmd

The ADSM command-line interface command, usually DSMC.

options

Any of the following:

-ALl

Displays both active and inactive trace flag settings. This is the default unless you have specified another setting in a previous command in the same interactive command session. To display both your active and inactive trace flag settings, enter:
  Query Tracestatus -ALl

-OFf

Displays only inactive trace flag settings; for example:
  Query Tracestatus -OFf

-ON

Displays only active trace flag settings; for example:
  Query Tracestatus -ON

-PASsword

Enters the password if ADSM requires one. If your password is secret, enter:
  Query Tracestatus -PASsword=secret

-NOTrace

Turns tracing off if it has been enabled in the options file; for example:
  Query Tracestatus -NOTrace

-TRACEFIle

Writes trace output to a specified directory and file name. If you do not specify a file or it has not been specified in the TRACEFILE option in the client options file that you use, output from active trace routines is only displayed on your client console display. For diagnostic purposes, you should save trace output to a file. For example, to save trace output to the traceout file in the /u/user directory, enter:
  Query Tracestatus -TRACEFIle=/u/user/traceout

-TRACEFLags

Turns on specific flags; for example, to turn on the GENERAL and SESSION trace flags, enter:
  Query Tracestatus -TRACEFLags=general,session

Examples

Task
Display the status of your trace flags.

Command
dsmc Query Tracestatus

NOTRACE--Turn Tracing Off

Use the NOTRACE option to turn tracing off if tracing is enabled on the client.

You can use NOTRACE on the command line as an option in an ADSM command, but you cannot use it in the client options file.

Syntax

>>-NOTrace-----------------------------------------------------><
 

Examples

Client user options file example:
Not available

Command line example:
dsmc -NOTrace

TRACEMAX--Specify Maximum Size of Output File

Use the TRACEMAX option to specify the maximum size, in kilobytes, that the tracefile can grow to.

Syntax

>>-TRACEMAX size-----------------------------------------------><
 

Parameters

size

The size, in kilobytes, for the maximum size of the trace file. The range of values is 0 to 10000.

The default is 0, which disables trace file wrapping and allows the trace file to grow indefinitely.

Examples

Client user options file example:
tracemax 4000

Command line example:
dsmc -tracemax=4000

TRACEFILE--Specify an Output File

Use the TRACEFILE option to place the trace output into a specified file. If the file does not already exist, then it is created. If the file exists, then the TRACE output is appended to the file.

If your trace file reaches the maximum size that you set with the TRACEMAX option, subsequent trace entries could wrap over previous entries in the file. In other words, wrapping would overwrite existing entries at the beginning of the current file.

There are message indicators showing where new entries begin and where the oldest entry appears. The first trace entries follow the starting trace texts such as "Tracing is active..." or "Tracefile maximum ...". The last entry of the trace is followed by an eyecatcher text "end of data - close". Shown below is an extract of a typical file as an example.

Figure 1. Example of a trace file

+--------------------------------------------------------------------------------+
|ADSM trace  3969        10240                                                   |
|04/22/1995 12:11:44.0449 : trace.c   (1140): Tracing is active to file 't.out'. |
|04/22/1995 12:11:44.0452 : trace.c   (1141): Tracefile maximum length set to 10k|
|04/22/1995 12:11:44.0453 : trace.c   (1150): -----------------------------------|
|04/22/1995 12:11:44  - Trace begun.                                             |
|  .                                                                             |
|  .  (trace entries here)                                                       |
|  .                                                                             |
|04/22/1995 12:11:44.0548 : procopts.c(5907):                                    |
|04/22/1995 12:11:44.0771 : anspsqry.c( 610): psqSendQuery: Using 'STANDARD' as t|
|  .                                                                             |
|  .                                                                             |
|  .                                                                             |
|end of data - close                                                             |
+--------------------------------------------------------------------------------+

You can set TRACEFILE in your client options file or specify it as an option on an ADSM command.

Syntax

>>-TRACEFIle--- filespec---------------------------------------><
 

Parameters

filespec

The name of the trace file, in the client's file name format. If no directory is specified, then the file is placed in the current directory.

If TRACEFILE is not specified and tracing is active, trace statements are sent to standard output by default.

Examples

Client user options file example:
TRACEFIle /u/user/trace.out

Command line example:
dsmc -TRACEFIle=trace.out

TRACEFLAGS - Specify the Trace Flags

Numerous components in the system have informational tracing imbedded. Tracing is activated by specifying trace flags for the desired component or area.

You can use TRACEFLAGS in your client options file or as an option in an ADSMcommand.

Syntax

                .----------------.
                V                |
>>-TRACEFlags-------+- flag---+--+-----------------------------><
                    '- -flag--'
 

Parameters

flags

Possible values for the trace flags are listed in Figure 2.

To leave particular flags off, preface the flags with a dash (for example, -txn).

When using TRACEFLAGS on a command, use commas to separate the individual trace flag values.

The default value is no tracing.

Figure 2. Trace Flags
Trace flags are not case-sensitive.
 Flag   Description 
 ALL   Enables: All traceflags except INSTR, INSTR_CLIENT, INSTR_CLIENT_DETAIL, INSTR_VERBOSE 
 ADMIN   Administrative component 
 ALLCOMM   Enables: COMM, 3270COMM, EHLLAPI, 3270ERROR 
 ALLSESS   Enables: SESSION, VERBINFO, SESSVERB, VERBADMIN 
 ALLFILE   Enables: DIROPS, FILEOPS, FIOATTRIBS 
 ALLBACK   Enables: INCR, TXN, POLICY 
 ALLPROC   Enables: ALLBACK, ALLFILE, ALLSESS 
 API   API tracing 
 AUDIT   List files backed up or restored (Macintosh and Windows) 
 COMM   Communications interface 
 COMMFULL   Communications driver data 

This trace flag produces large amounts of trace data.

 COMMDETAIL   Detailed communications 

When the communications buffer is larger than 192 bytes, this trace flag displays only the first and last 96 bytes of data.

 COMPRESS   Compression, expansion processing 
 CONFIG   Configuration file processing 
 CONFIRM   Confirm tracing 
 DIRDETAIL   Detailed directory operations 
 DIROPS   Directory operations 
 EHLLAPI   PC3270W V3.0 EHLLAPI tracing 
 ENTER   Entering or exiting a major function 
 ERROR   Severe errors tracing 
 ERRPROG   X'800' turns on a bit to indicate special error program processing. 

This is used for daemon-initiated errors (from Space Management, for example) that need special error handling

 EVENT   Event logging tracing 
 EXIT   Function exits 
 FILELISTS   User interface file list processing 
 FILEOPS   File I/O operations 
 FIOATTRIBS   File and directory attributes during backup and archive 
 FS   File space processing 
 FSPS   Platform-specific filesystem tracing 
 GENERAL   General process flow operations 
 INCR   Incremental process operations 
 INSTR   Instrumentation tracing 
 INSTR_API   API instrumentation 
 INSTR_CLIENT   Client entry or exit and network times 
 INSTR_CLIENT_DETAIL   Print detailed process information 
 INSTR_VERBOSE   Print all and final time statistics 
 LINK   Hard link processing (UNIX) 
 MEMDETAIL   Detailed memory tracing 
 MEMORY   Memory allocation, buffer pool 
 MESSAGES   User interface event messages 
 NETWARE   Enables SMSDEBUG 
 NLS   National Language Support processing 

This trace flag produces large amounts of trace data.

 NTREGISTRY   Windows NT Registry tracing 
 OPTIONS   Enables CONFIG 
 PERFORM   Enables: CONFIG, STATS, INSTR_CLIENT_DETAIL 
 PID   Enables process or thread identification information 
 POLICY   Policy management tracing 
 PREFIX   Adds module(line number) tracing suffixes to messages 

Enabled by default. May be disabled by using -PREFIX in the TRACEFLAGS lists

 SERVICE   Enables: ALL, -NLS, -COMMDETAIL, -COMMFULL, -DIRDETAIL, -MEMORY, -MEMDETAIL 
 SESSION   Session layer tracing 
 SESSVERB   Enables raw verb tracing 
 SM   Space Management tracing (UNIX) 
 SMSDEBUG   Storage Management Services (NetWare) 
 SMVERBOSE   Space Management detailed tracing (UNIX) 
 STATS   Backup and archive statistics 
 TEST   Development test flag 
 TIMESTAMP   Timestamps on trace records 

Enabled by default. May be disabled by using -TIMESTAMP in the TRACEFLAGS lists

 TRUSTED   Trusted Communications Agent specific tracing (UNIX) 
 TXN   Backup and Archive Transaction list processing. 
 VERBADMIN   Administrator Datastream tracing 
 VERBINFO   Client-server Verb fields contents tracing 
 WINUAETRAP   Catches Windows unauthorized access errors 
 3270COMM   Low-level 3270 for Windows tracing 
 3270ERROR   Low-level 3270 error tracing (Windows) 

Examples

Client user options file examples:
TRACEFLags general config comm

 
TRACEFLags ALL -COMMDETAIL -nls

Command line examples:
dsmc -TRACEFLags=GENERAL,CONFIG,comm

dsmc -TRACEFLags=ALL,-commdetail,-nls

Tracing for the ADSM Lotus Notes Backup Agent

You can monitor the performance of the ADSM Lotus Notes Backup Agent (ADSM Notes) operations by setting up tracing. First, turn tracing on by setting the environment variable DSMNOTES_TRACE in the NOTES.INI file. For example:

   DSMNOTES_TRACE=ON

The name of the trace file is TRACE.DSM. Its location is determined by the environment variable DSMNOTES_TRACEDIR in NOTES.INI. For example:

   DSMNOTES_TRACEDIR=c:\mydir

TRACE.DSM does not wrap. Its contents are overwritten each time a new ADSM Notes operation, like an incremental backup or a single restore, is invoked.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]