Using dsimportexport to export users and groups – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 188

188
Chapter 3
Using dsimportexport to Export Users and Groups
You can use dsimportexport to export user and group accounts from NetInfo or LDAPv3
directory domains into a character-delimited file that you can import into a different
Mac OS X or non-Apple LDAPv3 directory domain.
Here are the parameters that dsimportexport accepts when exporting user and group
accounts. Parameters are delimited using angle brackets (<>) if they are required and
square brackets ([]) if they are optional:
dsimportexport -x
[-v] [-d delimiter ...] [-yrnm userName]
[-yrpwd password] [-y ipAddress] [-V] [-h] [-err]
where
-x
exports accounts into a character-delimited text file. See “Using Character-Delimited Files”
on page 191 for information about the format of this kind of file.
file
names the file to which you want to export accounts, including the path to the file. For
example, /tmp/Export1. The file should not already exist.
directoryDomain
is the full path to the NetInfo or LDAPv3 directory domain from which you want to export
the accounts. For a NetInfo domain, you might type “NetInfo/root/someDomain”. For an
LDAPv3 domain, an example is “LDAPv3/ldap.example.com”.
-v
generates verbose output during export. Because this option generates a large amount of
status data for each account (including all data in the export file), use this option only
when debugging export files. The default status data are a count of the number of
accounts processed and the record name of the account currently being processed.
-d delimiter
is for character-delimited export files only. This parameter specifies four delimiters in this
order: end of record, escape, end of field, and end of value. The delimiters values must
be expressed using hex strings, for example, 0x0A. If you omit this parameter, the default
delimiters are \n (end of record, 0x0A), \ (escape, 0x5C), : (end of field, 0x3A), and , (end
of value, 0x2C).
-yrnm userName
is the user name for logging in to a remote Mac OS X Server identified in the -y parameter.
LL0395.Book Page 188 Wednesday, November 20, 2002 11:44 AM