How to force eDirectory to generate core file on linux

  • 7007723
  • 30-Jan-2011
  • 11-Apr-2014

Environment

Novell eDirectory 8.8 for Linux
Novell eDirectory 8.7.3  for Linux

Situation

How to force eDirectory to generate core file on Linux

Resolution

  1. Type any one of the following command on Linux server Terminal to get the process ID (pid) of ndsd
    "pidof ndsd " or "pgrep ndsd " without quotes
  2. Check if gdb is installed on your server or not by typing the following command on the server Terminal:
    rpm -qa | grep gdb
    It should show the installed gdb version, for example "gdb-6.8.50.20090302-1.5.18 ".
    Note: By default gdb is installed on the server
  3. Enter into gdb prompt by using following command on the server terminal
    gdb /opt/novell/Directory/sbin/ndsd <pid of ndsd>  
  4. Now type "gcore " without quotes on the server terminal to forcefully generate the eDirectory core file. It should generate a file with name core.<pid of ndsd> in the current directory.
OR 
  1. Type the following command on the server Terminal to force the eDirectory to core directly
    kill -11 `pidof ndsd`
    This will generate the eDirectory core file in the /opt/novell/eDirectory/data/dib directory.