HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

value for that key is the command line argument value. If there is more than one argument with
the same name, they are converted to a list of values.
--plugin=/path/to/pluginname.py pluginname.arg1=foo pluginname.arg1=bar pluginname.arg2=baz
In the plug-in, this is converted to a dict like this:
{'arg1': ['foo', 'bar'],
'arg2': 'baz'}
post function
The post function is called when the log script is exiting.
def post(): # no arguments
# do something
# no return value
NOTE: Troubleshooting
If the server is hung, not responding, and cannot be terminated:
Check the ds-logpipe.py process. If the process is dead, the server is hung writing to the
log file, waiting for the reader to read it
Restart the logpipe script, or if you have used /etc/sysconfig/dirsrv-NAME, try this
as root.
# (. /etc/opt/dirsrv/config/dirsrv-instance_name)
If output to the pipe is not used, clear the pipe as shown below:
cat /var/opt/dirsrv/slapd-instance_name/log/file.pipe > /dev/null
14.4 In-memory debug logging
In-memory debug logging enables the capturing of debug log messages in the memory instead of
in a file in the production environment when issues are encountered. Features of In-memory debug
logging are as follows:
Captures custom debug logs directly to the memory buffer.
Gets diagnostics images quickly when issues are encountered.
Can be enabled or disabled by changing the configuration parameter in the dse.ldif file.
Performs relatively better compared to error logging, due to lesser I/O operations.
NOTE: Like any other debugging aid or tool, performance overhead can be expected especially
when there are multiple connections because debug information is written to the single memory
buffer. Therefore, enable this feature only when debugging is required.
In-memory debug logging usage
You can enable or disable In-memory debug logging using the
nsslapd-inmemory-debug-enabled attribute in the /etc/opt/dirsrv/slapd-<
slapd-instance_name>/dse.ldif file.
To set In-memory debug logging, edit the dse.ldif file or use the ldapmodify command. Make
sure to shut down the slapd process before manually updating the /etc/opt/dirsrv/slapd
<slapd-instance_name> /dse.ldif file.
To enable In-memory debug logging by editing the dse.ldif file:
1. Shutdown the server:
/opt/dirsrv/slapd-instance_name/stop-slapd
14.4 In-memory debug logging 517