Perl Scripts
Chapter 8 Command-Line Scripts 283
Options
ns-accountstatus.pl (Establish account status)
Provides account status information to establish whether an entry or group of
entries is inactivated.
Syntax
Optio
n
Parameter Description
-D rootdn Specifies the Directory Server 7.1 user DN with root
permissions, such as Directory Manager.
-w password Specifies the password associated with the Directory Server
7.1 user DN.
-p port Specifies the port number of Directory Server 7.1.
-o oldInstancePath Specifies the path to the legacy Directory Server instance. For
example:
/opt/redhat-ds/server6/slapd-phonebook.
-n newInstancePath Specifies the path to the new (7.1) Directory Server instance.
For example:
/opt/redhat-ds/servers/slapd-phonebook.
-t Specifies the trace level. The trace level is set to 0 by default,
with a valid range of 0 to 3.
-L Specifies the file in which to log the migration report. By
default, the migration report is stored under
serverRoot/slapd-serverID/logs/Migration_ddmmyyy_h
hmmss.log. A sample log might read
/opt/redhat-ds/servers/slapd-phonebook/logs/M
igration_20122004_153604.log for a log created on 20
December, 2004, at 15.36:04.
Perl script:
ns-accountstatus.pl [-D rootdn] -w password [-p
port] [-h host] -I DN