Using dsimportexport to export users and groups – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 184

184
Chapter 3
-y ipAddress
is the IP address of a remote Mac OS X Server from which the directory domain is visible.
-V
adds the version number of dsimportexport to the log file.
-h
displays usage information for dsimportexport.
-err
displays error information.
To use dsimportexport to import users and groups:
1
Create a character-delimited or XML file containing the accounts to import, and place it in a
location accessible from the server from which you will use the tool. Ensure the file contains
no more than 10,000 records.
See “Using XML Files Created With Mac OS X Server 10.1 or Earlier” on page 186, “Using XML
Files Created With AppleShare IP 6.3” on page 186, and “Using Character-Delimited Files” on
page 187 for information on creating files to import.
2
As domain administrator, log in to a server that has access to the directory domain into which
you want to import accounts.
3
Open the Terminal application and type the dsimportexport command. The dsimportexport
tool is located in /usr/sbin.
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 187 for information about the format of this kind of file.