rp_switch  rp_version

Chapter 6: Registered Procedures

rp_traceflag

Description

Enables or disables SRV_TRACE flags for debugging messages.

Syntax

rp_traceflag [options, {on|off}]

Parameters

options

A list of one or more single-character option flags.

The following table shows the valid debugging options. These options are identical to the options you can use with the -s flag at the command line.

Value

Displays

a

TDS attention packets

d

TDS data information

e

Server events

h

TDS header information

m

Message queue usage

n

Network driver information and TCL requests

p

Network driver parameter information

q

Run queue information

r

Network driver data information

s

Network driver memory information

t

TDS tokens

w

TCL wake-up request

on

Turns on debugging options, which causes debugging messages to be dumped to the error log file.

off

Turns off debugging options.

Examples

Example 1

Displays all debugging flags and their current state.

rp_traceflag

Returns:

flag  description                                state
---- ------------------------------------------- ----- 
 a    TDS attention packets                         on
 d    TDS data information                          on
 e    Server events                                 on
 h    TDS header information                        on
 m    Message queue usage                           on
 n    Network driver information and TCL
      requests                                      on
 p    Network driver param information              on
 q    Run queue information                         on
 r    Network driver data information               on
 s    Network driver memory information             on
 t    TDS tokens                                    on
 w    TCL wakeup request                            on

Example 2

Switches off TDS data information and server events flags.

rp_traceflag "de", off

Returns:

flag  description                                state
---- ------------------------------------------- ----- 
 d    TDS data information                         off
 e    Server events                                off

Example 3

Displays the current status of the -d flag.

rp_traceflag d

Returns:

flag  description                                state
---- ------------------------------------------  -----
 d    TDS data information                       off

Usage


Messages





Copyright © 2005. Sybase Inc. All rights reserved. rp_version

View this book as PDF