Specifications
Chapter 3 Installing Server Software and Finishing Basic Setup 49
Configuring the Server Remotely from the Command Line
It’s possible to configure the server remotely from the command line. Performing this
task requires the following tools:
 dscl—Use to create, read, and manage directory service data. If invoked without
commands, dscl runs interactively, reading commands from standard input.
For more information about this command, see Chapter 8, “Managing User and
Group Accounts.”
 systemsetup—Use to set a number of system-wide preferences. If you used
Server Assistant, you would need to select the proper keyboard and time zone.
The systemsetup tool can configure these preferences, and more.
For more information about this command, see Chapter 5, “Setting General System
Preferences.”
 networksetup—Use to configure anything that you can configure in the Network
pane of System Preferences.
For more information about this command, see Chapter 6, “Setting Network
Preferences.”
For more information about these tools, see their man pages. The man pages for
systemsetup and networksetup are available only on Mac OS X Server.
Changing Server Settings
After initial setup, you can use a variety of commands to view or change Mac OS X
Server configuration settings and services.
Using the serversetup Tool
The serversetup tool is located in /System/Library/ServerSetup/. To run it, you can
enter the full path:
$ /System/Library/ServerSetup/serversetup -getHostname
To use the tool to perform several commands, change your working folder and enter a
shorter command:
$ cd /System/Library/ServerSetup
$ ./serversetup -getHostname
$ ./serversetup -getComputername
Or, add the folder to your search path for this session and enter an even shorter
command:
$ PATH="$PATH:/System/Library/ServerSetup"
$ serversetup -getHostname
To permanently add the folder to your search path, add the path to the file
/etc/profile.