Useful Commands for Edirectory on Linux/Solaris#

Is EDirectory Running?#

To show a few ports including 524, (LDAP)389, (LDAPS)636 and the ports for DHOST as listening. One of my servers shows like:
# netstat -anp | grep LISTEN | grep ndsd
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 127.0.0.1:8389          0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 192.168.1.4:8389        0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 192.168.1.4:524         0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 127.0.0.1:524           0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 0.0.0.0:636             0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 127.0.0.1:8636          0.0.0.0:*               LISTEN      16718/ndsd
tcp        0      0 192.168.1.4:8636        0.0.0.0:*               LISTEN      16718/ndsd
I have made a habit of putting DHOST on (http)8389 and (https)8636 so I might remember where it is running.

NDSLogin#

You can try an ndslogin from the server with the following:
# ndslogin -t willeketree -h 192.168.1.4 jim.butler.people.willeke.com
Password:
eDirectory Login: logged in as .CN=jim.OU=butler.OU=people.dc=willeke.dc=com.WILLEKETREE.

NDSD Threads and Processes#

Processes#

To monitor ndsd, use the following command:
# ps -eaf |grep ndsd
Typical output would be:
root      5067     1  0 00:54 ?        00:00:00 /usr/sbin/ndsd
root      5070  5067  0 00:54 ?        00:00:00 /usr/sbin/ndsd
root      5071  5070  0 00:54 ?        00:00:00 /usr/sbin/ndsd
root      5072  5070  0 00:54 ?        00:00:00 /usr/sbin/ndsd
root      5074  5070  0 00:54 ?        00:00:00 /usr/sbin/ndsd
root      5075  5070  0 00:54 ?        00:00:01 /usr/sbin/ndsd

These threads are Light Weight Processes (LWPs), which reduces switching overhead. You will see them as multiple ndsd's running on same machine. You can use pstree to see them as a structure view.

For example on 8.7.x,

pstree 'cat /var/nds/ndsd.pid'

For 8.8#

Tested to work with eDirectory 8.8 on SuSE Enterprise Server 10/11 and should work fine with eDirectory 8.7.x also.
pstree -G `cat /var/opt/novell/eDirectory/data/ndsd.pid`

Other useful Edirectory Usefull Linux Commands:#

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-30) was last changed on 19-Oct-2015 16:43 by jim