Sun Java System Directory Server Enterprise Edition 6.2 Migration Guide

Command Line Changes

In Directory Server 6.2 the functionality of most command-line tools is replaced by only two commands: dsadm and dsconf.

The following table shows commands used in Directory Server 5, and the corresponding commands for Directory Server 6.2. The default path of these commands when installed from native packages is /opt/SUNWdsee/ds6/bin. When installed from the zip installation, the default path is install-path/ds6/bin.

Table 5–1 Directory Server 5 and 6 commands

Version 5 Command 

Version 6.2 Command 

Description 

bak2db

dsadm restore

Restore a database from backup (locally, offline) 

bak2db-task

dsconf restore

Restore a database from backup (remotely, online) 

db2bak

dsadm backup

Create a database backup archive (locally, offline) 

db2bak-task

dsconf backup

Create a database backup archive (remotely, online) 

db2index

dsadm reindex

Create and generate indexes (locally, offline) 

db2index-task

dsconf reindex

Create and generate indexes (remotely, online) 

db2ldif

dsadm export

Export database contents to LDIF (locally, offline) 

db2ldif-task

dsconf export

Export database contents to LDIF (remotely, online) 

entrycmp

No change 

Compare the same entry in multiple replicas 

fildif

No change 

Create a filtered version of an LDIF file 

idsktune

No change 

Check patches and verifies system tuning 

insync

No change 

Indicate synchronization between multiple replicas 

ldif2db

dsadm import

Import database contents from LDIF (locally, offline) 

ldif2db-task

dsconf import

Import database contents from LDIF (remotely, online) 

ldif2ldap

ldapmodify -B

Import data from LDIF over LDAP (remotely, online) 

MigrateInstance5

dsmig / manual migration procedure

Migrate data from a previous version 

mmldif

No change 

Combine multiple LDIF files 

monitor

ldapsearch on cn=monitor

Retrieve performance monitoring information 

pwdhash

No change 

Print the encrypted form of a password 

repldisc

No change 

Discover a replication topology 

restart-slapd

dsadm restart

Restart a Directory Server instance 

schema_push

No change 

Update schema modification time stamps 

start-slapd

dsadm start

Start a Directory Server instance 

stop-slapd

dsadm stop

Stop a Directory Server instance 

suffix2instance

dsconf get-suffix-prop

See the backend name for a suffix 

vlvindex

dsadm reindex

Create virtual list view indexes 

Table 5–2 Directory Server 5 and 6 Commands (Subcommands of the directoryserver Command)

Version 5 Command 

Version 6.2 Command 

Description 

directoryserver accountstatus

ns-accountstatus

Establish account status 

directoryserver activate

ns-activate

Activate an entry or group of entries 

directoryserver configure

Installation procedure 

Install Directory Server 

directoryserver inactivate

ns-inactivate

Inactivate an entry or group of entries 

directoryserver unconfigure

Uninstallation procedure 

Uninstall Directory Server 

Deprecated Commands

Some version 5 commands have been deprecated in Directory Server 6.2. The following table provides a list of these commands.

Table 5–3 Version 5 Commands That Have Been Deprecated

Command 

Description 

getpwenc

Print encrypted password 

ns-ldapagt

Starts a Directory Server SNMP subagent. For information about how to do this in Directory Server 6.2, see To Set Up SNMP in Sun Java System Directory Server Enterprise Edition 6.2 Administration Guide

restore-config

Restore Administration Server configuration 

saveconfig

Save Administration Server configuration