The eDirectory Management Toolbox (eMBox) Client is a command line Java client that gives you remote access to DSRepair. Because the eMBox Client can be run in batch mode, you can use it to do unattended repairs using the eDirectory DSRepair eMTool.
The emboxclient.jar file is installed on your server as part of eDirectory. You can run it on any machine with a JVM. For more information on the eMBox Client, see Using the eMBox Command Line Client.
Run the eMBox Client in interactive mode by entering the following at the command line:
java -cp path_to_the_file/emboxclient.jar embox -i
(If you have already put the emboxclient.jar file in your class path, you only need to enter java embox -i.)
The eMBox Client prompt appears:
eMBox Client>
Log in to the server you want to repair by entering the following:
login -sserver_name_or_IP_address -pport_number
-uusername.context -wpassword -n
The port number is usually 80 or 8008, unless you have a Web server that is already using the port. The -n option opens a nonsecure connection.
The eMBox Client will indicate whether the login is successful.
Enter a repair command, using the following syntax:
dsrepair.task options
For example:
dsrepair.ufr performs an unattended full repair.
dsrepair.rld -a -v repairs the local database using the Repair All Local Replicas and Check Local References options.
A space must be between each switch. The order of the switches is not important.
The eMBox Client will indicate whether the repair is successful.
See DSRepair eMTool Options for more information on the DSRepair eMTool options.
Log out from the eMBox Client by entering the following command:
logout
Exit the eMBox Client by entering the following command:
exit
The following tables lists the DSRepair eMTool options. You can also use the list -tdsrepair command in the eMBox Client to list the DSRepair options with details. See Listing eMTools and Their Services for more information.