Friday Oct 10, 2008

About activating Debug logs in DSEE

Enable dxadm commands debug information

Traces can be enabled in administrative commands through environment variables  :

DPS use :

DDX_DEBUG_AREA
DDX_DEBUG_LEVEL
possible values described in file <ws>/ldap/dps/dpx/ddx.h
DS use
SLAPX_DEBUG_AREA
SLAPX_DEBUG_LEVEL
possible values described in file <ws>/ldap/ds/slapx/slapx.h


Note : those traces are not documented !


e.g DDX_DEBUG_AREA=-1 (means DEBUG_AREA_ANY)


additional setting SPAWNER_DEBUG=1 will dump data input and result code of the spawner lib.

Enable DPS Debug traces

Enable DS Debug traces

  • stop DS instance
  • Edit <instance_path>/config/dse.ldif and add the following line

nsslapd-errorlog: /export/isw_patch/instances/isw_data/logs/errors
nsslapd-errorlog-logging-enabled: on
nsslapd-infolog-area: value
nsslapd-errorlog-maxlogsperdir: 2
nsslapd-errorlog-maxlogsize: 100

  • start DS instance
Each component is identified as an area, whose value is a decimal translation of the hex values. The log area is additive. For example, to enable logging on search filter processing (32) and Config file processing (64), you would set this attribute to value=96  (32+64). The valid range includes the following values:
0

Default logging area, used for critical errors and other messages that are always written to the error log, for example server startup messages. Messages at this level are always included in the error log regardless of the nsslapd-infolog-level setting.

1

Trace function calls. Logs a message when the server enters and exits a function.

4

Search arguments processing.

8

Connection management

16

Print out packets sent/received

32

Search filter processing

64

Config file processing

128

Access control list processing

512

LDBM processing.

2048

Log LDIF entry parsing debugging

4096

Housekeeping thread debugging

8192

Replication debugging

32768

Database cache debugging.

65536

Server plug-in debugging. An entry is written to the log file when a server plug-in calls slapi_log_info_ex().

Enable DSCC Debug traces

to be done

About

Patrice Duc-Jacquet

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today