The split-ldif command splits an LDIF file into multiple LDIF files according to a given distribution workflow element. The generated LDIF files are used to populate the partitions of a distribution deployment.
This command is not supported for the directory server.
split-ldif options
The split-ldif command splits an LDIF file into multiple LDIF files according to a given distribution workflow element. The data in the LDIF file is split based on the attributes indicated and based on the distribution type defined. The generated LDIF files are used to populate the distribution partitions and can also be used for the global index initialization, if using a global index. The split-ldif command allows you to create separate LDIF files for different attributes.
These LDIF files are then used by to populate the global index catalog. For more information, see gicadm.
The split-ldif command accepts an option in either its short form (for example, -i ldifFile) or its long form equivalent (for example, --ldifFile ldifFile).
Name of the LDIF file to split.
Name of the distribution workflow element to be used to split the data.
Lists the available distribution workflow elements from the directory server's configuration.
The directory where output LDIF files will be generated.
The prefix of the filename to generate (will contain the partition ID and the .ldif extension).
Overwrites generated files that may already exist from previous use.
The unique identifier of the global index catalog.
Splits the index entries into separate index files for each attribute listed.
Generate an LDIF file for global index initialization for that attribute type.
Display the version information for the directory server.
Display command-line usage information for the command and exit without making any attempt to stop or restart the directory server.
The following command uses an existing database file (-i) which it splits into several files, based on the distribution information already defined in the Sun OpenDS Standard Edition proxy deployment. The command defines the distribution workflow element name (-d), the database file (-i) to be split, the global index base DN (-n), and the attribute to be indexed in the global index LDIF file (-x). Indicating -f will overwrite any existing LDIF files.
You must have deployed a Sun OpenDS Standard Edition proxy with distribution before running this command.
$ split-ldif -d "distrib-we" -i database.ldif -x employeenumber -n "gi" -f
Assuming, for this example, that your distribution algorithm was numeric, and that you set two partitions with boundaries 1–1000 and 1000–2000. When you run the command above, the following LDIF files are created:
This file contains all the entries from database with employee numbers from 1–999, which will be used to populate partition 1.
This file contains all the entries from database with employee numbers from 1000–1999, which will be used to populate partition 2.
This file contains a mapping between the entries from database and the distribution partition where the information is stored. This file is used to populate the global index.
The following command uses an existing database file (-i) which it splits into several files, based on the distribution information already defined in the Sun OpenDS Standard Edition proxy deployment. The command defines the distribution workflow element name (-d), the database file (-i) to be split, the global index base DN (-n), and the attributes to be indexed in the global index LDIF file (-x). Indicating -s creates separate files for each attribute indexed. Indicating -f will overwrite any existing LDIF files.
You must have deployed a Sun OpenDS Standard Edition proxy with distribution before running this command.
$ split-ldif -d "distrib-we" -i database.ldif \ -x employeenumber -x uid -n "gi" -f -s
Assuming, for this example, that your distribution algorithm was numeric, and that you set two partitions with boundaries 1–50000 and 50000–100001. When you run the command above, the following LDIF files are created:
This file contains all the entries from database with employee numbers from 1–49999, which will be used to populate partition 1.
This file contains all the entries from database with employee numbers from 50000–100000, which will be used to populate partition 2.
This file contains a mapping between the employee numbers and the distribution partition where the information is stored. This file is used to populate the global index.
This file contains a mapping between the uid numbers and the partition where the information is stored. This file is used to populate the global index.
UNIX and Linux: install-dir/bin/split-ldif
Windows: install-dir\bat\split-ldif.bat
gicadm